# XAU Guardian

A production-focused MetaTrader 5 Expert Advisor for XAUUSD with strict risk limits and self-learning signal boosting.

Canonical: https://prismaticalgos.com/compendium/algo/11497-xau-guardian
Record ID: 11497
Catalog rank: 856 (reading order, not performance)
Snapshot: 2026-10-31 15:46 UTC
Family: Mean Reversion & Counter-Trend (B)
Source: https://github.com/yegorsokolov/MQL5
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

No automated warnings recorded; this is not validation.

## Recorded profile

- symbols: XAUUSD
- timeframes: M15
- sessions: London/NY session block
- market_regime: any

## Indicators

- ATR: {}; applied to: close
- RSI: {"period": 14}; applied to: close
- CCI: {}; applied to: close
- ADX: {}; applied to: close
- Bollinger Bands: {}; applied to: close
- EMA: {"period": 9}; applied to: close
- EMA: {"period": 21}; applied to: close
- Donchian Channel: {}; applied to: close
- Keltner Channel: {}; applied to: close
- SuperTrend: {}; applied to: close
- XAU_TVF: {}; applied to: close
- XAU_Squeeze: {}; applied to: close

## Recorded long-entry rules

- Inp_RegimeMode = 1 or Inp_RegimeMode = 3 and Inp_MinTrendScore > 0.5 and Inp_MinADX > 25 and Inp_RSI_Long > 50

## Recorded short-entry rules

- Inp_RegimeMode = 2 or Inp_RegimeMode = 3 and Inp_MinTrendScore < -0.5 and Inp_MinADX < -25 and Inp_RSI_Short < 50

## Recorded exit rules

- Inp_MaxBarsInTrade bars elapsed
- Inp_GivebackPct % of max profit reached
- Inp_BE_Trigger_ATR ATR multiple crossed
- Inp_Chandelier_ATR Chandelier stop hit
- Inp_TrailStartPoints profit threshold reached

## Recorded filters

- Inp_NightBlock block during night hours
- Inp_SpreadLimit maximum spread allowed
- Inp_MinBookVolume minimum book volume required
- Inp_BookDepthLevels minimum book depth levels required
- Inp_MaxTradesPerHour maximum trades per hour
- Inp_MinMinutesBetweenTrades minimum minutes between trades
- Inp_LossStreakLimit loss streak limit
- Inp_SoftDrawdownPct soft drawdown percentage
- Inp_ECS_Drawdown equity-curve EMA drawdown threshold

## Risk controls

- Stop loss: Inp_SL_Points points
- Take profit: Inp_TP_Points points
- Position sizing: Inp_RiskPerTrade % of risk per trade, ATR-based sizing
