Back to builder reference
Value ref
live_positionMetric computed from the currently open position (live, not frozen) — field: entry_price | bars_in_position | unrealized_pnl_pct | unrealized_pnl_usd | max_excursion_pct | min_excursion_pct. NaN when flat.
Backing types
LivePositionSignalRef
Required fields
FieldTypeDescription
fieldreqenum: entry_price, bars_in_position, unrealized_pnl_pct, unrealized_pnl_usd, max_excursion_pct, min_excursion_pct-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-Backing types
The IR ValueRef classes this builder field resolves to.
LivePositionSignalRef