Hi Team,
have a created a stratergy, where condition for two different sets are same but the postion will be CE in set 1 and PE in set 2. when the trade is executed. i can see both CE and PE are getting exected.
how can i avoid this. if CE condition is true then CE postion should execute not the PE one.
how to query that.
Thanks and regards,
Saravana
Raghu
When the conditions in both sets are same, then both sets will get executed. Isn’t that as expected ?
Tradetron TeamTradetron team
If both sets have the same condition, both will fire. That is expected. Make the sets’ conditions opposite:
Set 1 (CE): bullish condition, e.g. close above EMA.
Set 2 (PE): bearish condition, e.g. close below EMA.
If you want only one of the two to trade at a time, add a runtime flag: the set that enters writes active = Number(2), and both entries check Get Runtime(active) == Number(1). Reset it to 1 in each set’s exit runtime.
Test in Live Offline.
Answer written with AI from Tradetron docs (Oct 2026). Original replies are kept above. Spot something wrong? Reply below.