Problem occurs only, when indicator is set to CalcFromIntradayData and applied to a chart with Equidistant Bar Spacing = False. These two conditions are necessary, which can easily be understood, when looking at the indicator code:
The offensive code is line 390 of the indicator
Bars.GetTime(Math.Min(Bars.Count - 1, Bars.GetBar(ChartControl.LastBarTimePainted))).Dat e;
Switching this code off and on caused the out-of-range exception to disappear and reappear, so it is definitely caused by this.
Now, not every time I created a chart with Equidistant Spacing set to False, it would create an exception. It was more likely, when I had a chart with 2 DataSeries, 2 different instruments and 2 different time intervals such as 5 and 30 min. But I have not found a method yet to make it reproducible. However, once I had a chart that would have the required geometry for causing an exception, it would do so for all indicators that contained the offensive code, and the problem would always go away, when I removed that line (which is needed for error messages only).
This confirms other problems that are related to Equidistant Bar Spacing, when set to False,

. All of NT customers are trading E-mini, so a double session template would be used for the E-Mini only. The main advantage of such a customized template would be to use it for different indicators, such as opening range, session based VWAP or day session pivots.
Comment