Login Page - Create Account

Support Board


Date/Time: Sat, 18 May 2024 04:37:47 +0000



Post From: issue with reloading chart and array size

[2016-06-10 05:03:44]
onnb - Posts: 661
I've been testing this idea using LatestDateTimeForLastBar
Continuing with the 98/100 example from above...

Initially in this particular example on the Range bar chart, you will have 98 bars and then in less than a second later there will be 100 bars.

Is it possible that when we have 98 bars, the sc.LatestDateTimeForLastBar has a timestamp that goes into bar 100?
In testing, I reproduce this with 15 second bars, I see the following:
Bar 98 has a start time of 00:41:15
sc.LatestDateTimeForLastBar has a timestamp of 00:41:54:000

In the log message below is a case where the arraySize is smaller by two. A few second before that it was 5719.
The bar at index 5716 has the timestamp 00:41:15:000


Chart: EURUSD [M] 15 Sec #1 | Study: Box Fe/Ff | index 5716, barClosed false arraySize 5717 nextIndex 5716 latestDateTimeForLastBar 2016-06-10 00:41:54.000 | 2016-06-10 00:41:51