Dataloader

Questions about MultiCharts .NET and user contributed studies.
beggar
Posts: 27
Joined: 22 Sep 2016

Dataloader

Postby beggar » 18 Apr 2017

What is the difference between the 2?
InstrumentDataRequest Req = new InstrumentDataRequest();
InstrumentDataRequest Req = Bars.Request;
When I use the Bars.Request the data I received is tied to the bars of the main chart.
This one downloads data one bar at a time from the being of the chart data.
Req.Range = DataRequest.CreateFromTo(Bars.Time[1], Bars.Time[0]);
This one times out with no data downloaded
Req.Range = DataRequest.CreateBarsBack(DateTime.Now, 50);
When I try to use new InstrumentDataRequest() and fill in the stock data, I get an error reading symbol not found.
If I wanted to download data using the underlying Instrument's Symbol but not the bar length, which one do I use?

User avatar
Angelina MultiСharts
Posts: 260
Joined: 28 Dec 2016
Has thanked: 28 times
Been thanked: 66 times

Re: Dataloader

Postby Angelina MultiСharts » 21 Apr 2017

Hello beggar,

InstrumentDataRequest Req = new InstrumentDataRequest(); - creates empty requests, and all the fields have to be filled manually.
InstrumentDataRequest Req = Bars.Request; - creates a copy of request from the base data series.


Return to “MultiCharts .NET”