in the help guide for AddDataSeries it states :
Syntax
The following syntax will add another Bars object for the primary instrument of the script.
AddDataSeries(BarsPeriod barsPeriod)
AddDataSeries(BarsPeriodType periodType, int period)
Can i have the following or the primary instrument ?
AddDataSeries(string instrumentName, BarsPeriodType periodType, int period, MarketDataType marketDataType)
I tried this
AddDataSeries(this.Instrument.FullName.ToString(), BarsPeriodType.Tick, 1, MarketDataType.Ask);
AddDataSeries(this.Instrument.FullName.ToString(), BarsPeriodType.Tick, 1, MarketDataType.Bid);
but note also cannot reliably use Instrument in the parameters - although have seen the above referenced in other support notes and user was not explicitly told they could not do this.
The objective is to use the historical bid/ask series and the historical portion triggered and processed in the OnBarUpdate. These would be referenced by the BarsInProgress # as with other AddDataSeries.
So in trying to achieve processing the historical bid/ask series in onbarupdata and then the realtime primary in OnmarketData .... is this the intended process.
Note i am not using tick replay in these scenarios which in onmarketdata uses only the MarketDataType.Last
if this data is not available from data vendor .. does ninja substitute in values for the ask bid historical series?
thanks

Comment