
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
That's it!
Shame on me... :-)
Moreover it's not the first time I use WHILE but I started thinking in reverse and never came out of MY OWN loop :-/
And so the deVries' suggestion of replacing || with && turns right.
A lot of other things to take care of came out from this topic, i.e. whit the IF( == ) works.
Thank you all for your patience and the time you spent to make me understand.
We all have done similar things lol...
Yes you could do as deVries said or you could just add a break to get out of the while loop after it draws the object.
Having said that if you use break you could make a little bit more efficient code because there would be no need for the first while condition.
Also as GumRai said, calling EMPTY_VALUE is a better comparison value than calling iHigh().