I just want to appreciate the effort from support as this is my first post but I've been lurking around before today.
I'm trying to enable my strategy but it's showing "Error on calling 'OnStateChange' method: Index was outside the bounds of the array." What I am trying to do is have the strategy run on a custom bar chart (much like a unirenko chart) with buy triggers based on the MACD on a secondary series (3200 tick) chart. I suspect it's because the strategy tries to run but it's hasn't gotten enough data so I pulled up a chart with both data series (the custom bar chart and the 3200 tick chart) with the MACD on the 3200 tick chart. From the Data Box, I can see the MACD data beginning on bar number 1 on the 3200 tick chart and bar number 134 on the custom bar chart but the MACD doesn't plot until bar 20 of the 3200 tick chart and bar 264 of the custom bar chart. I changed the 'Bars required to trade' in the strategy properties to 300 to see if that helps but it's not fixing the issue.
I appreciate any help. Also, I'm very new to this and I am not a coder.
Comment