Following this discussion
viewtopic.php?f=60&t=14960,
I am trying to call AddInstrument(instrument, myCustomDataProvider) after OnStrategyStart has been called. This avoids the error discussed ealier but produces many DataSeriesObject synch errors and then eventually throws a NullPointerException from somewhere within SmartQuant.dll and the program crashes.
I have attatched a test case strategy to replicate. I have tried adding various instruments with different datetime's and all have failed so I'm confident you can replicate the bug with your own instruments, if not I can also provide a data sample.