# XAUUSD Adaptive Pro EA (v2)

Adaptive trading based on market state with four modes: uptrend, downtrend, side (range), and news.

Canonical: https://prismaticalgos.com/compendium/algo/11616-xauusd-adaptive-pro-ea-v2
Record ID: 11616
Catalog rank: 2156 (reading order, not performance)
Snapshot: 2026-10-31 15:46 UTC
Family: Trade & Execution Management (K)
Source: https://github.com/mehedi-create/Mt5EA
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: Not specified
- sessions: Not specified
- market_regime: trending|ranging|volatile|any

## Indicators

- ATR: {"period": null}; applied to: close

## Recorded long-entry rules

- Higher Low (≤ N bars old)

## Recorded short-entry rules

- Lower High

## Recorded exit rules

- Higher High (structure exit), trailing stop, or trend reversal
- Lower Low (structure exit), trailing stop, or trend reversal
- Opposite side of the range (TP), R:R ≥ 1.0
- Momentum direction when the window opens/price breaks (body ≥ 0.4×ATR), rolling trailing stop (1.2×ATR); on stop-out the EA reverses with a fresh trailing stop (max 3 flips), flat at window end

## Recorded filters

- Not specified.

## Risk controls

- Stop loss: 0.8–4.0×ATR, clamped to 0.8–4.0×ATR
- Take profit: null
- Position sizing: Risk-% sizing off the smaller of balance/equity
