Forex Trend Pullback EA
- Experts
-
Abdullah Al-murad
I build Expert Advisors and utilities for MetaTrader 5, mainly for gold (XAUUSD), forex and crypto.
How I build my products:
- Every robot sends each order with a stop loss. No martingale, no grid averaging, no hidden rules.
- Signals are calculated on closed bars, so they are not redrawn. - Versione: 1.0
- Attivazioni: 5
Forex Trend Pullback EA trades major forex pairs in the direction of the H4 trend, entering on pullbacks instead of chasing breakouts.
HOW IT WORKS
- Trend: EMA 50 above EMA 200 and price above EMA 200 is an uptrend; the mirror is a downtrend.
- Pullback: in an uptrend the 3-period RSI falls below 15 (buy); in a downtrend it rises above 85 (sell). The signal is taken only on the candle where RSI crosses the level.
- Stop loss: 1.5 x ATR(14). Take profit: 1.5 x the stop distance.
- Time exit after 30 bars (5 days on H4).
The EA reads H4 data itself, so it can be attached to a chart of any timeframe. Attach one copy to each pair you want to trade.
INPUT PARAMETERS
Signal Working timeframe H4 Fast / slow EMA period 50 / 200 Pullback detector: RSI period 3 Buy when RSI falls below 15 (sell above 85) Allow buys / sells true / true Exit Stop loss, x ATR(14) 1.5 Take profit = stop distance x 1.5 Close after this many bars 30
HISTORICAL SIMULATION (6 major pairs, H4, 2019-10 to 2026-12, fixed 0.01 lot)
The default settings were chosen on the first two thirds of the history only. The last third (from 2024-10) was not used for tuning. Spread is included, swap is not.
EURUSD built: 165 trades, +21 USD | unseen: 84 trades, +32 USD GBPUSD built: 161 trades, +118 USD | unseen: 72 trades, +54 USD USDJPY built: 157 trades, +37 USD | unseen: 87 trades, -78 USD AUDUSD built: 144 trades, +88 USD | unseen: 82 trades, +36 USD USDCAD built: 151 trades, +9 USD | unseen: 84 trades, +29 USD EURJPY built: 159 trades, +8 USD | unseen: 75 trades, -25 USD TOTAL built: 937 trades, +281 USD | unseen: 484 trades, +48 USD
Honest reading: positive in both periods in total and on 4 of 6 pairs in the unseen period; USDJPY and EURJPY were negative there. The average gain per trade is small. Positions are held for days, and swap is not included in the figures.
RISK MANAGEMENT (same on every order)
- A stop loss and a take profit are attached to every trade.
- Fixed lot (default 0.01) or risk as a % of equity per trade.
- Max loss at the stop: if the lot would lose more than the set % of equity at the stop, the stop (and the target, same ratio) is moved closer.
- Margin check: no trade if it needs more than half of the free margin.
- Volume is checked against the symbol's minimum, maximum, step and limit.
- Broker stop level and freeze level are respected when opening, trailing and closing.
- Works on hedging and netting accounts; one position per symbol, identified by its magic number.
- No martingale, no grid, no averaging. No DLL and no external connections.
Money management inputs Fixed lot 0.01 Risk per trade, % of equity 0.0 (0 = fixed lot) Max loss at the stop, % of equity 5.0 Max spread in points 0 (0 = no limit) Magic number 26120606
IMPORTANT
This Expert Advisor does not guarantee profit. The figures above come from the developer's own bar-by-bar simulation on historical prices, not from live trading; past results do not guarantee future results. Trading leveraged products involves a high risk of loss. Test on a demo account first and use only money you can afford to lose.
