How to exit based current counter pnl — Tradetron Community
← Community

How to exit based current counter pnl

Strategy 1,030 views

Manish

how to exit based on current counter profit or loss, not on total pnl ? I have entry and universal exit condition.

Tradetron Team Tradetron team

Short answer: the PNL keyword already works per counter. It returns the strategy’s profit/loss for the current counter and resets only after a Universal Exit.

How it behaves

  • A run counter starts when the strategy enters and ends at a Universal Exit.
  • PNL adds up everything in that counter, including trades already closed in it.
  • After the Universal Exit, a new counter starts (with Reactivate on exit) and PNL starts again from zero.

Example

Universal Exit: PNL >= Number(2000) OR PNL <= Number(-1000)
This exits on a ₹2,000 profit or ₹1,000 loss for this counter, not for the strategy’s whole history.

If you need something smaller than a counter

  • One leg: Traded Instrument with field pnl.
  • One set’s combined P&L: Traded Instrument PNL in the Set Exit (while all the set’s positions are open).
  • One stock in a list: PNL Underlying in a Set Exit.

PNL thresholds scale with the deployment Multiplier. The Deployed page shows overall P&L, which can look different from the counter’s PNL. Test in Live Offline.

:sparkles: Answer written with AI from Tradetron docs (Oct 2026). Original replies are kept above. Spot something wrong? Reply below.