SmartQuant Discussion
http://www.smartquant.com/forums/

DataSeriesObject synch error with Custom DataProvider
http://www.smartquant.com/forums/viewtopic.php?f=60&t=14963
Page 1 of 1

Author:  ambl [ Wed Oct 02, 2019 5:34 pm ]
Post subject:  DataSeriesObject synch error with Custom DataProvider

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.

Attachments:
File comment: A visual studio project to replicate a bug.
SyncErrorTest.zip [166.15 KiB]
Downloaded 109 times

Page 1 of 1 All times are UTC + 3 hours
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/