Switch part of the EA on and off as required.
-
I have a semi autonomous EA that I use to enter trades on a 1 minute timeframe, which I then manage. When market conditions are not optimal for this EA I want to temporarily disable it (to stop false entries) while I continue to trade manually, and then quickly switch it back on again when the market picks up (as it is far faster than I am in this timeframe). Anyone know how to make this ON/OFF switch, as opposed to a button which simply activates a trade or other function once. I have not found anything that can do this yet.
-
@johntyr how bout this button?

-
With that off all trading stops, auto and manual
-
@johntyr ok, then you can just create some constant and make a condition for that constant -> when you dont want to autotrade, change that constant from the expert setting so the condition becomes false.
You can also make a variable and control with a fancy button:
https://fxdreema.com/shared/4LWM6r3Ac -
@roar Thank you, I will work on it and share my results.
-
@roar I setup as you suggested. It works great. Thank you very much for your help.