if (CrossAbove(Stochastics(7,14,3).K[0],80,1)) DrawDot("Dwn Dot", false, 0, Stochastics(7,14,3).K[0], Color.Maroon);
gives me errors of:
"The best overloaded method match for 'NinjaTrader.Indicator.IndicatorBase.CrossAbove(do uble,NinjaTrader.Data.IDataSeries,int)' has some invalid arguments"
and
"Argument '2': cannot convert from 'int' to 'NinjaTrader.Data.IDataSeries'"
I've also tried the following and got the same results.
double value20=Stochastics(7,14,3).K[0];
if (CrossAbove(value20,80,1)) DrawDot("Dwn Dot", false, 0, value20, Color.Maroon);
Can anyone kindly help me out here?
Thanks in advance.
Comment