# GoldLab RSI Divergence

Automated Expert Advisor for trading XAUUSD based on RSI divergence and swing detection.

Canonical: https://prismaticalgos.com/compendium/algo/10772-goldlab-rsi-divergence
Record ID: 10772
Catalog rank: 431 (reading order, not performance)
Snapshot: 2026-10-31 15:46 UTC
Family: Mean Reversion & Counter-Trend (B)
Source: https://www.mql5.com/en/market/product/202811
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: H1
- sessions: Not specified
- market_regime: any

## Indicators

- RSI: {"period": 14}; applied to: close

## Recorded long-entry rules

- price makes a lower low while RSI makes a higher low, and RSI at the second low is below 50
- confirmation candle closes in the trade direction and beyond the previous bar's high/low

## Recorded short-entry rules

- price makes a higher high while RSI makes a lower high, and RSI at the second high is above 50
- confirmation candle closes in the trade direction and beyond the previous bar's high/low

## Recorded exit rules

- opposite divergence closes the open trade
- break-even at 1.0 R

## Recorded filters

- max spread 60 points
- max slippage 30 points
- daily loss limit 3.0%
- max lot 10.0
- use minimum lot if risk lot is too small
- max spread 60 points
- optional trading-hours filter

## Risk controls

- Stop loss: stop-loss beyond the swing low/high plus an ATR buffer (0.2 ATR minimum)
- Take profit: take-profit at a fixed R-multiple (2.0 R) or at the opposite swing between the two pivots (falls back to R if that swing is closer than 1R)
- Position sizing: risk % of balance (default 1%) or fixed lot, with daily loss limit and max spread filter
