How do you block an EA reset?
-
I created a stop loss EA with the use of the ATR. Problem is whenever I have a current trade on CHART 1 with its current stop loss placed, opening CHART 2 resets CHART 1 SL with CHART 2 current ATR reading. (CHART 2 has no trade)
PS: All blocks were tried "on chart" and "on trade" resulting to the same issue.
How can I respectively have a trades' SL not changed until the trade is closed (or) when opening multiple tabs.
-
you could restrict the EA to only modify stops when it has no stop in place.
i.e. Condition: stop loss == 0
-
@roar as mentioned before, the EA keeps affecting the current trade by changing its stop loss multiple times. I even tried to put a "off" block after stop loss has been placed but that's ignored when I opened a new chart or refresh the chart.
-
Only idea
What about to made variables like stoplost and put the value of ATR to this variables on open trade. Then this varibles use like Stoplost.
I did it a lot that in some point i take the value of indicator and put it to variable. -
Use different magic numbers for different charts.