# XAUUSD_ReversalTrend_M1

Scalping XAUUSD (gold) with a reversal-in-trend strategy using RSI/Stochastic oscillator and candle confirmation.

Canonical: https://prismaticalgos.com/compendium/algo/11664-xauusd-reversaltrend-m1
Record ID: 11664
Catalog rank: 122 (reading order, not performance)
Snapshot: 2026-10-31 15:46 UTC
Family: Mean Reversion & Counter-Trend (B)
Source: https://github.com/30blekok-stack/EA-MT5---M1-Reversal-in-Trend
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, H1
- sessions: Not specified
- market_regime: trending

## Indicators

- EMA: {"period": 50}; applied to: close
- RSI: {"period": 14}; applied to: close
- Stochastic: {"D": 3, "K": 5, "slow": 3}; applied to: close
- ATR: {"period": 14}; applied to: close
- ADX: {"period": 14}; applied to: close

## Recorded long-entry rules

- InpOscMode = RSI or Both and RSI > InpRSIBuyLevel
- InpOscMode = Stochastic and Stochastic > InpStochBuyLevel
- InpOscMode = Both and RSI > InpRSIBuyLevel and Stochastic > InpStochBuyLevel
- InpMinWickRatio > 0.30
- InpMinClosePosition > 0.50
- InpMinRangeATRRatio > 0.0
- InpTrendTimeframe = M15 or H1 and trend is up
- InpUseSlopeFilter = true and slope is up
- InpUseADXFilter = true and ADX > InpADXMinLevel

## Recorded short-entry rules

- InpOscMode = RSI or Both and RSI < InpRSISellLevel
- InpOscMode = Stochastic and Stochastic < InpStochSellLevel
- InpOscMode = Both and RSI < InpRSISellLevel and Stochastic < InpStochSellLevel
- InpMinWickRatio > 0.30
- InpMinClosePosition < 0.50
- InpMinRangeATRRatio > 0.0
- InpTrendTimeframe = M15 or H1 and trend is down
- InpUseSlopeFilter = true and slope is down
- InpUseADXFilter = true and ADX > InpADXMinLevel

## Recorded exit rules

- Breakeven after InpBreakevenTriggerPoints points profit
- Trailing after breakeven is set
- Partial close at InpPartialPercent profit
- Time exit after InpMaxBarsInTrade bars

## Recorded filters

- InpMaxSpreadPoints > 50
- InpUseSession = false
- InpUseATRFilter = false
- InpATRMinPoints <= ATR <= InpATRMaxPoints
- InpUseNewsFilter = false
- InpMaxDailyLossPercent < 5.0%
- InpMaxTradesPerDay < 20
- InpMaxOpenPositions = 1
- InpDailyProfitTargetPercent < 0.0%

## Risk controls

- Stop loss: ConfirmCandle: SL at low/high of confirming candle + buffer (InpSLBufferPoints points)
- Take profit: None (relying on trailing), RR (InpRR times SL distance), or points (InpTPPoints points)
- Position sizing: Fixed (InpFixedLot) or RiskPct (InpRiskPercent%)
