Back to builder reference
Value ref
trade_historyTrade statistics — trade_count, consecutive_wins, consecutive_losses, last_pnl, last_pnl_pct, rolling_win_rate.
Backing types
TradeHistorySignalRef
Required fields
FieldTypeDescription
fieldreqenum: trade_count, consecutive_wins, consecutive_losses, last_pnl, last_pnl_pct, rolling_win_rate, rolling_avg_pnl_pct, bars_since_last_exit-Optional fields
FieldTypeDescription
factoranyOf (2 variants)-resolutionanyOf (2 variants)Optional higher-timeframe override for this value ref. Set it inside lhs/rhs refs such as {'type': 'indicator', ..., 'resolution': '4h'} or {'type': 'price', 'field': 'close', 'resolution': '4h'}. Do not put timeframe/source_timeframe on the parent condition. None = strategy timeframe.typestring-windowanyOf (2 variants)-Backing types
The IR ValueRef classes this builder field resolves to.
TradeHistorySignalRef