Strategy Lab verdict: WinnerHolds up on prop firm challenges

XAUUSD 4h inside bar strategy

The current candle’s high is below the prior high and its low is above the prior low. XAUUSD 4-hour candles, long only, 1R target.

Found by searching 2913 variants of 48 setups on XAUUSD (Gold), then tested once on the last 12 months (17 November 2025 to 17 November 2026), which were locked away during the search. Long only, about 27 trades a year. It only takes signals in the Tokyo session (00:00 to 09:00 UTC).

Style
Breakout
Timeframe
4 hours
Test period
Jan 2020 to Nov 2026
Tested
18 November 2026
Market
XAUUSD (spot gold)
Equity, after costs$10,000 → $14,872
$10k$12k$14k$16k
202120222023202420252026

Return

+48.7%

Profit factor

1.55

Win rate

63.8%

Max drawdown

−5.64%

Prompt for TES

Tessera's AI strategy coach builds and backtests it

Inside bar on XAUUSD 4-hour candles, long trades only (no shorts), entering at the setup's signal. The setup: The current candle’s high is below the prior high and its low is above the prior low. Price stayed entirely inside the previous bar’s range. Often a pause / compression before the next move. Only take signals on candles that open between 00:00 and 09:00 UTC. Enter at the close of the signal candle. Stop 1 ATR(14) beyond the signal candle's low. Take profit at 1R. Risk 1% of the account per trade with typical costs. Backtest it from 2020-01-24 to 2026-11-17.

  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:Holds up on prop firm challenges, tested on 8 challengesSign up free to see the pass rates

Is the inside bar strategy profitable on XAUUSD?

In this backtest, yes. On XAUUSD 4-hour candles from Jan 2020 to Nov 2026 it made +48.7% after costs, with a profit factor of 1.55, a 63.8% win rate and a maximum drawdown of 5.64%, over 185 trades.

It held up on an unseen period it was never tuned on (+18.4% over the last 745 days), and the last 12 months, locked away during the search, were strong (+5.60% on 35 trades). Plan for less live: with half the edge, a typical year is +2.9%.

A gold trading strategy for XAUUSD

XAUUSD is spot gold priced in US dollars. This strategy looks for an inside bar signal on 4-hour candles and trades only long, with up to 20× leverage.

About 27 trades a year, so expect a few trades a month. It's one of the better fits for a prop firm challenge in the library.

Prop firm results

Tested against

FTMOThe5ersand 5 more firms

Verdict

Holds up on 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

+48.7%

Jan 2020 to Nov 2026

Profit factor

1.55

Win rate

63.8%

Max drawdown

−5.64%

Trades

185

about 27 a year

Last 12 months

+5.60%

Nov 2025 to Nov 2026 · 35 trades

Equity, after costs$10,000 → $14,872
$10k$12k$14k$16k
202120222023202420252026
Net profit+$4,872.42 ($10,000 → $14,872.42)
Average trade+0.22R / +$26.34
Total R+40.7R
Profit factor in R1.57
Average win / loss+$116.06 (+0.95R) / −$131.69 (−1.06R)
Largest win / loss+$174.42 / −$188.30
Targets / stops hit118 / 67
Longest win / loss streak9 / 4
Median hold10 candles (4 hours)
Max drawdown−$888.78 (−5.75R)
Buy and hold, same dates+146.2%
Signals454 (114 position open, 155 other side or filter)

XAUUSD 4-hour candles, 24 January 2020 to 17 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 2913 variants on XAUUSD 4-hour 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,913Variants searched
  2. 624Passed the search bar: 40+ trades, profit factor 1.2+, return at least the drawdown, both halves profitable
  3. 64Had profitable neighbouring settings, so not a one-setting fluke
  4. 5Top 5 tested once on the locked last 12 months
  5. 1Stayed profitable on the locked last 12 months. This is the strongest
SetupTargetFilterSideSearch periodLast 12 months
Large move candle2RNoneLong and short+47.65%−1.33%
Donchian breakout 105RNoneLongs only+118.03%+3.77%
Previous day high/low break1.5RNoneLongs only+61.54%−0.05%
Inside bar1RNoneLongs only+40.84%+5.60%This strategy
Swing high/low breakout 32RNoneLongs only+53.19%+0.67%

Search period

24 Jan 2020 to 17 Nov 2025

Return
+40.84%
Profit factor
1.62
Trades
150
Max drawdown
−4.44%

Last 12 months, locked

17 Nov 2025 to 17 Nov 2026, tested once

Strong
Return
+5.60%
Profit factor
1.35
Trades
35
Max drawdown
−5.64%

The locked last 12 months made +5.60% with a profit factor of 1.35, 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 (745 days, from 1 Nov 2024) unseen. Results were weaker than before the cut but still clearly profitable.

Before the cut

70% of the history

Return
+30.28%
Profit factor
1.59
Trades
120
Win rate
64.2%

Unseen period

Last 745 days

Held up
Return
+18.44%
Profit factor
1.50
Trades
65
Win rate
63.1%

3. Robustness: sensitive

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 +23.9% to +79.6%, 51% of trades unchanged

  • Double costs

    +31.6%

  • Stop hit first inside a candle

    +48.7%

  • Unseen period

    +18.4% over 745 days

  • Last 12 months (locked)

    +5.60%, profit factor 1.35 on 35 trades

Read nextOut-of-sample testingIs my backtest overfit?

Recent results

Period

Updated

Last 30 days

Return

+0.05%

27 Oct to 26 Nov

Total P&L

+$5.23

+$7.94 open

Total R

−0.02R

Trades

2

1 won

Win rate

50.0%

profit factor 0.97

Max drawdown

−1.01%

Open positions

Open positions, last 30 days
MarketSideOpenedEntryOpen P&LOpenedPriceStopTargetSizeOpen P&L
XAUUSDLong26 Nov 2026, 08:00 UTC3,567.45+$7.94 (+0.08R)26 Nov, 08:003,571.943,510.953,623.9599.97 USD at risk (1.00%)+$7.94 (+0.08R)
Equity, after costs$10,000 → $10,005
$9.95k$10.00k$10.05k$10.10k
27 Oct4 Nov11 Nov19 Nov26 Nov

Closed trades

Closed trades, last 30 days, newest first
ClosedResultP&LMarketSideClosedEntryExitResultP&L
19 Nov, 15:00Stop−$101.59 (−1.01R)XAUUSDLong19 Nov 2026, 15:00 UTC3,736.833,683.85Stop−$101.59 (−1.01R)
9 Nov, 12:00Target+$98.88 (+0.99R)XAUUSDLong9 Nov 2026, 12:00 UTC4,084.954,129.36Target+$98.88 (+0.99R)

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

The current candle’s high is below the prior high and its low is above the prior low. Price stayed entirely inside the previous bar’s range. Often a pause / compression before the next move.

It only buys and never shorts, so it makes its money when Gold rises. Signals only count on 4-hour candles that open between 00:00 and 09:00 UTC, the Tokyo session, though a trade can run past 09:00.

It enters at the close of the signal candle. The stop goes 1 ATR(14) beyond the signal candle's low, 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 current candle’s high is below the prior high and its low is above the prior low. Price stayed entirely inside the previous bar’s range. Often a pause / compression before the next move.
SessionSignals only on candles that open between 00:00 and 09:00 UTC (the Tokyo session). Trades can run past 09:00
EntryAt the close of the signal candle
Stop1 ATR(14) beyond the signal candle's low
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 27 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 476 days (15 May 2020 to 3 Sept 2021).

Read nextMonte Carlo backtestingMonte Carlo simulator

Year by year

Return by year

  • 2020+4.79%24 trades
  • 2021+2.61%24 trades
  • 2022−0.05%17 trades
  • 2023+12.05%25 trades
  • 2024+10.12%32 trades
  • 2025+8.97%35 trades
  • 2026*+2.92%28 trades

*Part year: 2026 from 1 Jan 2026 to 16 Nov 2026.

Profit and loss by month, in dollars

JanFebMarAprMayJunJulAugSepOctNovDec
202096-2219719689-22510296-134-126-29101
202119196-336-17-16181138-32103-7183
2022-1810429104106-247-233-11162
20239910421590-231108-123-36547200321
202488-14358890-141-23350-15234-40124107
2025238221133-149-12107-16586383-14939899
20261021290-322-201286-15-312-172-152

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

Where it fails

  • Long only: it makes money when Gold trends up and sits out or loses in sell-offs.
  • Low frequency: about 27 trades a year, so a prop challenge target usually takes months.
  • The robustness test rated it sensitive: results move with small changes in the price feed.

Every trade

#ClosedExitSideEntryExit priceCandlesP&LEquity
18510 Nov 2026StopLong4,134.034,043.225−$152.33$14,872
18420 Oct 2026StopLong4,175.134,113.5716−$164.47$15,025
1839 Oct 2026TargetLong4,144.324,203.072+$146.71$15,189
1827 Oct 2026StopLong4,172.684,081.537−$153.85$15,043
18123 Sept 2026StopLong4,357.684,279.305−$155.94$15,196
1804 Sept 2026StopLong4,493.904,378.736−$156.53$15,352
17926 Aug 2026StopLong4,658.644,585.035−$159.64$15,509
17819 Aug 2026TargetLong4,437.944,524.482+$153.94$15,668
17714 Aug 2026StopLong4,435.254,330.8210−$160.56$15,515
1765 Aug 2026TargetLong4,093.634,157.814+$151.24$15,675
17523 Jul 2026StopLong4,149.244,079.525−$159.57$15,524
17422 Jul 2026TargetLong4,096.424,165.364+$151.90$15,683
17321 Jul 2026TargetLong4,015.414,090.9114+$144.89$15,532
1723 Jul 2026TargetLong4,071.724,177.419+$148.83$15,387
17126 Jun 2026TargetLong4,010.554,093.097+$147.68$15,238
17024 Jun 2026StopLong4,211.084,007.3352−$160.34$15,090
16910 Jun 2026StopLong4,544.904,187.52331−$188.30$15,250
16812 Mar 2026StopLong5,228.685,094.1413−$158.24$15,439
1679 Mar 2026StopLong5,193.175,040.3016−$164.21$15,597
16627 Feb 2026TargetLong5,195.005,271.7914+$149.87$15,761
Show all 185 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 4h inside bar questions

Rebuild this strategy free

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