# Gold Reversion Guard

A MetaTrader 5 Expert Advisor for trading gold (XAUUSD) based on mean reversion in a quiet market.

Canonical: https://prismaticalgos.com/compendium/algo/11047-gold-reversion-guard
Record ID: 11047
Catalog rank: 55 (reading order, not performance)
Snapshot: 2026-10-31 15:46 UTC
Family: Time, Session & Seasonality (F)
Source: https://github.com/ronnisnai-frog/Gold-Scalping
Evidence label (unverified): source_code

## 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

Opacity warnings: UNDEFINED ENTRY TERM: the entry conditions are prose naming a concept with no numeric definition, so two readers would implement them differently. Advisory only -- this does not affect the score.

## Recorded profile

- symbols: XAUUSD
- timeframes: M5
- sessions: 10:00–20:00 server time
- market_regime: ranging

## Indicators

- SMA: {"period": 50}; applied to: close
- ADX: {"period": 14}; applied to: close
- ATR: {"period": 50}; applied to: close

## Recorded long-entry rules

- Z ≤ -2.2

## Recorded short-entry rules

- Z ≥ 2.2

## Recorded exit rules

- Take profit at the average
- Backup exit when a closed bar is back within Z ±0.3 of the average
- Stop moves to breakeven after 1 × ATR in profit
- Time exit after 40 bars
- Stop loss (handled by the broker's server)

## Recorded filters

- Stretch
- Turn
- Trend
- Volatility
- Spread
- Cost gate
- News
- Daily limits
- Cooldown
- Max 8 trades per day
- Friday close

## Risk controls

- Stop loss: the larger of 2.5 × ATR or 500 points
- Take profit: at the average. It is moved each bar as the average moves
- Position sizing: calculated so that hitting the stop loses about 1% of equity
