Entry check based on overall PNL — Tradetron Community
← Community

Entry check based on overall PNL

Strategy 6,144 views

Harish

Hello Everyone,
I have a question where i am looking to set a daily PNL target and SL target, if anyone of them is achieved then i dont want to take any more trades for that day.Any idea how to achieve it?

Regards,
Harish

Lion Algos

Use PNL in Universal Exit if it is just one strategy

Harish

No it is basically 2 strategies which gets activated based on webhooks from my trading view.wanted to check the profit or loss of both the strategies.

Lion Algos

I don’t think we have any solution in tradetron for calculating together multiple strategies pnl.

Harish

Maybe as 2 sets inside one strategy and using universal exit to check the max pnl or loss?

Lion Algos

Yes. That should work

Harish

Somehow set exit is getting overshadowed with universal exit…as in my exit i am checking pnl >1500 and in my universal exit i am checking Max pnl>2500…my startegy ignores set exit and it always look for universal exit value

Lion Algos

You are saying Set exit not happening. Only Universal Exit happening. Correct?
Any other condition along with pnl at set exit?

Harish

That is correct… nothing else apart from pnl at set exit.

Harish

Any other way to set a target in set exit?

Lion Algos

You can try calculate profit points using LTP - Entry Price. Exit if it is more than your target

Harish

U mean inside the set exit?

Lion Algos

Yes. Inside Set exit condition builder. But if you have multiple entries in the same set then this way won’t work. It woks single entry

Harish

I have basically 2 sets…one for call and one for put…both gets entered on different signals

Lion Algos

Then it’s fine. You can use that logic to calculate set level profit points.

Harish

Okay and then in universal exit check the pnl of whole set runs to take the complete exit right?

Lion Algos

Yes. That’s correct…

Harish

it doesnt work.Somehow it is still looking for the universal exit only to exit from the trade.

5492954494 03 Mar 12:41:10 PM Tranching - #1, taking position OPTIDX_NIFTY_09MAR2023_PE_17650, Qty -350.0
5492954497 03 Mar 12:41:10 PM Universal Exit satisfied, taking position OPTIDX_NIFTY_09MAR2023_PE_17650, Qty -350.0
5492953741 03 Mar 12:41:10 PM Status changed from Live-Tranching To Exited
5492953804 03 Mar 12:41:10 PM PNL ( ‘7140013’, ‘1’ ) : 2344.9978637695385

Number ( ‘2300’ ) : 2300.0
PNL ( ‘7140013’, ‘1’ ) : 2344.9978637695385
Number ( ‘-5500’ ) : -5500.0
Time ( ‘NSE’ ) : 1241.0
Number ( ‘1514’ ) : 1514.0|

Lion Algos

Show me set exit conditions

Harish

Any clues here why it is not working?

Lion Algos

All looks good. I don’t see any issue in code. Ideally it should work.

Harish

That is the issue…don’t know what is the problem here

Harish

Maybe universal exit is taking preference over set exit?

Harish

Any suggestions here what to do?

Lion Algos

Can you also show me your PE order exit conditions? You have shown only CE conditions above.
Also what frequency conditions are checked in the strategy?

Lion Algos

My analysis.
You are playing with 4 points target at set level and 7 point target at strategy level. There is a possibility that 7 point can be reached at strategy level before reaching 4 points at set level. Ex. 3.5 +3.5 or some other combination. Also 4 points variation can happen very fast in live market within few seconds.

To test set exit working - make strategy ext at 10 points. 10 is more than combined set level exit 4+4.
So it is absolute that at least one set must exit before universal exit
OR
Observe few more days with the current setup and see how strategy is behaving

My point is current setup looks good and should work as expected

Harish

Thank you…will update the universal exit and see how it behaves

Tradetron Team Tradetron team

It depends on whether the trades are in one strategy or several.

Inside one strategy

Put PNL in the Universal Exit, e.g. PNL >= Number(3000) * Multiplier OR PNL <= Number(-1500) * Multiplier. PNL is the whole strategy’s P&L for the run. When the Universal Exit fires, all positions are closed and the run ends.

To stop more trades for the rest of the day after that, do not let the strategy start a new run the same day: check the Reactivate on exit after setting in Advanced Settings.

Across two or more strategies (your case: two webhook strategies)

Use Portfolio Management. Group the deployments (SIDs) you want governed together; they can be on different brokers. You then set one combined day-wise target, stop-loss and trailing stop-loss across all of them.

Test the setup in Live Offline first, and check the Deployed page to confirm both deployments stop when the limit is reached.

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