QuantForge
en

EDGE #4: H4 MACD Divergence + Confirmation Candle Swing

Waits for price and MACD to disagree over the last 20 H4 bars (bullish or bearish divergence), enters after a confirming candle and aims for twice the 60-pip stop. Few trades: a handful per quarter.

Start freeRead the docsFree plan, no card needed.

Tested on EURUSD M1, 2024-10 to 2026-10

Profit factor, year 1 / year 2
1.65 / 1.94
Trades
25
Max drawdown
6%
Timeframe
H4
Open in QuantForge

Free account. The template opens as a new project you can edit, backtest and export.

Past results on one symbol, from one broker’s data. They do not predict future results: test on your own data and on a demo account first.

Inputs you can tune

InputDefault
MagicNumber930004Identifies this EA's trades
DivergenceLookback20Bars searched for the divergence
StopLossPips60Stop loss, pips
TakeProfitPips120Take profit, pips
RiskPercent1Risk per trade, % of equity

More templates

Build your first EA today

The free plan includes three projects, backtests on H1 to D1 over a year, MQL4/MQL5 export and the converter.

Start free

Keep exploring