For an example of the types of questions I have: in the tutorial https://ninjatrader.com/support/help...ion_logic4.htm
you have the line
Plot0.Set(SMA(SMAPeriod)[0] + myDataSeries[0]);
1. Is Plot0.Set( ) equivalent to Value.Set( ). Do they both accomplish the same thing? And if so, how would I set the values for Plot1 using the Values collection? Would it be Values[1][0].Set( )?
2. Since you have "SMA(SMAPeriod)[0]", I assume you could have SMA(SMAPeriod)[2] and so forth. Which makes me ask, is each call to SMA(SMAPeriod) calculating an array of SMA values. And if so, if we are only interested in the current value, isn't it inefficient to re-calculate all the other values each time?
Ninjatrader seems like a great platform, so hopefully can find a detailed reference to learn it well!
Comment