Toggle button stops working after single tick
-
The title says it all.
I copied this button example to my ea and it works as expected until the chart does not move. When it does button stays off permanently.https://fxdreema.com/shared/4LWM6r3Ac the sample button.
I would think that there would be a block on the tick tab that would overwrite the button variable for every tick. (That would be a logical conclusion) But it's not the case. The variable is not used only for the button itself and does not exist inside of on Tick tab so why it stops working is beyond me.
However, if I try the button EA by itself it works fine.
I cannot share the project but maybe anyone has had this issue?