Definition
Returns the net realized P&L in dollars from CLOSED option positions matching the filter, long and short alike. Losing closes count as negative. Measures closes only and subtracts nothing for premium already spent. Lookback Days limits it to closes within that many days of the evaluation date; leave it empty for the whole life of the book.
Parameters
Underlying (optional), Option Type (optional), Direction (optional), Spread Type (optional), Lookback Days (optional)
Output range: -∞ to ∞ (dollars)
Example condition
`Option Realized P&L(IBIT, put, short) > 0` (closed IBIT short puts have made money overall)Use in a strategy
Add this indicator to a strategy condition, choose its supported parameters and compare the output with the threshold required by your rule. Preserve the same interval and lookback when comparing backtests.
After saving the condition, inspect its asset, interval, lookback and comparison operator against the parameters above. If no trades occur, check whether the condition ever became true and whether the requested input data exists for that period. A missing input is not a zero-valued signal. An indicator produces an input to a rule. It does not establish future returns, and data availability can differ across assets and periods.