Mov Avg Hull
The Mov Avg Hull indicator calculates and plots a weighted average of prices based on Alan Hull's formula that calculates a fast moving average that quickly reflects trend changes while maintaining curve smoothness.
Description
The indicator is calculated according to the formula below.
HMA = WAverage( 2 * WAverage( Price, IntPortion( Length * 0.5 ) ) - WAverage( Price, Length ), IntPortion( SquareRoot( Length ) ) )
A moving average may be used to identify the trend. The market trend may be defined by the direction in which the average is moving and the relative position of prices and the moving average plot. Rising moving average values and prices above the moving average may indicate an uptrend. Declining moving average values and prices below the moving average may indicate a downtrend.
A displaced moving average plots the moving average value of a previous bar or later bar on the current bar. This indicator is not displaced by default. Changing the Displace input to a positive number displaces the plot to the left. Changing the Displace input to a negative number displaces the plot to the right
Default Inputs
Price( close ) sets the price value used in calculation of the Hull Moving Average.
Length( 9 ) sets the number of bars to include in the calculation.
Displace( 0 ) sets the number of bars to displace the plot of the Hull Moving Average.