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?
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