H4 Trend Rider EA
- Uzmanlar
-
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. - Sürüm: 1.0
- Etkinleştirmeler: 5
H4 Trend Rider EA is a trend-following robot for US stock indices: Nasdaq 100 (US100, NAS100, USTEC) and Dow Jones 30 (US30, DJ30). It enters on new highs in an uptrend and lets the trade run behind a trailing stop.
HOW IT WORKS
- Entry: an H4 candle closes above the highest high of the previous 20 candles while price is above the 100-period EMA.
- Initial stop loss: 2 x ATR(14). Take profit: 8 x ATR(14).
- Trailing stop: 3 x ATR below the best price reached since the entry; it only moves in the trade's favour.
- Early exit: a close below the lowest low of the previous 10 candles.
- Sells (the mirror rule) are available as an input and are off by default, because the indices were tested long only.
Few, longer trades. The EA reads H4 data itself, so it can be attached to a chart of any timeframe.
INPUT PARAMETERS
Signal Working timeframe H4 Breakout channel, bars 20 Trend filter EMA period 100 Allow buys / sells true / false Exit Initial stop loss, x ATR(14) 2.0 Trailing stop, x ATR(14) 3.0 Take profit, x ATR(14) 8.0 Exit channel, bars 10
HISTORICAL SIMULATION (US100 and US30, H4, 2019-05 to 2026-12, fixed 0.10 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.
US100 built: 120 trades, +1065 USD | unseen: 72 trades, +32 USD US30 built: 127 trades, +759 USD | unseen: 63 trades, -400 USD TOTAL built: 247 trades, +1824 USD | unseen: 135 trades, -368 USD
Honest reading: strongly positive in the first period (the 2019-2024 bull run), about flat on US100 and negative on US30 in the unseen period. Trend following earns in long trends and gives back in choppy markets; this simulation does not prove that the edge continues. Positions are held over nights and weekends, 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 26120603
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.
