In NinjaTrader 7, let's presume I make a call in OnBarUpdate like this,
int BarsAgo = Swing(BarsArray[1], 5).SwingHighBar(0, 1, CurrentBars[1]);
This is a case of passing a Bars object as indicator input (rather than another indicator, per the link above).
Note that @Swing.cs does not reference the "Input" series, but uses the normal "High" and "Low" data series inside
OnBarUpdate.
Question #1 is fundamental -- how does the Swing indicator access the High & Low series of the input Bars object?
[Presumably, a Bars object passed as input to an indicator causes the references to Open/High/Low/Close to be
remapped to those of the input Bars object, rather than the primary bar series. Is this correct?]
Question #2 is multi-part -- what other things get mapped to the input Bars object?
[For ex, do these also get mapped to reference the input Bars object?
Volume series?
Weighted series?
Typical series?
Median series?
CurrentBar property?]
Where is this "mapping to the input Bars object" documented in the NT7 help guide?
[The section "Using Bars Objects as Input to Indicator Methods" located here at,
does not mention this under-the-hood "mapping" to the input Bars object.]
Thanks
Comment