The HMA (Hull Moving Average) is an extemely fast Moving Average, originally developed by Australian Technical Analyst Alan Hull.
The Hull Moving Average solves the age old dilemma of making a moving average more responsive to current price activity whilst maintaining curve smoothness. In fact the HMA almost eliminates lag altogether and manages to improve smoothing at the same time.
Period=16
inner = 2*weightedaverage[ round( Period/2 ) ](close)-weightedaverage[Period](close)
MMHULL=weightedaverage[ round( sqrt(Period) ) ]( inner )
return MMHULL COLOURED(255,0,0) as"Moyenne de Hull"