# MACD with Regime Gate and Classifier

Uses MACD crossovers with a regime filter and Random Forest classifier for position sizing.

Canonical: https://prismaticalgos.com/compendium/algo/7515-macd-with-regime-gate-and-classifier
Record ID: 7515
Catalog rank: 1287 (reading order, not performance)
Snapshot: 2026-10-31 15:46 UTC
Family: Statistical, Quantitative & Machine Learning (I)
Source: https://www.mql5.com/en/articles/22911
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: EURUSD
- timeframes: H1
- sessions: Not specified
- market_regime: trending|ranging|volatile|breakout|any

## Indicators

- MACD: {"fast": 12, "signal": 9, "slow": 26}; applied to: close
- ATR: {"period": 14}; applied to: close

## Recorded long-entry rules

- macd_hist crosses above macd_signal

## Recorded short-entry rules

- macd_hist crosses below macd_signal

## Recorded exit rules

- triple-barrier method with 1.5x and 1.0x target volatility

## Recorded filters

- min_hist_atr
- confirm_bars
- zero_line_required

## Risk controls

- Stop loss: 1.0x target volatility
- Take profit: 1.5x target volatility
- Position sizing: scaled by classifier's predicted probability of success
