private EMA, MyTrigger;
private double Angle, MySlope;
SLope = (MMB[0]-MMB[nbchandelierB]) / nbchandelierA * 180 / Math.PI; // ERROR on this line.
MyTrigger = EMA(MySLope, nbchandelierB+lag);
CondBuy2 = (MySLope > MyTrigger[0]) && (MySlope < 0);
I am getting an error "The best Overloaded method match for NinjaTrader.NinjaScript.Strategy.EMA(NinjaTrader.N injaScript,Iseries<double>,int)' has some invalid arguments
Argument 1 cannot convert from 'double' to NinjaTrader.NinjaScript,Iseries<double>.
Please help, thanks, Marcelo
Comment