I found a code for zero lag moving average, but i need another moving average, and cant figure out how to add it, since it keeps getting errors.
I’d like to add another longer period moving average with zero lag ofcourse.
This is the code that got 1 moving average:
//ZeroLag Fast MA:
PeriodF = 8
DataF = Close
lagF = ROUND((PeriodF-1)/2)
dF = (DataF+(DataF-DataF[lagF]))
F = average[periodF](dF)
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