indicator rise (candles to rise)
-
Hello,
I built an EA containing the "Indicator rise" block. In the "candles to rise" option, I used "1" as value, while 2 is supposed to be the minimum value for that input. My question is what happens when I do this, why do I get results and not an error?
Best, A.S -
There is no error, because the value is not checked in the block. When someone manually writes the value there, he will probably know what to write. But there is another possible scenario. Let's say that if the value is 0 or even negative, then nothing happens. This is still a way to control the block behavior via some Variable, indirect way of turning it off for a while. This makes it more flexible, because it allows you to use any value. But yes, at the same time it's probably not the best idea to do such things.
-
I did some testing and I found out that this (1) works the same as this (2). Similarly, by including one more candle in the calculations we get this (3) being the same with this (4), and so on. Doesn't this mean that in order to calculate rise for two candles (the current one and the previous) requires "1" as an input in "candles to rise" and not "2" as stated in the explanation?
Thanks again, A.S -
Why "1" for two candles... you even say the word "two". I think that while I was making this block I was thinking that 1 candle rise should be the difference between MA[0] and MA[1]. Technically we compare 2 MA values here, who belong to 2 different candles, but when you draw the line between them, the line itself has width of 1 candle. This is the yellow difference in levels in the picture below:

So I guess we are thinking differently - you think about how many points are connected, I think about the number of lines. Both ways are in the same time right and wrong
