I am using this code:
var times = Times[0];
Print($"Printing all times from 0 to {times.Count - 1}:");
for (int i = 0; i < times.Count; i++) {
Print($"times[{i}] = {times[i]}");
}
DoRpc: got Exception: System.ArgumentOutOfRangeException: 'barsAgo' needed to be between 0 and 5473 but was 1 Parameter name: barsAgo at NinjaTrader.NinjaScript.TimeSeries.get_Item(Int32 barsAgo)
What am I doing wrong?


Comment