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).
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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??