Hey,
I have been trying to create a simple button that changes a variables state from TRUE to False. When True the EA is allowed to take a specific set of trades and when false it takes no trades.
The image below shows my 'on chart' button logic which is simple. The variable is initially set to False. So when the variable is False the condition block allows it through and when the button is clicked the variable is changed from False to True and the EA can take trades. This part works fine and I can see this on my chart via a comment block which shows the out of the variable 'Trade on'.
However, i am struggling to change the variable back to false when i click the button again. Can anybody see a reason why it wouldn't change back to False?
Thanks for any help, Adam.




