[0] is the oldest bar
the newest bar is [rates_total-1]
You can make time[0] reflect the open time of the current bar if you set the buffer to time series indexing
ArraySetAsSeries(time, true);

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 in simply function oncalculate in indicator , when i try to print Time[0] , bar (in formation) return me 2023.09.22 02:20:00 0_o why ?