I'm writing a new strategy that I run on 5 minute.
I want to use also daily data in the strategy, so I added "Add(PeriodType.Day, 1);" in the "Initialize" method.
The problem is that I get the below errors:
Default Failed to call 'Add' method: Cbi.Bars.Add: volume value (-210) must be greater than 0
Error on calling 'OnBarUpdate' method for strategy 'BelowAbpveBB/0ffaa1429baa4d94a154b5c13ef435db': 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