-
Custom command for Hull Moving Average, made in SE and supports all built-in MAs.
Example:
local c = ClosePrices() local ma1 = CC_HMA(c, 20, SmaType) local ma2 = CC_HMA(c, 20, DemaType) local ma3 = CC_HMA(c, 20) -- default is WMA local ma4 = CC_HMA(c, 20, KamaType) Plot(0, 'ma1', ma1, White) Plot(0, 'ma2', ma2, Yellow) Plot(0, 'ma3', ma3, Orange) Plot(0, 'ma4', ma4, Red)