Login Page - Create Account

Support Board


Date/Time: Sat, 18 May 2024 07:25:24 +0000



Post From: issue with reloading chart and array size

[2016-06-09 06:01:43]
onnb - Posts: 661
Trying to make sense of you answer and what I might do. Maybe its something I need to do on my end?

The problem I am facing is this. I hope this makes sense to you.
Trying to keep the details to the bare minimum.

The study in question uses a reference to a 1-Tick chart to do its calculations.
So for example, we have the study applied to a 4 tick range chart and it references a 1-tick chart.

Say that I have 100 bars of data and similar to the log I sent in the original post, lets say that I reload and on the range chart I get sc.ArraySize of 98. In other words, at this time, I am not seeing the full 100 bars because of the flush you mentioned.



int localArraySize = sc.ArraySize; // lets say that this now returns 98.

SCDateTimeArray refDateTime;
sc.GetChartDateTimeArray(tickChartNum, refDateTime);

int refArraySize = refDateTime.GetArraySize(); // does the refArraySize return an index that spans the 98 bars or the 100 bars?


Is it possible that refArraySize returns the index of all the ticks available all the way up to bar 100 on the tick chart?
In other words, on one chart, I see a picture where I have data up to bar 98, and on the other chart I see a picture where I have data up to bar 100.
Is that possible at all?