I was under the impression that the DataSeries.ContainsValue method should be used to determine if any given bar had a value set by my indicator. My expectation is that it would return false if I did not call the Set() method for that bar.
However, on a chart with greater than 255 bars, I get an index out of range exception.
I tried setting MaximumBarsLookBack = MaximumBarsLookBack.Infinite in the Initialize() method and this did not solve the problem.
I have attached a do-nothing indicator that shows the problem by printing the exception output to the output window.
Can anybody tell me what I am doing wrong?
Thanks,
Gary

Comment