PNL of an exited leg — Tradetron Community
← Community

PNL of an exited leg

Uncategorized 872 views

anoopviswanathan

Can anyone hlp me with finding pnl of an exited leg.
Difficulties…
traded instrument with pnl wont fetch it coz pnl key work with eqn LTP-entry. for an exited leg ltp condition will be false.
Any input is much appreciated .

Tradetron Team Tradetron team

Once a leg is exited, LTP no longer tells you its P&L. Store it at exit time:

  1. In the condition that exits the leg (Repair Once or Set Exit), open its runtime section.
  2. Create a variable, e.g. leg1pnl, and set it with Traded Instrument field pnl for that leg. This is calculated as (LTP − entry price) × quantity at that moment.
  3. Read it later with Get Runtime(leg1pnl).

Runtime variables write after the condition’s leg is taken. A Universal Exit clears them.

Guide: Runtime Variables in Tradetron — Capture Once, Use Anywhere | Tradetron Helpdesk · Keywords: Keyword Documentation — Tradetron

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