Bars.Request property data is always empty ?
Doesn not reflect instrument settings.
ciao
radekj
Bars.Request property data is always empty
- JoshM
- Posts: 2195
- Joined: 20 May 2011
- Location: The Netherlands
- Has thanked: 1544 times
- Been thanked: 1565 times
- Contact:
Re: Bars.Request property data is always empty
I thought the Bars.Request property was dependent on a InstrumentDataRequest (search in help for 'request property').Bars.Request property data is always empty ?
Doesn not reflect instrument settings.
For the instrument settings such as Name, PointValue, PriceScale, Expiration, Category, etc, see
Code: Select all
Bars.Info.
Re: Bars.Request property data is always empty
It seems this property was planned as alternative of such code:Bars.Request must return info for the base-instrument (data stream 0, or in TS "data(0)"), but it does not. Or how to get Request-information of base-instrument ?
Code: Select all
var _request = new InstrumentDataRequest(Bars.Info.DataFeed, Bars.Info.ASymbolInfo2, new Resolution(), DateTime.Now, DateTime.Now);
I use it in the following way:
Code: Select all
var _request = Bars.Request;
_request.Resolution = new Resolution(EResolution.Tick, 1);
_request.From = DateTime.Now;
_request.To = DateTime.Now;
DataLoader.BeginLoadData(_request, ...