# M1 Gold Hedge

A breakout and hedge recovery Expert Advisor designed for Gold (XAUUSD).

Canonical: https://prismaticalgos.com/compendium/algo/618-m1-gold-hedge
Record ID: 618
Catalog rank: 1920 (reading order, not performance)
Snapshot: 2026-10-31 15:46 UTC
Family: Grid, Martingale & Averaging (C)
Source: https://www.mql5.com/en/market/product/165459
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

Claim warnings: RECOVERY SIZING: position size increases after losses (martingale/grid/averaging). Equity curves look smooth until the run that does not recover - judge it on worst-case exposure, not win rate.

## Recorded profile

- symbols: XAUUSD
- timeframes: M1, H1, M5, M15
- sessions: London Open 08:00 – 12:00 GMT, London / NY Overlap 12:00 – 17:00 GMT, New York 13:00 – 20:00 GMT
- market_regime: breakout|trending

## Indicators

- EMA: {"period": 21}; applied to: close
- EMA: {"period": 50}; applied to: close
- ADX: {"period": 14}; applied to: close
- Bollinger Bands: {"deviation": 2.0, "period": 20}; applied to: close

## Recorded long-entry rules

- H1 EMA trend direction is bullish

## Recorded short-entry rules

- H1 EMA trend direction is bearish

## Recorded exit rules

- Hard take-profit — closes all positions when combined profit reaches the target dollar amount.
- Trailing take-profit — activates above a configurable threshold and steps back from the peak profit.
- Minimum profit floor — no automated close executes unless basket profit exceeds this amount, ensuring every exit is in profit.

## Recorded filters

- Trend filter using ADX and Bollinger Bands
- Freeze mode when USD loss or equity drawdown threshold is breached
- Emergency close if account margin level drops below a configurable threshold
- Margin check before every new hedge placement

## Risk controls

- Stop loss: Per-position stop loss in pips (InpPositionSL, default 30)
- Take profit: Close all positions when basket profit reaches this amount in account currency (InpTargetProfit, default 10.0)
- Position sizing: Initial lot size for the initial breakout order (InpInitialLot, default 0.01), lot size at each new hedge level is multiplied by InpLotMultiplier (default 1.5)
