this has been an ongoing issue for me for some time, and I have posted about it previously.
My indicator is fairly simply, its just for displaying 5 minute volume data on my range chart. I have narrowed the error down to the condition that BarsArray[1].Count=0.
I use the following function inside Initialize()
Add(PeriodType.Minute, 5);
So now, before attempting to access the volume I have to check the size of the additional data series. At certain times, intermittently, I get BarsArray[1].Count=0. I have not been able to determine exactly what conditions cause this state, but it is possibly related to time of day. When this condition arose again just now (its been in this state for about an hour, on more than 1 different instrument) I reloaded all historical data and reloaded all ninjascript with no change. I restarted NT and then the data appeared. But I have restarted NT several times this morning and it hasn't fixed the problem.
Can someone help me to track down the cause of this issue?
thanks,
will.
Edit : one other thing that I noticed was that OBU was not called for BarsArray[1] when the chart was reloaded.
Comment