My codes are as follows:
sMomentum.Set(Momentum(FIMA2Type.SMA,8).averageTyp e[0]; OR
sMomentum.Set(Momentum(FIMA2Type.SMA,8).Average[0];
Both resulted in the same error message, ie
NinjaTrader.Indicator.Momentum.averageType is inaccessible due to its protection level
OR NinjaTrader.Indicator.Momentum.Average is inaccessible due to its protection level.
Appreciate any tips to fix it. Thank you.




Comment