Variations
Engine running · data updated 2 min ago

← Dashboard

Previous-Day High Breakout

XAUUSD · 1H chart · strategy s05_pdh_breakout_trail · 2 variations

Buys gold when an hourly candle closes above yesterday's high during an uptrend, then follows the move with a wide trailing stop.

What it is about

Yesterday's high is a level every trader can see. When gold is already in an uptrend and an hourly candle closes above that level, it often keeps rising. Breakout traders buy, and sellers who had stop-loss orders above the high are forced to buy back.

This is trend following. Most breakouts fail and end in a small loss. The ones that work can run for many hours or days, and the strategy does not cap them with a target. A stop that follows price from a distance lets the big moves pay for the many small losses.

It was the first robust edge found on gold. Many pattern and win-rate ideas were tested first and failed. This one stayed profitable across most nearby settings and in the later test period.

How it trades

Chart & market
Gold (XAUUSD) on the 1-hour chart. The trading day runs from 18:00 to 17:00 New York time.
Setup
The last completed Daily candle closed above its 50-day EMA (EMA = exponential moving average, an average of recent closes that gives the newest ones more weight). In other words, the bigger trend is up.
Entry
An hourly candle closes above the previous trading day's high, and the candle before it closed at or below that high. Buy at the close. The candle that closes at 17:00 New York (the daily close) is skipped, because prices around the overnight rollover are distorted in the data.
Stop loss
1 ATR below the entry. ATR = average true range, the average size of the last 20 hourly candles. The distance from entry to stop is 1R (R = the amount risked).
Exit
No fixed target. After each candle the stop moves up to 3 ATR below the highest price since entry (a 'chandelier' trailing stop). It never moves down, and each new level applies from the next candle. The trade ends when price hits the stop.
Trade management
One trade at a time. A new breakout while a trade is open is ignored.

Gold, at any hour of the trading day except the 17:00 New York close. About 6-7 trades a month. A typical trade lasts about 7 hours; the average is about 20 hours, and the best trends run for several days.

What to expect
  • Low win rate: about 31% of trades win in A (40% in B). The average winner in A is about 3.5R against an average loss of 1R.
  • About 6-7 trades a month.
  • Losing streaks are long: up to 17 losses in a row in A, 10 in B.
  • Largest drop from a peak: about 22.6R (A) and 18.0R (B). Backtest 2018-today at zero cost: +309.2R (A) and +276.5R (B), all 9 years positive (2023 only just).
  • Profits come in bursts. 2025 alone made +109.4R of A's total, while 2018, 2021 and 2023 were close to flat.
Risks and caveats
  • Buys only. Gold rose strongly in 2024-26, which helps a breakout-buying strategy. The short version (selling breaks of yesterday's low) lost money.
  • Overnight financing (swap) is not included. Research put it at about 0.04R per trade on gold.
  • A large share of the profit came from a few strong trend periods. A long sideways market would mean many small losses in a row.
  • It is a gold strategy. On the Nasdaq 100 the same rules were weak (+0.12R per trade) and are not used.
  • Checked against TradingView (1-hour chart, 2025-2026): 159 trades there vs 153 in Python, with similar totals. Different data feeds give slightly different breakouts.

Where it comes from

Our own research (October 2026): a broad scan of gold patterns found this as the first edge that held up. It was tested on 2018-2023 (the 'train' period, used to choose settings) and checked on 2024-2026 (the 'test' period): +155.4R and +153.8R for variation A.

Main variation: s05-B ★ Main

Live result
0.0R
0 closed · 0 open · zero cost
Backtest total
+276.5R
713 trades · +0.39R a trade · win 40%
Backtest max drawdown
−18.0R
total ÷ drawdown 15.3
Years won
9/9
6.7 trades / month
Backtest R per year (zero cost), s05-B
0.0R25.0R50.0R75.0R100.0R201820192020202120222023202420252026

The variations

Each variation is the same strategy with a different approach, trading its own paper account. Click one to see exactly what it changes.

Variations side by side

Live result of all 2 together: 0.0R (zero cost).

Live paper account (R, zero cost)Backtest 2018 – today (R, zero cost)
s05-B★ MainPrevious-day high breakout + ATR trailXAUUSD1H–0––+276.5R+0.39R9/96.740%−18.0R
s05-APrevious-day high breakout + ATR trailXAUUSD1H–0––+309.1R+0.47R9/96.231%−22.6R

Main = the variation with the most backtest R per R of max drawdown (2018 – today, zero cost). It is picked on that history, so the live accounts are the real test.