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.
How to use Subscribe2RT in DataLoader [SOLVED]
- 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]
Attached is a sample code that subscribes to realtime data and outputs the realtime bar values in Output tab of PLEditor window.If I want to see all trades while a 5 minute bar is forming via the data loader how is this accomplished?
Range property should be specified for historical data request only.Do we need to set the range property on the request to the dataloader?
You can call DataLoader.EndLoadData when you no longer need realtime data subscription, that will free up the resources.Should we ever call DataLoader.EndLoadData?
IsCompleted means that historical data loading is complete and the data can be accessed.How should the DataLoader result.IsCompleted be treated?
If IsCompleted is false then the data is being loaded.
- Attachments
-
- Test_DataLoader_RT_MC85.pln
- (2.28 KiB) Downloaded 647 times
Re: How to use Subscribe2RT in DataLoader
Henry,Attached is a sample code that subscribes to realtime data and outputs the realtime bar values in Output tab of PLEditor window.If I want to see all trades while a 5 minute bar is forming via the data loader how is this accomplished?Range property should be specified for historical data request only.Do we need to set the range property on the request to the dataloader?You can call DataLoader.EndLoadData when you no longer need realtime data subscription, that will free up the resources.Should we ever call DataLoader.EndLoadData?IsCompleted means that historical data loading is complete and the data can be accessed.How should the DataLoader result.IsCompleted be treated?
If IsCompleted is false then the data is being loaded.
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.
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: How to use Subscribe2RT in DataLoader
Thank you for reporting. This issue has been confirmed. It will be fixed in the next version of MultiCharts.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.
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: How to use Subscribe2RT in DataLoader
This issue has been resolved in MultiCharts .NET 8.7 Beta 2.Are you aware that the DataRequest.CreateBarsBack and DataRequest.CreateDaysBack calls do not work for history?