My name is Yusuf and recently I am in the process of reading the codes of different indicators and strategies either readily available or imported from NT Forum. I need help in defining the Inputs for ADXVMA. I am trying to use ADXVMA in a Strategy but it failed on compiling mainly because I don't know the syntax of defining the MA type. Now, the user inputs used in indicator ADXVMA are as follows.
privateint aDXPeriod = 6;
privateint mAPeriod = 1;
private NinjaTrader.Indicator.MAV.MAType mAType = NinjaTrader.Indicator.MAV.MAType.EMA;
I define ADXVMA to used in strategy as follows:
ADXVMA(6,1,NinjaTrader.Indicator.MAV.MAType.EMA);
But it gives error.
Help is appreciated.
Thanks & best regards,
Yusuf SHAIKH

Comment