I'm new to NinjaTrader, but not new to programming in C# (I'm working here to port some indicators I wrote in NeoTicker to NinjaTrader).
My question involves Ninja Trader's protocol when writing an indicator on an indicator. In this case, the example would be creating a Moving Average on Momentum, which itself is based on a calculated data series.
I'm not sure if NinjaTrader allows nested indicators, but here's what I've been doing:
double myValue = Math.Log(System.Convert.ToDouble(Close[0])); logSeries.Set(myValue); momentumSeries.Set(Momentum(logSeries, 1)[0] * 100); M_EMA_1.Set(EMA(momentumSeries, 10)[0]);
Where am I screwing up, and is this even possible?
Comment