I am downloading historical data via IDataLoader interface. I used to add new oncoming data(including RT) to my historical list in CalcBar method, which worked. But I had to manually calculate if the end of the last bar had been reached, and if so create a new bar.
In version 8.5 we have the option to set the InstrumentDataRequest.Subscribe2RT to true so we keep getting the realtime data inside the delegate which was passed to the IDataLoader.BeginLoadData. This is specially useful because now new bars are created for us. But now if I use the backward/forward feature of the application this delegate is not called!
I really do not want to go back to using the calcBar method to update my bar container. What should I do?
Many thanks in advance.
Question regarding IDataLoader.BeginLoadData. [SOLVED]
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: Question regarding IDataLoader.BeginLoadData.
Hello holya,But now if I use the backward/forward feature of the application this delegate is not called!
What is the exact feature you are referring to?
-
- Posts: 40
- Joined: 28 Aug 2012
- Location: Vancouver, Canada
- Has thanked: 8 times
- Been thanked: 1 time
Re: Question regarding IDataLoader.BeginLoadData.
Hi Henry, thanks for the prompt reply,
I'm talking about the Step forward/backward feature. When in this mode, the delegate which is passed to the BeginLoadData is not called.
I'm talking about the Step forward/backward feature. When in this mode, the delegate which is passed to the BeginLoadData is not called.
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: Question regarding IDataLoader.BeginLoadData. [SOLVED]
Playback and loading data via IDataLoader are very different things that cannot match together.