Is it possible to load data from a symbol that's not on the chart?
I get an error like "(SPY-1 Day): Symbol not found" when I have IBM on the chart. But when I change the instrument on the chart to SPY, it works.
Thanks
Code: Select all
protected override void StartCalc() {
// assign inputs
InstrumentDataRequest Request = Bars.Request;
Request.Subscribe2RT = false;
DataRequest _DataRequest = new DataRequest();
_DataRequest.RequestType = DataRequestType.FromTo;
_DataRequest.From = new DateTime(2020,1,1,0,0,0);
_DataRequest.To = new DateTime(2023,1,1,0,0,0);
Request.Range = _DataRequest;
Request.QuoteField = RequestQuoteField.Trade;
Request.Symbol = "IBM";
Request.DataFeed = "TS";
DataLoader.BeginLoadData(Request, OnData, null);
}