MAX GOLD TAS – Short-Term Trend Expert Advisor for Gold (XAUUSD)
MAX GOLD TAS is a fully automated Expert Advisor for MetaTrader 5, designed for Gold (XAUUSD). It follows the trend on the H4 timeframe, opens one position at a time and aims to close each trade quickly with a small profit. Typical trades last from minutes to a few hours, and never more than 24 hours.
No martingale. No grid. No averaging down. No hedging. Every trade has its own Stop Loss and Take Profit.
HOW IT WORKS
The strategy is a conversion of a proven system, the Trend Analysis Strategy (TAS). It combines:
- a Trend Tracker based on a weighted ATR (it flips direction when the trend changes);
- a trend score made of six components: tracker direction, price versus an equilibrium line, slope of the equilibrium line, RSI versus 50, RSI versus its average, and +DI versus -DI;
- an entry only when the score is at least 50% in the direction of the trend.
The signals are always calculated on closed H4 candles, whatever chart timeframe you attach the EA to. This avoids repainting and makes results consistent on any chart.
HOW TRADES ARE MANAGED
- Very close Take Profit (about 0.15 ATR): most trades close in profit within the first hours.
- After 2 hours the Take Profit moves to break-even plus a small margin, so slow trades tend to close flat or slightly positive instead of becoming losses.
- Emergency Stop Loss at 3 ATR.
- Maximum trade duration: 24 hours. After that the trade is closed at market.
- Weekend protection: no new trades late on Friday and all positions are closed before the weekend.
- Night entries (outside 08:00-20:00 server time) use a reduced lot size, because liquidity is thinner.
- Only one position at a time. Opposite signals are ignored while a trade is open.
MONEY MANAGEMENT
- Lot size is calculated from risk: the loss at the Stop Loss does not exceed a percentage of your balance (default 1%). It adapts to any account size.
- The free margin is checked before every order. If the margin is not enough, the lot is reduced; if it is still not enough, the trade is skipped. No "not enough money" errors.
- Works on netting and hedging accounts.
RECOMMENDED SETTINGS
- Symbol: XAUUSD (Gold). Use the name your broker provides (for example XAUUSD, GOLD).
- Chart: any timeframe. The EA calculates on H4 by itself.
- Account: netting or hedging. A low-spread broker is important, because the profit per trade is small.
- Recommended deposit: from 1,000 USD (or equivalent) with the default 1% risk. On smaller accounts the minimum lot may risk more than 1% per trade.
- Use a VPS to keep the EA running 24 hours a day.
- Check that the server time of your broker matches the inputs: the default entry window is 08:00-20:00 and the Friday closing hour is 22:00 (server time).
MAIN INPUTS
- Timeframe used for signals (default H4)
- Trend Tracker multiplier (default 3.0) and minimum trend score (default 50%)
- Stop Loss in ATR (default 3.0) and Take Profit (default 0.05R)
- Maximum trade duration in hours (default 24)
- Time after which the Take Profit is moved closer (default 2 hours) and its margin
- Hour window for full lot size and lot factor outside it (default 08:00-20:00, factor 0.5)
- Friday: last hour for new entries and closing hour
- Risk per trade in % of balance (default 1.0), or fixed lot size
- Magic number
- On-chart panel on/off
TEST RESULTS (INTERNAL SIMULATION)
The figures below come from my own simulation on XAUUSD data of one broker, from January 2020 to November 2026, using H4 signals, real spreads and no swap. They are not a guarantee of future results, and a different broker, spread, execution speed or slippage can change them noticeably.
- About 180 trades in almost 7 years, around 2 trades per month
- About 97% of trades closed in profit
- Average winning trade is small, a few dollars per ounce
- Average trade duration about 2.5 hours, maximum 24 hours
- Profit in every calendar year of the test
- The largest floating drawdown inside a trade was much larger than the drawdown of closed trades, so the account must be able to handle it
Always test the EA in the Strategy Tester with "Every tick based on real ticks" and then on a demo account before using real money. Past performance does not guarantee future results.
RISK WARNING
Trading Gold with leverage involves a high level of risk and can result in the loss of your capital. With a very small Take Profit a high percentage of winning trades does not mean low risk: a losing trade can be many times larger than a winning one. Trade only with money you can afford to lose. This EA does not guarantee profits.
SUPPORT
Contact me to receive the complete description for the settings.
Lot mode Trades Won Lost Profit Max DD
--------------------------------------------------------------------
Fixed 0.01 lot 180 174 6 +2.6% 0.7%
Fixed 0.05 lot 180 174 6 +13.1% 3.1%
Fixed 0.10 lot 180 174 6 +26.1% 5.6%
Volatility lot 180 174 6 +9.0% 1.7%
Volatility lot, night x0.5 180 174 6 +8.1% 1.7%
Volatility lot, night blocked 91 91 0 +6.9% 1.8%
Risk 1%, night x0.5 180 174 6 +4.4% 0.8%
Risk 2%, night x0.5 180 174 6 +8.4% 1.7%
--------------------------------------------------------------------
Deposit 10,000 USD, XAUUSD 2020-2026, internal simulation.
Profit = total over the whole period. Max DD = floating, inside trades.