# Divergence Trader

Uses two simple moving averages of opening prices to generate buy and sell signals.

Canonical: https://prismaticalgos.com/compendium/algo/7125-divergence-trader
Record ID: 7125
Catalog rank: 1071 (reading order, not performance)
Snapshot: 2026-10-31 15:46 UTC
Family: Trend Following & Directional (A)
Source: https://www.mql5.com/en/code/1085
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: Not specified
- timeframes: Not specified
- sessions: Not specified
- market_regime: any

## Indicators

- Simple Moving Average: {"applied_to": "open", "period": 9}; applied to: Not specified
- Simple Moving Average: {"applied_to": "open", "period": 21}; applied to: Not specified

## Recorded long-entry rules

- Fast MA > Slow MA from the previous bar

## Recorded short-entry rules

- Fast MA < Slow MA from the previous bar

## Recorded exit rules

- Trailing stop and breakeven can be set
- Close all positions when certain profit or loss level is reached

## Recorded filters

- Not specified.

## Risk controls

- Stop loss: Stop Loss in points
- Take profit: Take Profit in points
- Position sizing: Lots - Position volume
