I have one indicator called DayRange. It has some methods, one of which is Blue(). If you go inside Blue, it uses NinjaTrader's ISeries<double> Open and Close without issue. When I call DayRange from a strategy I can successfully say
Now here's where I get confused...
I have another function called Candle. When I type
If I type
public double Candle(ISeries<double> Open, ISeries<double> Close)
return Math.Abs(Open[0] - Close[0]);
}
I've put the two files side by side and made all of the "extras" (everything outside of the function) as identical as I think I can. Obviously I'm missing something, does anyone know what that might be? What makes a class/Indicator/whatever grab those NinjaTrader ISeries and make them available for me to call? I would love to know. Thanks again in advance.
Best Regards,
Nate.
Comment