
-
Based on the original Jurik Moving Average http://jurikres.com/catalog1/ms_ama.htm this is one of the most sought after moving averages.
Due to the recursive logic it the code uses Pshai’s CC_IndicatorMemory.Example:
local src = ClosePrices() local length = 20 local phase = 0 local exp = 2 local jma= CC_IndicatorMemory( |i, mem| CC_JMA(src, length, phase, exp)) Plot(0, 'JMA', jma, {color=White, width=4})