Trying to look up to 28 bars back on the Ichimoku Indicator but it exit the strategy with every lookback greater than 20. The searched (15min) bar visible in the chart. There are about 50 days loaded.
Code:
private double SenkouA;
SenkouA = TSIchimoku(9, 26, 52).SenkouSpanA[28];
Error:
**NT** Error on calling 'OnBarUpdate' method for strategy 'SportStrategyMom/ebcc5a42e7ce42ada08ce5633b379197': You are accessing an index with a value that is invalid since its out of range. I.E. accessing a series [barsAgo] with a value of 5 when there are only 4 bars on the chart.
Comment