Gold H4 Pullback Breakout
- Experts
-
Kizhi Hamashima
I am a self-taught MQL5 developer, researching and developing automated trading systems mainly for XAUUSD (Gold). - 버전: 1.0
Gold H4 Pullback Breakout is a simple trend-following EA for XAUUSD (Gold), built from the author's own discretionary gold trading method.
How it works
- Trend: when EMA 30 crosses EMA 200 on H4, the EA takes that direction as the trend.
- Pullback: it waits for a closed H4 bar that touches EMA 30, and records that bar's high and low.
- Entry: when a later H4 bar closes above that high (buy) or below that low (sell), it enters in the trend direction.
- Exit: Stop Loss = ATR(14) x 1.5, Take Profit = ATR(14) x 4.0, both set at entry.
- All decisions are made on closed H4 bars only.
Safety
- Fixed lot. No martingale, no grid, no averaging.
- One position at a time. No new trade while any position is open on the same symbol (including manual trades and other EAs).
- After being attached, it waits for the next new bar and does not enter on old signals.
- Checks free margin before every order and skips the trade if margin is not enough.
Backtest (MT5 Strategy Tester)
- Symbol: XAUUSD (XM GOLD#), H4
- Period: 2020.01.01 - 2026.10.18
- Model: 1 minute OHLC
- Lot: 0.01 fixed, initial deposit 100,000 JPY
- Trades: 182
- Profit factor: 1.68
- Net profit: +280,344 JPY
- Profitable in 6 of the 7 calendar years tested
Inputs
- FastEMA = 30
- SlowEMA = 200
- ATRPeriod = 14
- SL_ATR = 1.5
- TP_ATR = 4.0
- Lots = 0.01
- Magic = 20261125
- DeviationPoints = 20
Recommendations
- Symbol: XAUUSD (Gold)
- Calculations always use H4, regardless of the chart timeframe.
- Trading frequency is low (about 2 trades per month on average).
Past performance does not guarantee future results.
