Gold Trend HTF
- 专家
- 版本: 1.10
- 激活: 10
A rules-based, higher-timeframe trend-following Expert Advisor for gold and correlated markets. No martingale, no grid, no curve-fitting — just a transparent breakout system with a wide protective stop.
Overview
Gold Trend HTF is a disciplined trend-following EA built around a single, well-understood idea: enter in the direction of a confirmed breakout, ride the move while the trend holds, and exit when structure turns against you. It is designed primarily for XAUUSD on the higher timeframes, and can also run as a small basket across correlated instruments (e.g. metals and major pairs).
It is intentionally simple. There are very few parameters, none of them optimized to fit historical data, and the entire logic can be explained in a paragraph. That simplicity is the point: it is what lets the system behave consistently on data it has never seen, rather than looking perfect on a backtest and falling apart live.
How it works
- Entry: a long is opened when price closes above the highest high of the last N bars (default 20) and is trading above the long-term trend filter (200 EMA). Shorts are the mirror image.
- Trend filter: trades are only taken in the direction of the higher-timeframe trend, keeping the EA out of most counter-trend chop.
- Exit: positions are closed on an opposite channel break (default 10-bar), letting winners run as long as the trend persists instead of capping them with a fixed target.
- Protection: every position carries a wide ATR-based disaster stop (default 3× ATR) from the moment it opens. There is no averaging down and no recovery logic — a losing trade is simply a losing trade.
- Sizing: position size is calculated from a fixed percentage of account risk per trade, or a fixed lot if you prefer.
Features
- Pure trend-following logic — no martingale, grid, hedging, or averaging
- Higher-timeframe focus (designed for H4; works on H1)
- Long-term trend filter to avoid counter-trend entries
- Wide ATR disaster stop on every trade
- Risk-percentage or fixed-lot position sizing
- Optional multi-symbol basket mode with a total-positions cap
- Optional re-entry guard and same-direction (correlation) cap — both off by default
- Spread filter to skip entries in poor conditions
- Companion monitor indicator included (plots the entry/exit channels and trend filter, plus a live position panel)
- Fully transparent inputs; debug logging available
What this EA is not
Please read this before buying. Gold Trend HTF is not a scalper, a "set-and-forget money machine," or a guaranteed-profit system.
- It trades infrequently. On H4 you may go days between trades. This is normal.
- It will have losing trades and losing periods, including the occasional losing year in choppy, range-bound markets. Trend-following profits from a minority of large winning moves and gives some back during sideways phases.
- It requires discipline. Most of its edge comes from staying in the market through quiet periods so you are positioned when a real trend arrives. If you switch it off during a drawdown, you will miss the moves that pay for it.
If you want a system with no drawdowns and a smooth equity curve, this is not it — and neither is anything else that is real.
Recommended use
- Timeframe: H4 (recommended). H1 is supported but is more active and tends to run deeper drawdowns.
- Symbol: XAUUSD primarily. Basket mode can add correlated markets — keep the basket small and watch correlation.
- Risk: start at 0.5%–1.0% per trade. You can increase to max 5% when you are confident and ready. Do not size for maximum backtest profit; size for survivability.
- You can start with any capital or even using cents account to enjoy the ride. You only need to adjust the risk size properly. The more capital you have you will gain more profit.
- Account: any standard/hedging MT5 account. A broker with reasonable gold spreads and an honest swap/commission model is important, since positions are held for days to weeks.
- VPS: recommended for uninterrupted operation, though the EA acts only on completed bars.
