Find the distance in Candles from Last close candle to the current candle.
-
Hello guys, I would like to build a condition that, if the last trade close was a long position, then there won’t be another long position in the next 10 candles (constant int = 10) and vice versa for the short position.
The condition will prevent the EA to execute overtrade for each position when the price hits stop loss.
I am trying to find in the forum and do it myself but I can't find what I am looking for.Please help.
-
@sokphal You can try this:
-
Thank you. now it's working .
-
@sokphal You're welcome.
-
@l-andorrà Thank You
