# Gold Pullback Trend Follower

A simple trend-following robot for XAUUSD that buys or sells pullbacks on H4 with an ATR trailing stop.

Canonical: https://prismaticalgos.com/compendium/algo/10785-gold-pullback-trend-follower
Record ID: 10785
Catalog rank: 433 (reading order, not performance)
Snapshot: 2026-10-31 15:46 UTC
Family: Trend Following & Directional (A)
Source: https://www.mql5.com/en/market/product/202779
Evidence label (unverified): backtest_shown

## Scope and limitations

These are machine-extracted research records, not verified trading systems. Catalog rank measures specification detail and claimed evidence, not profitability. The catalog extraction pipeline did not independently backtest these records. Its separate selected testing ledger does not validate the wider corpus. Rules, labels and parameters can be incomplete or wrong; consult the original source and its reuse terms.

No endorsement, ownership claim or source-code reuse permission is implied.

## Extraction warnings

No automated warnings recorded; this is not validation.

## Recorded profile

- symbols: XAUUSD
- timeframes: D1, H4
- sessions: Not specified
- market_regime: trending

## Indicators

- EMA: {"period": 50}; applied to: close
- EMA: {"period": 200}; applied to: close
- EMA: {"period": 20}; applied to: close
- ATR: {"period": 14}; applied to: close

## Recorded long-entry rules

- EMA50 > EMA200 and daily close is above EMA50

## Recorded short-entry rules

- EMA50 < EMA200 and daily close is below EMA50

## Recorded exit rules

- Trailing stop at the highest high since entry minus 3 x ATR(14) (mirror for shorts)

## Recorded filters

- skip entry if spread > 0.1 x ATR
- use minimum lot if risk-based lot is too small

## Risk controls

- Stop loss: below the last 5 H4 lows (above the highs for shorts), at least 1 x ATR(14)
- Take profit: null
- Position sizing: risk % of balance divided by the stop distance
