Strategy Lab verdict: WinnerCan pass prop firm challenges

XAUUSD daily Donchian breakout (length 20) strategy

Buy when the close breaks above the highest high of the last 20 bars, with the 200 EMA trend. XAUUSD daily candles, long only, 1R 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 only, about 11 trades a year.

Style
Breakout
Timeframe
Daily
Test period
Nov 2006 to Nov 2026
Tested
18 November 2026
Market
XAUUSD (spot gold)
Equity, after costs$10,000 → $16,750
$10k$12k$14k$16k$18k
20072008200920102011201220132014201520162017201820192020202120222023202420252026

Return

+67.5%

Profit factor

1.67

Win rate

66.1%

Max drawdown

−6.90%

Prompt for TES

Tessera's AI strategy coach builds and backtests it

Donchian breakout on XAUUSD daily candles, long trades only (no shorts): buy when the close breaks above the highest high of the last 20 bars. Only take the trade 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 1R. Risk 1% of the account per trade with typical costs. Backtest it from 2006-11-17 to 2026-11-16.

  1. 1Copy the prompt
  2. 2Backtest it free
  3. 3Run it as a bot
Backtest this strategy free

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.

Prop firms:Can pass prop firm challenges, tested on 8 challengesSign up free to see the pass rates

Is the Donchian breakout strategy profitable on XAUUSD?

In this backtest, yes. On XAUUSD daily candles from Nov 2006 to Nov 2026 it made +67.5% after costs, with a profit factor of 1.67, a 66.1% win rate and a maximum drawdown of 6.90%, over 224 trades.

It held up on an unseen period it was never tuned on (+36.4% over the last 2099 days), and the locked last 12 months stayed profitable (+6.64% on 13 trades). Plan for less live: with half the edge, a typical year is +1.5%.

A gold trading strategy for XAUUSD

XAUUSD is spot gold priced in US dollars. This strategy looks for a close beyond the Donchian channel on daily candles and trades only long, with up to 20× leverage.

About 11 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

FTMOThe5ersand 5 more firms

Verdict

Can pass prop firm challenges

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

+67.5%

Nov 2006 to Nov 2026

Profit factor

1.67

Win rate

66.1%

Max drawdown

−6.90%

Trades

224

about 11 a year

Last 12 months

+6.64%

Nov 2025 to Nov 2026 · 13 trades

Equity, after costs$10,000 → $16,750
$10k$12k$14k$16k$18k
20072008200920102011201220132014201520162017201820192020202120222023202420252026
Net profit+$6,750.41 ($10,000 → $16,750.41)
Average trade+0.24R / +$30.14
Total R+52.7R
Profit factor in R1.64
Average win / loss+$114.11 (+0.92R) / −$133.39 (−1.09R)
Largest win / loss+$163.97 / −$182.30
Targets / stops hit148 / 76
Longest win / loss streak9 / 5
Median hold4 candles (Daily)
Max drawdown−$828.04 (−7.04R)
Buy and hold, same dates+521.3%
Signals554 (170 position open, 160 other side or filter)

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.

  1. 2,138Variants searched
  2. 538Passed the search bar: 40+ trades, profit factor 1.2+, return at least the drawdown, both halves profitable
  3. 43Had profitable neighbouring settings, so not a one-setting fluke
  4. 5Top 5 tested once on the locked last 12 months
  5. 3Stayed profitable on the locked last 12 months. This is the strongest
SetupTargetFilterSideSearch periodLast 12 months
Pullback to moving average 101.5R200 EMA trendLong and short+40.79%+1.84%Also held
Donchian breakout 551RNoneLongs only+60.97%+5.78%Also held
Previous day high/low break2.5R200 EMA trendLong and short+99.15%−1.01%
Keltner channel breakout 402R200 EMA trendLong and short+66.85%+3.66%
Donchian breakout 201R200 EMA trendLongs only+57.08%+6.64%This strategy

Search period

17 Nov 2006 to 16 Nov 2025

Return
+57.08%
Profit factor
1.59
Trades
211
Max drawdown
−6.90%

Last 12 months, locked

16 Nov 2025 to 16 Nov 2026, tested once

Weak: profitable but thin
Return
+6.64%
Profit factor
3.06
Trades
13
Max drawdown
−1.04%

The locked last 12 months made +6.64% with a profit factor of 3.06, 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 (2099 days, from 30 Jan 2021) unseen. It did as well after the cut as before it.

Before the cut

70% of the history

Return
+31.08%
Profit factor
1.46
Trades
149
Win rate
63.8%

Unseen period

Last 2099 days

Held up
Return
+36.42%
Profit factor
2.07
Trades
75
Win rate
70.7%

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 +56.4% to +74.4%, 91% of trades unchanged

  • Double costs

    +37.9%

  • Stop hit first inside a candle

    +64.2%

  • Unseen period

    +36.4% over 2099 days

  • Last 12 months (locked)

    +6.64%, profit factor 3.06 on 13 trades

Read nextOut-of-sample testingIs my backtest overfit?

Recent results

Period

Updated

No trades in the last 30 days

It only trades when its setup appears, so quiet weeks are normal.

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

A Donchian channel tracks the highest high and lowest low of the last 20 candles. A close beyond it means price has broken out of its recent range, and the strategy trades in the direction of the break.

It only takes longs while the signal candle closes above the 200 EMA, so it trades with the bigger trend. It only buys and never shorts, so it makes its money when Gold rises.

It enters at the close of the signal candle. The stop goes 1.5 ATR(14) from the entry, and the target is 1 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).

SetupThe close breaks above the highest high of the last 20 bars for longs, below the lowest low for shorts
FilterOnly when the close is on the trade's side of the 200 EMA (above for longs, below for shorts)
EntryAt the close of the signal candle
Stop1.5 ATR(14) from the entry
Target1R (1 times the distance from entry to stop)
ExitStop or target only: no trailing stop, break-even or time exit
DirectionLong only
Risk1% of the account per trade, up to 20× leverage
CostsSpread 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 12 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 2668 days (13 Sept 2012 to 3 Jan 2020).

Read nextMonte Carlo backtestingMonte Carlo simulator

Year by year

Return by year

  • 2007*+7.40%10 trades
  • 2008+2.12%13 trades
  • 2009+0.64%18 trades
  • 2010−0.57%15 trades
  • 2011+5.81%17 trades
  • 2012+0.78%10 trades
  • 2014−0.76%4 trades
  • 2015−1.26%3 trades
  • 2016−1.66%9 trades
  • 2017+0.85%10 trades
  • 2018−0.04%7 trades
  • 2019+5.93%15 trades
  • 2020+10.00%17 trades
  • 2021−2.72%8 trades
  • 2022+1.37%6 trades
  • 2023+0.56%10 trades
  • 2024+6.70%16 trades
  • 2025+13.01%26 trades
  • 2026*+5.77%10 trades

*Part year: 2007 from 4 Sept 2007 to 31 Dec 2007, 2026 from 1 Jan 2026 to 30 Oct 2026.

Profit and loss by month, in dollars

JanFebMarAprMayJunJulAugSepOctNovDec
200738217485
2008187-14201-116-22107108
2009-12488204-121-123-118-18-24298-115
2010-113-117-12380-1138527785-122
2011103-29304-121103300-25
2012101-143111316-166-128
2014-42-47
2015-19-128
2016207-134-128112-123-124
201787-123101-133-39225-121
2018150-124-30
2019200-27-124548-255222100
202033410497702109-140
2021-31-144228-141-29
2022-282233-592
202324399-15-182-152-40119
2024490386-145-164355132-173
202525186132415-158-152839281128
2026943-168139

Grey months had no trades. Hover a month for its trades, wins and losses.

Where it fails

  • The locked final year was thin (+6.64%, profit factor 3.06, 13 trades).
  • Long only: it makes money when Gold trends up and sits out or loses in sell-offs.
  • Low frequency: about 11 trades a year, so a prop challenge target usually takes months.

Every trade

#ClosedExitSideEntryExit priceCandlesP&LEquity
22428 Aug 2026StopLong4,651.874,487.334−$172.77$16,750
22324 Aug 2026TargetLong4,522.804,678.993+$161.08$16,923
22219 Aug 2026TargetLong4,343.744,488.628+$151.16$16,762
2213 Mar 2026StopLong5,327.425,136.151−$168.08$16,611
22029 Jan 2026TargetLong5,400.255,571.161+$163.97$16,779
21928 Jan 2026TargetLong5,189.625,342.101+$161.24$16,615
21827 Jan 2026TargetLong4,982.915,117.672+$155.60$16,454
21723 Jan 2026TargetLong4,836.674,967.042+$156.95$16,298
21621 Jan 2026TargetLong4,763.494,883.581+$157.52$16,141
21520 Jan 2026TargetLong4,594.004,728.926+$147.52$15,984
21429 Dec 2025StopLong4,532.634,432.671−$165.85$15,836
21326 Dec 2025TargetLong4,445.954,541.624+$150.35$16,002
21218 Dec 2025TargetLong4,283.284,371.345+$143.78$15,852
21117 Oct 2025StopLong4,326.184,204.111−$159.51$15,708
21016 Oct 2025TargetLong4,208.584,321.871+$154.31$15,867
20915 Oct 2025TargetLong4,110.704,216.912+$151.63$15,713
2089 Oct 2025StopLong4,038.903,945.941−$159.60$15,562
2078 Oct 2025TargetLong3,961.094,051.972+$151.52$15,721
2066 Oct 2025TargetLong3,858.513,937.554+$143.01$15,570
20530 Sept 2025TargetLong3,764.193,839.085+$139.70$15,427
Show all 224 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

Backtests 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.

TesseraFAQ

XAUUSD daily Donchian breakout (length 20) questions

Rebuild this strategy free

Paste the prompt into TES and Strategy Lab backtests it on your own markets. No code, no card.