Skip to content
All library documents

Using Hull Moving Average Slope to Display Trend Direction

Article MQL5 code base

Summary

This indicator uses the Hull Moving Average (HMA) and its slope as a visual criterion for trend direction. After calculating the HMA, it represents the trend through a chart display selected by the user, such as a colored line, bars, or candles. An automatic display option chooses a suitable style based on the chart type.

The description explains the indicator’s calculation concept and visual output, but does not specify the HMA period, slope thresholds, or rules for converting the slope into trading entries or exits. It provides no backtest, market examples, or performance evidence. The indicator is therefore presented as a way to visualize trend, not as a complete trading system or evidence that its signals predict future returns.

Key ideas

  • The indicator calculates a Hull Moving Average.
  • It uses the HMA slope to represent trend direction.
  • Trend information can be drawn as a colored line, bars, or candles.
  • Automatic display selection adapts the drawing style to the chart type.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.