I understand that NinjaScript will only look at the Input Data Series that is passed to it regardless of how many Data Series are applied to a chart. If you have a chart with a ES 12-12 1 Min, NQ 12-12 1 Min, and ES 12-12 60 Min Data Series on it and you use the Input Data Series as the ES 12-12 1 Min the BarsInProgress would be:
* BarsInProgress index 0 would be the Input Data Series or in this Case the ES 12-12 1 Min
* BarsInProgress index 1 would be the first Add() method which is the ES 12-12 5 Min
* BarsInProgress index 2 would be the next Add() method which is the NQ 12-12 100Tick
I have two questions:
1. Clearly ES 12-12 is the primary series here. However, suppose that the Input Data Series tot he indicator was ES 12-12 60 min. Would the BarsInProgress index still be 0 or would it now be 2?
2. Is there a way to determine what index the Input Data Series is being assigned?
Thank you for any suggestions.
Comment