Add bool option True/False for using indicator or signal
-
Hi traders,
Do you know if there is any simple way for using a simple "bool : true / false" ?
In the following project example, I want for exemple to have the ability to use or not any EMA or let's change the signal type. But it seems not to be working on my end, not sure what I did wrong...
https://fxdreema.com/shared/v2g4PSh1c
Thank you so much for your help.
-
@diane1313 Your bool condition's are correct but as a candle closes on 0 it becomes candle 1.
-
Thank you so much Jstap.
I do understand now what's wrong, but not sure how to rectify it. Please, would you mind to advise how to make it right?
Thanks a lot for your help
-
@diane1313 You could just use candle open:

-
Thanks a lot, just tried but for some reason, it still has not opened any trade in BT... Trying all inputs possible by using Genetic BT but no trades so far. Must have made another mistake somewhere.
-
@diane1313 I strip the EA back to single blocks so I can test on backtest, then when I know each block is doing as I like I put it all together.