Skip to content
All library documents

Gold Hull Moving Average Pullbacks with ATR Risk and MACD Filter

Article TradingView scripts

Summary

This XAUUSD strategy combines a fast-versus-slow Hull moving average regime with a staged pullback setup. In an up regime, price must first stretch away from a reference Hull by an ATR-based distance, then return within an ATR tolerance. A setup is armed for a limited number of bars; entry requires either a break of the prior bar’s high or a reclaim of the reference Hull, subject to the selected trigger mode. Short setups mirror the logic. An optional MACD histogram direction check filters entries.

Risk controls include an ATR-based stop and reward-to-risk target, with either percentage-of-account risk sizing or fixed lots. The script also has session restrictions, optional opposite-signal exits, daily profit locking, and a prop-firm style drawdown and target tracker. These are configurable mechanics, not evidence of profitability: the supplied text includes no backtest results, market comparisons, or validation of sizing assumptions. Results depend on timeframe, inputs, execution assumptions, and the gold contract’s lot conventions.

Key ideas

  • Fast and slow Hull averages define the long or short regime.
  • A valid setup requires an ATR-scaled move away from, then a return toward, the reference Hull.
  • Entries are triggered by a prior-bar break or a reference Hull reclaim, with optional MACD confirmation.
  • Stops and targets use ATR distance, while position size can be risk-based or fixed-lot.
  • Session, daily target, and drawdown controls constrain entries and monitor account limits.

Tags

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