Indicator moves within limits block
-
Hello there,
I have been testing the block ''Indicator moves within limits" and I have found several inconsistencies. Backtesting this rough example, although in most occasions the EA seems to work fine, there are some cases in which although the condition is fulfilled, no order is being created (screenshot example).
I am trying to explain the problem as clear as possible, so feel free to ask for any clarifications regarding the example I posted above.
Do I understand/use this block wrong?
Thanks in advance for your time,
A.S. -
This is how it looks like for me:

Are you sure that the backtest starts before 2nd of March? Do you see this problem in other days?
-
Hello again and thanks for replying.
Backtesting covered a full year, so there shouldn't be any problems regarding starting/ending dates. I tested the example I posted above once more and I encountered the same problem again (pic 1). Also I checked a few other years and I found some more cases (pic 2,3). It is strange that we have different results, I wonder why.
-
I think the calculation goes like this... here is a screenshot to help:

I numbered the candles from 0 to 15, candle 0 is where I got a trade and you didn't. So, at that time the upper level, which is Candle Close of candle 1 is the yellow line. We want that yellow line to be above each MA point for 10 candles, starting from candle 5. That MA actually shows High for each candle, so we are comparing High for each of these 10 candles with Close of candle 1. We are talking about candles 5 - 14. Count them, including candle 5, they are 10. My MA line is really below the yellow line for all of these candles. I notice that I have 2 extra candles - 5 and 11, they belong to Sunday days.
These are your 5-14 candles:

Here the High of candle 13 is higher than the yellow line.
Here High is too high in candles 10, 11 and 12
And here High is too high in candle 14. -
I actually understood the period of candles option in this block incorrectly, I can see my mistake now, thanks a lot for the answers, problem solved
