Can you please tell me why I have an error Type:The best overloaded method match for 'NinjaTrader.Indicator.Indicator.MAX(NinjaTrader.D ata.IDataSeries, int)' has some invalid arguments on this code?
// Max Slope CCI
slopeMax = MAX(Slope(CCI(period),barsAgoSwingH,0),barsAgo_ext remesXup)[Math.Min(CurrentBar, 1)];
I have this code similar that is ok, why? The only thing different is CCI(period) was changed by Slope(CCI(period),barsAgoSwingH,0) on the code before.
// Max CCI
swingHigh = MAX(CCI(period),barsAgo_extremesXup)[Math.Min(CurrentBar, 1)];
Thanks
Comment