I’m trying to code the moving average indicator where I can then select the different type e.g. simple = 0, exponential = 1, etc. Why does it not work for type 7 = Zero Lag Exponential and type 8 = Hull? I have included variables a = Integer and b = MA type so that you can change these variables once indicator added to chart without having to modify the code.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok