Enable/disable trading rules Tabs
1 replies
pipnotic
8 years ago #114087
Hi, Marc
This one should be very easy to implement, yet quite handy: why not have a “Enable/Disable” box for each trading rule Tab?
In this way we can easily switch between combinations of rules when compiling EAs for back-testing, without the need to create boolean variables to “activate/deactivate” them, or even worse, create rules and then delete them! 🙂
I suppose this option would just “mask out” the code of the particular tab each time a MQL code is generated!
Cheers!
seaton
8 years ago #132178
I do this by creating a boolean variable tradingEnabled, and then put this in the relevant rules I want to be able to turn off.
if you need more fine grain control, create more of them on a 1:1 for each rule and have it at to top of the rule condition.
You could go one step further and have rules dynamically turn off / on depending on market conditions.
Viewing 1 replies (of 1 total)