I have a very simple strategy that runs on range bars and renko bars. I want to add a 15 minute sma to the strategy. I have added a second data series. When I try to look at the first element of the SMA indicator on the second Data Series I get the following error:
System.ArgumentOutOfRangeException: 'Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index'
When I change the primary chart to a 1 minute chart, I do not get this error and all appears to work as expected.
Can you mix different bar types in a strategy? If so, what do I need to do?
Find attached the strategy.
Thanks for your help.
Comment