Entry check based on overall PNL

Any other way to set a target in set exit?

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

U mean inside the set exit?

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

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

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

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

Yes. That’s correct…

1 Like

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|

Show me set exit conditions

Any clues here why it is not working?

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

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

Maybe universal exit is taking preference over set exit?

Any suggestions here what to do?

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?

Entry for PUT


Advance settings

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

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