QA Hull Moving Average
- Indicatori
- Rohiman
- Versione: 1.3
A clean, standalone Hull Moving Average indicator for MetaTrader 5. Configurable period, applied price, color, width and style — all from the Inputs tab. Minimal lag, maximum responsiveness.
QA Hull Moving Average
The most responsive moving average — built clean for MetaTrader 5.
Hull Moving Average (HMA) was developed by Alan Hull to solve the fundamental problem with traditional moving averages: lag. While SMA and EMA delay signals, HMA uses a weighted extrapolation technique to follow price almost in real time — without sacrificing smoothness.
This indicator is the standalone MQL5 implementation developed by Quadrant Artifacts, built from scratch without external handles or iCustom calls. Every parameter is configurable directly from the Inputs panel.
Formula
HMA(n) = WMA( 2 × WMA(n/2) − WMA(n), √n )
The double WMA structure extrapolates price direction forward, compensating for lag before it accumulates.
Features
- Pure MQL5 implementation — no iCustom, no external dependencies
- Configurable period — use any value; Fibonacci periods (21, 34, 55, 89) recommended
- Applied price — Close, Open, High, Low, Median, Typical, Weighted
- Color selection via dropdown — 16 named colors, works correctly on all platforms including MT5 macOS
- Line width — 5 levels (Thin to Bold)
- Line style — Solid, Dash, Dot, DashDot
- Horizontal shift — positive or negative bar offset
- Auto shortname — displays as QA HMA(50) , QA HMA(21) , etc.
- EA-readable buffer — index 0 available for Expert Advisor integration
- Optimized calculation — only recalculates bars that need updating
How to Use
Period selection by use case:
| Use Case | Period | Timeframe |
|---|---|---|
| Scalping | 9–14 | M1–M5 |
| Intraday swing | 21–34 | M15–H1 |
| Daily swing | 50–55 | H1–H4 |
| Position trading | 89–100 | H4–D1 |
Reading the indicator:
- HMA slope rising → bullish momentum
- HMA slope falling → bearish momentum
- Price pullback to HMA in a trend → potential dynamic support/resistance entry
Multi-timeframe setup:
- H1 HMA(50) → macro trend direction
- M15 HMA(50) → setup identification
- M5 HMA(21) → entry timing
Why HMA Over EMA?
| EMA(50) | HMA(50) | |
|---|---|---|
| Lag | Medium | Very Low |
| Smoothness | Medium | High |
| Trend signals | Delayed | Early |
| Ranging noise | Moderate | Similar |
HMA(50) crossovers and slope changes occur significantly earlier than EMA(50), giving traders more time to act before the move matures.
Compatibility
- MetaTrader 5 (build 2450+)
- All symbols and timeframes
- Windows and macOS MT5 clients
- Compatible with Strategy Tester
About Quadrant Artifacts
Quadrant Artifacts develops algorithmic trading tools focused on clean implementation, practical usability, and the BBMA Oma Ally methodology.
- Website: quadrantartifacts.com
- MQL5: roy_fx
- TradingView: RoyHiddenTesla
This product is provided free of charge. If you find it useful, please leave a rating or comment — it helps the indicator reach more traders.
