How to use Subscribe2RT in DataLoader  [SOLVED]

Questions about MultiCharts .NET and user contributed studies.
davewolfs
Posts: 89
Joined: 06 Feb 2013
Has thanked: 2 times
Been thanked: 11 times

How to use Subscribe2RT in DataLoader

Postby davewolfs » 16 Mar 2013

How is this intended to be used?

I have set SubScribe2RT to be true.

I have specified that QuoteField should be using RequestQuoteForField to be trade.

I see that there is a field RTData in result which is of type ?Bar so either data exists or it does not exist.

If I want to see all trades while a 5 minute bar is forming via the data loader how is this accomplished? Do we need to set the range property on the request to the dataloader? Should we ever call DataLoader.EndLoadData? How should the DataLoader result.IsCompleted be treated?

Support, please provide an example of how this is used.

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

Re: How to use Subscribe2RT in DataLoader  [SOLVED]

Postby Henry MultiСharts » 18 Mar 2013

If I want to see all trades while a 5 minute bar is forming via the data loader how is this accomplished?
Attached is a sample code that subscribes to realtime data and outputs the realtime bar values in Output tab of PLEditor window.
Do we need to set the range property on the request to the dataloader?
Range property should be specified for historical data request only.
Should we ever call DataLoader.EndLoadData?
You can call DataLoader.EndLoadData when you no longer need realtime data subscription, that will free up the resources.
How should the DataLoader result.IsCompleted be treated?
IsCompleted means that historical data loading is complete and the data can be accessed.
If IsCompleted is false then the data is being loaded.
Attachments
Test_DataLoader_RT_MC85.pln
(2.28 KiB) Downloaded 639 times

davewolfs
Posts: 89
Joined: 06 Feb 2013
Has thanked: 2 times
Been thanked: 11 times

Re: How to use Subscribe2RT in DataLoader

Postby davewolfs » 18 Mar 2013

If I want to see all trades while a 5 minute bar is forming via the data loader how is this accomplished?
Attached is a sample code that subscribes to realtime data and outputs the realtime bar values in Output tab of PLEditor window.
Do we need to set the range property on the request to the dataloader?
Range property should be specified for historical data request only.
Should we ever call DataLoader.EndLoadData?
You can call DataLoader.EndLoadData when you no longer need realtime data subscription, that will free up the resources.
How should the DataLoader result.IsCompleted be treated?
IsCompleted means that historical data loading is complete and the data can be accessed.
If IsCompleted is false then the data is being loaded.
Henry,

Are you aware that the DataRequest.CreateBarsBack and DataRequest.CreateDaysBack calls do not work for history?

They always return no data. Completely different from using From and To.

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

Re: How to use Subscribe2RT in DataLoader

Postby Henry MultiСharts » 19 Mar 2013

Henry,

Are you aware that the DataRequest.CreateBarsBack and DataRequest.CreateDaysBack calls do not work for history?

They always return no data. Completely different from using From and To.
Thank you for reporting. This issue has been confirmed. It will be fixed in the next version of MultiCharts.

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

Re: How to use Subscribe2RT in DataLoader

Postby Henry MultiСharts » 07 Jun 2013

Are you aware that the DataRequest.CreateBarsBack and DataRequest.CreateDaysBack calls do not work for history?
This issue has been resolved in MultiCharts .NET 8.7 Beta 2.


Return to “MultiCharts .NET”