Gold MA Space
- Experts
- 버전: 1.1
Gold MA Space
Gold MA Space trades gold trends the patient way. Instead of buying new highs, it waits for a trend to form, lets price pull back into the space between the 8 and 13 period simple moving averages, and enters when a candle closes out of that space in the trend direction. The trade then stays open for as long as the trend lasts.
A trend is defined by the moving averages being stacked in order: SMA 8 above SMA 13 above SMA 20 for buys, and the reverse for sells. An optional long-term filter, on by default, also requires price and SMA 20 to be on the same side of SMA 200. The pullback is a candle that closes back inside the space or beyond it, and the entry signal is the next candle that closes outside the space in the trend direction with a body in that direction. The order is sent at the open of the following candle. Signals are calculated on M30 by default on closed candles only, so they do not repaint, and the EA can be attached to any chart timeframe.
Every order is sent with a stop loss placed just beyond the signal candle plus a small ATR buffer, with a minimum of 0.5 ATR, and signals with a stop wider than 4 ATR are skipped. There is no fixed target by default. The position is closed after two consecutive candle closes beyond SMA 13, or at the stop, or after a maximum of 200 candles. A fixed target in multiples of the risk can be enabled in the inputs.
The default setup was tested on XAUUSDm (Exness) M30 at 0.3 percent risk per trade. One continuous test from January 2023 to December 2025 with 1-minute OHLC data made +5,400 USD from 10,000 USD with a profit factor of 1.30 and a maximum equity drawdown of 11.4 percent: +2,717 USD in 2023 (profit factor 1.51), +589 USD in 2024 (1.10) and +2,095 USD in 2025 (1.30). A separate test from January to October 2026 with real ticks made +753 USD from 10,000 USD with a profit factor of 1.20. All four years were profitable, with 981 trades in total.
This is a trend-following system with a win rate of about 25 percent. The average winning trade was about four times the average losing trade, which is what makes it profitable, but it also means that long losing streaks are normal: runs of 20 losses in a row occurred in the tests, and 2024 was a weak year. Swap is charged on positions held over the daily rollover. Please choose a risk you can hold through such a period.
The entries are different from those of a breakout system. Gold MA Space had its strongest years in 2023 and 2025, which were weak years for breakout systems such as Donchian Gold Trend, while 2026 was the opposite. Running both on separate magic numbers spreads the risk across two styles. In the signal study the same rules were also positive in every year on US100 H1, while EURUSD was not profitable, so the EA is intended for trending markets such as gold.
The lot size is calculated from a percentage of equity with a money cap per trade, or a fixed lot can be used. The lot is reduced to fit the free margin and the broker's volume limit, small accounts can fall back to the minimum lot within a maximum risk limit, and an optional spread limit is available. The on-chart panel shows the trend state, the filter, the open position, the risk per trade and the last action.
Use the EA on XAUUSD with any symbol suffix on a hedging or netting account. A balance of 1,000 USD or more, a low-spread account and a VPS running around the clock are recommended. The default risk of 0.3 percent per trade is a reasonable starting point; risk above 0.5 percent is not recommended. Backtest on your broker's gold data and run the EA on a demo account before going live.
Trading involves risk. Backtest results are hypothetical and depend on the broker, spread and market conditions. Past performance, real or simulated, does not guarantee future results.
