Question regarding IDataLoader.BeginLoadData.  [SOLVED]

Questions about MultiCharts .NET and user contributed studies.
holya
Posts: 40
Joined: 28 Aug 2012
Location: Vancouver, Canada
Has thanked: 8 times
Been thanked: 1 time

Question regarding IDataLoader.BeginLoadData.

Postby holya » 27 Apr 2013

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.

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: Question regarding IDataLoader.BeginLoadData.

Postby Henry MultiСharts » 29 Apr 2013

But now if I use the backward/forward feature of the application this delegate is not called!
Hello holya,

What is the exact feature you are referring to?

holya
Posts: 40
Joined: 28 Aug 2012
Location: Vancouver, Canada
Has thanked: 8 times
Been thanked: 1 time

Re: Question regarding IDataLoader.BeginLoadData.

Postby holya » 29 Apr 2013

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.

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: Question regarding IDataLoader.BeginLoadData.  [SOLVED]

Postby Henry MultiСharts » 29 Apr 2013

Playback and loading data via IDataLoader are very different things that cannot match together.


Return to “MultiCharts .NET”