Optional condition filter
-
If have a set of conditions for a trade, how can I make it possible to use them as an "optional" setting? Something like if you are running your EA and if go to settings, you select "true or false" if want to use MA crossing, and same "true or false" to use the condition of MACD > 50, for example? So that the EA only looks for the conditions that are set to true in the settings?
Thanks
-
Set a Constand with "bool" datatype. Set it's value to true or false. Then put that Constant in Condition block (Value -> Numeric will work) and compare it with Value -> Numeric (values 1 or 0) or Value -> Boolean.