Is there any option to check max profit and loss
traded instrument wise function in code?
I have been using max profit and max loss which is calculated at strategy wise.
Is there any option to check max profit and loss
traded instrument wise function in code?
I have been using max profit and max loss which is calculated at strategy wise.
Do you got answer ? I also looking for same solution
Short answer: not with a built-in keyword. Max Profit and Max Loss work at strategy level (per run counter). The docs do not list a per-instrument or per-leg version.
pnl: the current P&L of one leg, addressed by cond type, Set, Condition and Leg.pnl: the P&L of instruments that are still open, filtered by Long/Short, CE/PE and underlying.In a Repair Once for leg 1: Traded Instrument ( Entry, pnl, NIFTY 50, 1, 1, 1 ) <= Number ( -1500 ) OR >= Number ( 3000 ), with a Leg Exit for that leg.
That needs Python (Python Editor in the strategy builder). Runtime variables are written only when a leg is taken, so they cannot track a running peak on their own.
Test in Live Offline first. Keyword reference: Keyword Documentation — Tradetron
Answer written with AI from Tradetron docs (Oct 2026). Original replies are kept above. Spot something wrong? Reply below.
Request received. Pick a time now, or close this and we'll call you to set one up.
The calendar didn't load here. Open the booking page ↗
Booked. The calendar invite is on its way to your email.
Tradetron's AI assistant — pricing, brokers, strategies, anything.
AI can make mistakes. Consider checking important information.
How good was it?
We store the question and the answer with your report so the team can audit it.