why in oncalculate if call Time not return a right Time ?
[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);
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 ?