Use the PnL keyword to exit at a fixed profit or loss for the whole strategy.
- PnL returns the total profit/loss of the entire strategy, across all sets. Use it only in Universal Exit.
- Example: exit when PnL > 2000 or PnL < -1000.
Related keywords
- PnL Underlying: P&L of each stock in a list, separately. Use it only in a Set Exit.
- Traded Instrument: P&L of a specific leg.
- Max Profit / Max Loss: the highest profit or loss reached, useful for trailing stop losses.
More examples: "PNL / Target / Stoploss" related keywords: Different Examples of its Uses - #2 by Nelson
Edited with AI from the original Tradetron article, checked against current docs (Oct 2026). Spot something wrong? Tell us in the Community.
