I know how to refer to different Chart Data Series and to programmatically add data series when I write a strategy in the Ninjascript editor.
Now I want to write a strategy that can be applied to any chart that has a single data series in candlestick format. The strategy might want to add the same contract on a different timeframe, or add an alternate data series from a logic statement. Is there a way to programmatically query the details of data series [0]? I wish to know it's name, expiration date, period type, period value, and market data type. Here is a sample series[0].
"NQ 09-24", Data.BarsPeriodType.Tick, 1200, Data.MarketDataType.Last
Is there a query that will return:
"NQ", "09-24", "Tick", 1200, "Last"
Thank you.

Comment