Candles don't touch ema after cross
-
Hello,
Right now my EA got a variable saying that the 50ema needs to be above the 200ema. Also got a variable saying that for 7 candles in a row, they cannot touch the 50 ema. Only then look for another condition.
What i need is the EA to start to count this "7candle without touch the ema50" rule only after the 50ema is above the 200 ema.
Right now as it is, if the ema50 is below the ema200 and "7candle without touch the ema50" rule is already met, the EA will enter a trade right away as soon as the ema50 crosses above the ema200 and I need it to wait this 7 candles after the ema50 is above the 200
I attach an image bellow for better understanding
Thank you in advance for any help


-
@renatojjs An ugly but efficient way to do it is by linking 7 consecutive condition blocks requiring that low proce of all candles ID 1 to 7 is strictily ABOVE that MA for a buy. Then below it for a sell.
-
@l-andorrà thank you for the help, that is what I have right now (7 consecutive blocks with the rules that you mentioned) but as it is it doesn't start to count the 7 candles after cross of the emas 50 and 200, it starts the counting right when the first candle don't touch the 50 ema (like in the example image)
Can you help please?
Thank you for all the support
-
@renatojjs Can you please share the link to your project?