Example would be
Optimize Bar Type: Minute, 1
Add(PeriodType.Minute,2) // index 1
Add(PeriodType.Minute,5) // index 2
Add(PeriodType.Minute,15) // index 3
Within the strategy the only components that reference the 0 index are SubmitOrder( "0" <----submitted against 1 min bar....and then all indicators are running on the 15 min period type.
I was able to get around this problem by changing the 2 middle period types to 30 min and 45 min each. Which no indicators run on.
I dont know why this fixed it but i didnt want to delete them or i would have to change the barsArray[3] to barsarray[1]....Also this has never happened before and for backtesting to realtime trading i like to keep extra bar types accessible. like adding the first bar type as periodtype.minute,1 -- even though the base chart is always one minute as then when i switch to ticks its much more user friendly coding.
Any idea on why this would slow down optimizations, or disable use of all cores?
Comment