I'm experiencing the same error although I don't have the freezing issue. It's also a custom high/low indicator of sorts accessing a different timeframe. If I comment out the plot section and simply print the values, they all show in the output window but if I uncomment the plot, I get the error. Below is what I am using:
If (CurrentBar < 1) return;
if (CurrentBars[1] > barsrequired) {
high = Indicator([BarsArray[1], 21).Plot0[1];
low = Indicator([BarsArray[1], 21).Plot1[1];
Plot0.Set(high);
Plot1.Set(low); }
if I substitute the plot statements for
Print(Time[0] + " " + CurrentBars[1] + " high= " + high + " || low= " + low);
The output shows:
11/15/2010 10:32:00 AM 2 high= 1.36223 || low= 1.36223
11/15/2010 10:32:30 AM 3 high= 1.36223 || low= 1.36223
11/15/2010 10:33:00 AM 4 high= 1.36201 || low= 1.36201
11/15/2010 10:33:30 AM 5 high= 1.3619 || low= 1.3619
11/15/2010 10:34:00 AM 6 high= 1.36152 || low= 1.36152
11/15/2010 10:34:30 AM 7 high= 1.36148 || low= 1.36148
11/15/2010 10:35:00 AM 8 high= 1.36133 || low= 1.36133
11/15/2010 10:35:30 AM 9 high= 1.36128 || low= 1.36128
11/15/2010 10:36:00 AM 10 high= 1.3614 || low= 1.3614
11/15/2010 10:36:30 AM 11 high= 1.36117 || low= 1.36117
11/15/2010 10:37:00 AM 12 high= 1.3614 || low= 1.3614
11/15/2010 10:37:30 AM 13 high= 1.3612 || low= 1.3612
11/15/2010 10:38:00 AM 14 high= 1.36136 || low= 1.36136
11/15/2010 10:38:30 AM 15 high= 1.36144 || low= 1.36144
11/15/2010 10:39:00 AM 16 high= 1.36177 || low= 1.36177
11/15/2010 10:39:30 AM 17 high= 1.36162 || low= 1.36162
11/15/2010 10:40:00 AM 18 high= 1.3616 || low= 1.3616
11/15/2010 10:40:30 AM19 high= 1.36154 || low= 1.36109
11/15/2010 10:41:00 AM 20 high= 1.36154 || low= 1.36109
11/15/2010 10:41:30 AM 21 high= 1.36154 || low= 1.36109
The highs/lows will be the same until the 19th bar but the point is that values are there starting at bar 2 and I have barsrequired set at 21.
Comment