Say, for example, I want to reference this indicator within a strategy or another indicator's NinjaScript. I know with a standard SMA I would use:
double simple = SMA(Input,20)[0];
public enum MAType { EMA, JMA, HMA, LinReg, MMA, SMA, TMA, WMA, McGinleyDynamic, Butterworth2, Butterworth3 }
double whatever = jhlMA(??????,int period)[0];
I assume it wants 'MAType' but I'm not sure about the correct syntax to use:
double whatever = jhlMA(MAType(),int period)[0]; //??? double whatever = jhlMA(jhlMA.MAType,int period)[0]; //??? double whatever = jhlMA(MAType(),int period)[0]; //???
Comment