Hull Moving Average Pullbacks with MACD and ATR Risk Controls for Gold
Summary
This gold strategy organizes entries into three stages. A fast Hull moving average compared with a slower one defines the directional regime. Price must first stretch away from a reference Hull average by an ATR-scaled distance, then return within an ATR-scaled tolerance to arm a pullback setup. An entry can follow a break of the previous bar’s high or low, a reclaim of the reference average, or either trigger; an optional MACD histogram filter requires momentum to tick in the trade direction. Setups can expire after a configured number of bars.
Risk controls use an ATR-based stop and a reward-to-risk target, with sizing configurable as a risk percentage or fixed lot. The script also includes entry-hour restrictions and reporting features. The supplied material is a source-code excerpt rather than a results discussion: it offers no backtest statistics or evidence of profitability. Performance will depend on the instrument, timeframe, costs, fill assumptions, and chosen parameters; session restrictions apply to entries while protective exits are intended to remain active at all times.
Key ideas
- A fast versus slow Hull average sets the strategy’s directional regime.
- Price must stretch away from and then return toward a reference Hull average to arm a pullback trade.
- Entries use a prior-bar break or reference-average reclaim, with an optional MACD histogram direction filter.
- Stops and targets scale from ATR, while position size can be risk-based or fixed.
- The excerpt supplies implementation details but no evidence from reported backtests.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.