Probably a newbie question but I would like to know how to use the CrossAbove function using multitimeframes.
So basically I have added three extra timeframes using the Add(PeriodType.Minute, xxx); function.
Now when I enter the following code:
if (CrossAbove(CCI(Closes[1],20)[0],-100,1)) { Print("True"); }
If gives me the following error:
Strategy\CCICross.cs The best overloaded method match for 'NinjaTrader.Strategy.StrategyBase.CrossAbove(doub le, NinjaTrader.Data.IDataSeries, int)' has some invalid arguments CS1502 - click for info 60 8
Strategy\CCICross.cs Argument '2': cannot convert from 'int' to 'NinjaTrader.Data.IDataSeries' NT1503 - click for info 60 40
Help!
Comment