A little help making my EA simpler (formula or custom code)
-
Hello all,
I'm looking for a way to make my EA more easy to adjust. If got no programming background and i'm using fxdreema's forum to expand my knowledge. after searching I didn't find anything that could help.
I'm working on a system that checks if the previous 24 candle highs are below (and candle low above) the 100 EMA.
I know that you can check the last X previous candles with the Market properties condition, but that can only check if all candles are below the 100 EMA of a specified candle time (ID). Hope you know what I mean.The way I did it now was to make separate condition blocks for all 24 candle ID's.
(Candle High ID 1 X< EMA 100 Candle ID 1) Times 24.My question:
Is there a easier way to do this? With some code or formula/variables
Thanks for reading and hope someone can help ore explain what to do.
-
Here you are, my friend. Hope it helps.
-
Thanks, this will be very helpful.