XAUUSD daily pullback to moving average strategy
After price has moved clearly away from the 10 EMA, it pulls back to touch it and closes back in the trend's direction, with the 200 EMA trend. XAUUSD daily candles, long and short, 1.5R target.
Found by searching 2138 variants of 48 setups on XAUUSD (Gold), then tested once on the last 12 months (16 November 2025 to 16 November 2026), which were locked away during the search. Long and short, about 10 trades a year.
- Style
- Pullback
- Timeframe
- Daily
- Test period
- Nov 2006 to Nov 2026
- Tested
- 18 November 2026
- Market
- XAUUSD (spot gold)
Return
+43.4%
Profit factor
1.36
Win rate
51.6%
Max drawdown
−4.90%
Prompt for TES
Tessera's AI strategy coach builds and backtests it
Pullback to moving average on XAUUSD daily candles, trading both longs and shorts: after price has moved clearly away from the 10 EMA, it pulls back to touch it and closes back in the trend's direction. Only take longs when the signal candle closes above the 200 EMA, and shorts when it closes below it. Enter at the close of the signal candle. Stop 1.5 ATR(14) from the entry. Take profit at 1.5R. Risk 1% of the account per trade with typical costs. Backtest it from 2006-11-17 to 2026-11-16.
- 1Copy the prompt
- 2Backtest it free
- 3Run it as a bot
Free account, no card. The button copies the prompt for you. Run it as a bot on your broker with Launchpad, from $39 a month.
Is the pullback to moving average strategy profitable on XAUUSD?
In this backtest, yes. On XAUUSD daily candles from Nov 2006 to Nov 2026 it made +43.4% after costs, with a profit factor of 1.36, a 51.6% win rate and a maximum drawdown of 4.90%, over 190 trades.
It held up on an unseen period it was never tuned on (+19.8% over the last 2103 days), and the locked last 12 months stayed profitable (+1.84% on 10 trades). Plan for less live: with half the edge, a typical year is +0.8%.
A gold trading strategy for XAUUSD
XAUUSD is spot gold priced in US dollars. This strategy looks for a pullback to the 10 EMA on daily candles and trades both directions, with up to 20× leverage.
About 10 trades a year, so expect a few trades a month. It suits a personal account better than a prop firm challenge with a deadline.
Prop firm results
Tested against
Verdict
Better on a personal account
We ran this strategy's own trades through 8 challenges (FTMO 1-Step Challenge, FTMO 2-Step Challenge, FundedNext Stellar 2-Step, The5ers High Stakes (2.5K-25K), FundingPips 2-Step Standard, E8 Markets E8 One, FXIFY Two Phase (Trailing), Alpha Capital Group Alpha Pro 8%), starting a new one every week of the backtest and trying several risk levels per trade.
- Pass, fail and ran-out-of-time rates for every firm
- The risk per trade with the best pass rate
- Median days to pass and challenges per pass
Create a free account, then open this strategy in the Strategy Lab hub to see the pass rates, the risk per trade to use and how long challenges took to pass.
Read nextProp firms that allow algo tradingFTMO algo trading rulesProp firm consistency rule
Backtest results
Return
+43.4%
Nov 2006 to Nov 2026
Profit factor
1.36
Win rate
51.6%
Max drawdown
−4.90%
Trades
190
about 9 a year
Last 12 months
+1.84%
Nov 2025 to Nov 2026 · 10 trades
| Net profit | +$4,338.41 ($10,000 → $14,338.41) |
|---|---|
| Average trade | +0.20R / +$22.83 |
| Total R | +37.6R |
| Profit factor in R | 1.38 |
| Average win / loss | +$167.45 (+1.39R) / −$131.21 (−1.07R) |
| Largest win / loss | +$209.90 / −$165.71 |
| Targets / stops hit | 98 / 92 |
| Longest win / loss streak | 4 / 4 |
|---|---|
| Median hold | 6 candles (Daily) |
| Max drawdown | −$617.68 (−4.86R) |
| Buy and hold, same dates | +521.3% |
| Longs / shorts | +23.3R (129) / +14.3R (61) |
| Signals | 279 (88 position open) |
XAUUSD daily candles, 17 November 2006 to 16 November 2026, starting with $10,000. 1% risk per trade, up to 20× leverage. Costs are included in every figure. Spot metal bars.
Read nextWhat is a good profit factor?Profit factor calculatorHow many trades a backtest needs
How it was proven
1. A wide search, with the last 12 months locked away
Strategy Lab searched 2138 variants on XAUUSD daily candles, across setups, settings, targets, stops, trend and volatility filters, trading sessions and long or short sides. The last 12 months were kept locked away during the search, then the top 5 were tested on it once.
- 2,138Variants searched
- 538Passed the search bar: 40+ trades, profit factor 1.2+, return at least the drawdown, both halves profitable
- 43Had profitable neighbouring settings, so not a one-setting fluke
- 5Top 5 tested once on the locked last 12 months
- 3Stayed profitable on the locked last 12 months. This is the strongest
| Setup | Target | Filter | Side | Search period | Last 12 months | |
|---|---|---|---|---|---|---|
| Pullback to moving average 10 | 1.5R | 200 EMA trend | Long and short | +40.79% | +1.84% | This strategy |
| Donchian breakout 55 | 1R | None | Longs only | +60.97% | +5.78% | Also held |
| Previous day high/low break | 2.5R | 200 EMA trend | Long and short | +99.15% | −1.01% | |
| Keltner channel breakout 40 | 2R | 200 EMA trend | Long and short | +66.85% | +3.66% | |
| Donchian breakout 20 | 1R | 200 EMA trend | Longs only | +57.08% | +6.64% | Also held |
Search period
17 Nov 2006 to 16 Nov 2025
- Return
- +40.79%
- Profit factor
- 1.36
- Trades
- 180
- Max drawdown
- −4.90%
Last 12 months, locked
16 Nov 2025 to 16 Nov 2026, tested once
- Return
- +1.84%
- Profit factor
- 1.34
- Trades
- 10
- Max drawdown
- −3.09%
The locked last 12 months made +1.84% with a profit factor of 1.34, on data the search never saw. That's the honest test of a searched strategy. Even so, paper trade it before a live account.
2. An unseen period: held up
Separately, Strategy Lab's walk-forward check kept the last 30% of the history (2103 days, from 5 Feb 2021) unseen. It did as well after the cut as before it.
Before the cut
70% of the history
- Return
- +23.56%
- Profit factor
- 1.27
- Trades
- 138
- Win rate
- 50.0%
Unseen period
Last 2103 days
- Return
- +19.82%
- Profit factor
- 1.61
- Trades
- 52
- Win rate
- 55.8%
3. Robustness: stable
The same strategy re-run on noisy copies of the data, with costs halved and doubled, and with the stop assumed to hit first inside every candle.
Price feed noise (10 runs)
Return +35.0% to +56.3%, 85% of trades unchanged
Double costs
+19.3%
Stop hit first inside a candle
+43.4%
Unseen period
+19.8% over 2103 days
Last 12 months (locked)
+1.84%, profit factor 1.34 on 10 trades
Recent results
Traded results
Updated
Last 30 days
Return
+3.02%
27 Oct to 26 Nov
Total P&L
+$301.93
$0.00 open
Total R
+3.00R
Trades
2
2 won
Win rate
100.0%
Max drawdown
−0.00%
Open positions
No open positions. The strategy is watching the market for its next setup.
Closed trades
| Closed | Result | P&L | Market | Side | Closed | Entry | Exit | Result | P&L |
|---|---|---|---|---|---|---|---|---|---|
| 18 Nov, 00:00 | Target | +$152.35 (+1.50R) | XAUUSD | Short | 18 Nov 2026, 00:00 UTC | 4,038.02 | 3,825.43 | Target | +$152.35 (+1.50R) |
| 30 Oct, 00:00 | Target | +$149.58 (+1.50R) | XAUUSD | Short | 30 Oct 2026, 00:00 UTC | 4,021.87 | 3,877.12 | Target | +$149.58 (+1.50R) |
No trades in the last 7 days
It only trades when its setup appears, so quiet weeks are normal. The last 30 days had 2 trades.
Results shown are hypothetical, calculated from the strategy's rules on market data. No real money is at risk. Past results don't guarantee future results. Not financial advice.
The rules
After price has moved clearly away from the 10 EMA, it waits for a pullback that touches the average and closes back in the trend's direction. It's a way to join a trend at a better price instead of chasing it.
It only takes longs while the signal candle closes above the 200 EMA and shorts while it closes below, so it trades with the bigger trend.
It enters at the close of the signal candle. The stop goes 1.5 ATR(14) from the entry, and the target is 1.5 times the distance from entry to stop. There's no trailing stop or time exit. Each trade risks 1% of the account with up to 20× leverage, and every result includes XAUUSD's typical trading costs (spread 0.0085% of price, swap 0.02254% / -0.00195% a night, commission $3.50 per lot a side ($7 round turn), slippage 0.002% of price).
| Setup | After price has moved clearly away from the 10 EMA, it pulls back to touch it and closes back in the trend's direction |
|---|---|
| Filter | Only when the close is on the trade's side of the 200 EMA (above for longs, below for shorts) |
| Entry | At the close of the signal candle |
| Stop | 1.5 ATR(14) from the entry |
| Target | 1.5R (1.5 times the distance from entry to stop) |
| Exit | Stop or target only: no trailing stop, break-even or time exit |
| Direction | Long and short (one trade at a time) |
| Risk | 1% of the account per trade, up to 20× leverage |
| Costs | Spread 0.0085% of price, swap 0.02254% / -0.00195% a night, commission $3.50 per lot a side ($7 round turn), slippage 0.002% of price |
Read nextAlgorithmic trading strategies explainedBest AI trading strategy buildersBest no-code backtesting software
What to expect
Strategy Lab reshuffled this strategy's own trades 1,000 times, in blocks so losing streaks stay together, to show a range of next-12-month outcomes at about 10 trades a year. Plan with half the edge: live results usually keep about half of what a backtest shows.
See the range before you trade it
A bad year, a typical year and a good year, the chance of a losing year and the typical worst drop, as tested and with half the edge. Create a free account and open this strategy in the Strategy Lab hub.
In the backtest, the longest stretch below a previous high lasted 1898 days (6 Jul 2016 to 16 Sept 2021).
Year by year
Return by year
- 2007*+4.60%5 trades
- 2008+1.89%10 trades
- 2009+4.06%10 trades
- 2010+1.54%12 trades
- 2011+3.40%13 trades
- 2012−1.03%10 trades
- 2013+5.09%10 trades
- 2014+0.05%12 trades
- 2015+2.01%8 trades
- 2016+0.22%9 trades
- 2017−2.58%11 trades
- 2018+0.72%11 trades
- 2019−0.11%8 trades
- 2020+1.77%9 trades
- 2021+1.32%8 trades
- 2022+4.59%10 trades
- 2023−0.75%9 trades
- 2024+5.18%9 trades
- 2025+4.39%7 trades
- 2026*+0.48%9 trades
*Part year: 2007 from 31 Aug 2007 to 31 Dec 2007, 2026 from 1 Jan 2026 to 10 Nov 2026.
Profit and loss by month, in dollars
| Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2007 | 142 | 288 | -106 | |||||||||
| 2008 | 27 | 141 | -116 | -105 | 295 | 159 | 160 | -108 | ||||
| 2009 | -119 | 149 | 148 | -127 | -130 | 46 | 31 | 155 | 160 | |||
| 2010 | -127 | -116 | -132 | 148 | 155 | 145 | -119 | 146 | 157 | 158 | -127 | -118 |
| 2011 | 160 | -130 | 489 | -127 | -133 | 164 | -132 | 44 | 50 | |||
| 2012 | 166 | 42 | -119 | 177 | -119 | -118 | 163 | -164 | -149 | |||
| 2013 | -114 | 171 | 352 | -119 | 178 | 181 | 182 | -124 | ||||
| 2014 | -120 | 160 | -123 | 61 | -122 | -266 | 180 | 362 | -124 | |||
| 2015 | -245 | 181 | -120 | 368 | -124 | 185 | ||||||
| 2016 | -122 | 41 | 171 | -136 | 41 | -149 | -124 | 183 | ||||
| 2017 | -165 | 25 | 158 | -125 | 316 | -137 | -138 | -131 | -122 | |||
| 2018 | 341 | -136 | -162 | -118 | 180 | 61 | -123 | -121 | 163 | |||
| 2019 | 141 | 154 | -273 | -157 | 140 | -164 | 146 | |||||
| 2020 | 129 | -132 | 175 | 128 | 148 | -133 | -127 | -129 | ||||
| 2021 | 158 | 185 | -123 | 176 | -142 | 186 | -125 | -124 | ||||
| 2022 | 131 | 169 | 253 | 62 | -130 | -127 | 180 | |||||
| 2023 | 352 | -138 | 23 | -150 | -164 | 181 | -138 | |||||
| 2024 | 293 | -141 | 369 | 361 | 36 | -141 | ||||||
| 2025 | 189 | 204 | -292 | 308 | 191 | |||||||
| 2026 | -159 | -166 | 417 | -141 | -303 | 420 |
Grey months had no trades. Hover a month for its trades, wins and losses.
Where it fails
- The locked final year was thin (+1.84%, profit factor 1.34, 10 trades).
- Low frequency: about 9 trades a year, so a prop challenge target usually takes months.
Every trade
| # | Closed | Exit | Side | Entry | Exit price | Candles | P&L | Equity |
|---|---|---|---|---|---|---|---|---|
| 190 | 30 Oct 2026 | Target | Short | 4,022.12 | 3,876.96 | 1 | +$209.90 | $14,338 |
| 189 | 23 Oct 2026 | Target | Short | 4,263.50 | 4,016.24 | 27 | +$209.86 | $14,129 |
| 188 | 11 Sept 2026 | Stop | Long | 4,474.06 | 4,304.69 | 6 | −$147.78 | $13,919 |
| 187 | 1 Sept 2026 | Stop | Long | 4,522.80 | 4,366.61 | 9 | −$154.77 | $14,066 |
| 186 | 5 Aug 2026 | Stop | Short | 4,107.32 | 4,267.34 | 21 | −$140.88 | $14,221 |
| 185 | 24 Jun 2026 | Target | Short | 4,258.86 | 3,989.95 | 5 | +$209.81 | $14,362 |
| 184 | 10 Jun 2026 | Target | Short | 4,329.33 | 4,096.38 | 3 | +$207.25 | $14,152 |
| 183 | 27 May 2026 | Stop | Long | 4,706.00 | 4,414.46 | 36 | −$165.71 | $13,945 |
| 182 | 19 Mar 2026 | Stop | Long | 4,963.60 | 4,582.79 | 31 | −$158.95 | $14,111 |
| 181 | 18 Dec 2025 | Target | Long | 4,208.69 | 4,358.57 | 10 | +$190.51 | $14,270 |
| 180 | 29 Sept 2025 | Target | Long | 3,684.98 | 3,797.79 | 6 | +$191.44 | $14,079 |
| 179 | 1 Sept 2025 | Target | Long | 3,317.02 | 3,482.83 | 67 | +$117.00 | $13,888 |
| 178 | 12 May 2025 | Stop | Long | 3,334.50 | 3,208.40 | 5 | −$145.02 | $13,771 |
| 177 | 1 May 2025 | Stop | Long | 3,349.10 | 3,223.60 | 5 | −$147.02 | $13,916 |
| 176 | 11 Apr 2025 | Target | Long | 3,082.18 | 3,219.01 | 2 | +$203.91 | $14,063 |
| 175 | 16 Jan 2025 | Target | Long | 2,649.95 | 2,724.20 | 7 | +$189.13 | $13,859 |
| 174 | 6 Nov 2024 | Stop | Long | 2,743.59 | 2,697.45 | 1 | −$141.04 | $13,670 |
| 173 | 21 Oct 2024 | Target | Long | 2,656.00 | 2,727.30 | 6 | +$185.81 | $13,811 |
| 172 | 8 Oct 2024 | Stop | Long | 2,662.82 | 2,610.64 | 5 | −$149.34 | $13,625 |
| 171 | 24 Sept 2024 | Target | Long | 2,586.48 | 2,656.81 | 3 | +$193.83 | $13,774 |
Show all 190 trades
Loading trades…
Read nextcTrader trading bot without codingBest trading journal for algo tradersBest trading journal for TradingView
Run it as a bot
Once the strategy holds up, Launchpad runs it on paper, then live on cTrader, Liquid Brokers, Binance Futures or Hyperliquid, with the stop and target attached to every order.
- Paper:live prices, no broker
- Copilot:approve each trade in Telegram or the app
- Autopilot:trades inside your daily limits
Variations to test
Longs only
Keeps the long side only. In this backtest its 129 long trades made +23.3R with a profit factor of 1.32, against +14.3R from the shorts.
Pullback to moving average on XAUUSD daily candles, long trades only (no shorts): after price has moved clearly away from the 10 EMA, it pulls back to touch it and closes back in the trend's direction. Only take longs when the signal candle closes above the 200 EMA. Enter at the close of the signal candle. Stop 1.5 ATR(14) from the entry. Take profit at 1.5R. Risk 1% of the account per trade with typical costs. Backtest it from 2006-11-17 to 2026-11-16.
Backtest this variation freeThe button copies this prompt. Paste it into TES and Strategy Lab builds and backtests it.
Compare
All gold strategiesBacktests are hypothetical: they apply fixed rules to historical data with assumed costs and fills. Past results don't predict future results, and leveraged trading carries a high risk of loss. This is an educational description, not a recommendation.