Yellowbeard:
The current candle is number 0
This code should give me the Open and Close of the 50th candle in a chart, but actually gives the Open and Close of the 51st candle. Is there a way to get these two points in line with each other. The count of the candle with it's Open and Close?
Thanks!
Don't know, everything I try only ends up with the candle count and Open and Close of the candle, out of sync by 1.
Don't know what? The right most candle is zero. The second from the right is one. The 50th from the right is 49.
Yellowbeard:
Don't know, everything I try only ends up with the candle count and Open and Close of the candle, out of sync by 1.
Don't know, everything I try only ends up with the candle count and Open and Close of the candle, out of sync by 1.
RaptorUK:
The current candle is number 0
The third candle on a chart is . . . 2, 1, 0 . . . . bar number 2 the 50th bar on a chart is bar number 49.
The current candle is number 0
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
This code should give me the Open and Close of the 50th candle in a chart, but actually gives the Open and Close of the 51st candle. Is there a way to get these two points in line with each other. The count of the candle with it's Open and Close?
Thanks!