I created a variable called ATRX3 and when the condition of the trade happen I set the variable to the ATR*3
I then add a take profit and stop loss in currency equal to the variable...
the variable is set as a DOUBLE with a default value of 1
problem is that when the trade start it immediately closes
can you help me figure it out?
Comment