Showing gaps
Your 2nd if where you compare Open and Close prices . . . it is if (Open - Close > GapsMin && Close - Open < Gap) shouldn't it be
if (Open - Close > Gap &&
Open -
Close < GapsMax)
Yes, you are right!
But what can I do, that the rectangle starts on the right candle also in M15, H1,...
sunshineh:
I don't know what you are trying to do so I can't tell you what you should do . . . perhaps you could explain and show a image to illustrate.
Yes, you are right!
But what can I do, that the rectangle starts on the right candle also in M15, H1,...
I want to show both kinds of gaps (High-Low) and (Open-Close).

Hi,
I tried the following code to show my gaps:
My code doesn't work, but I can't understand how.
Does anybody see an error??