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.
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
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
| Input | Default | |
|---|---|---|
MagicNumber | 930004 | Identifies this EA's trades |
DivergenceLookback | 20 | Bars searched for the divergence |
StopLossPips | 60 | Stop loss, pips |
TakeProfitPips | 120 | Take profit, pips |
RiskPercent | 1 | Risk per trade, % of equity |
More templates
- EDGE #1: H1 Bollinger Extreme + Engulfing Reversal · H1
- EDGE #2: H1 Four-Candle Streak + RSI(2) Snapback · H1
- EDGE #3: H1 RSI Basket Grid + Money Take-Profit · H1
- EDGE #5: London Open Stop-Order Breakout (Tue–Thu) · M15
- EDGE #6: H4 Connors RSI(2) Extreme + SMA(5) Exit · H4
- EDGE #7: M30 RSI(14) Extreme Basket Grid · M30
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.