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.
To help us continually offer you the best experience on ProRealCode, we use cookies. By clicking on "Continue" you are agreeing to our use of them. You can also check our "privacy policy" page for more information.Continue