But for some reason NJ does not let me create the WMA, from the weighted prices. Gives me an error that states
"The best overloaded method match for NinjaTrader.Indicator.Indicator.WMA(NinjaTrader.Da ta.IDataSeries, int)' has some invalid arguments" &
"Argument '1': cannot convert from 'double' "
Ive added the second data series like so
Add("$EURUSD",BarsPeriod.Id,BarsPeriod.Value); // Dataseries 1
Weighteds[1][0];
int Fast=5;
WMA(Weighteds[1][0],Fast);
I don't think I can use BarsArray like below because I specifically want to use the weighted prices of the secondary instruments,
WMA(BarsArray[1], Fast)[0])
Comment