Variations
Engine running · data updated 81s ago

← Dashboard

Trendline break

NAS100, XAUUSD · 15m, 1H chart · strategy s15_trendline_break · 2 variations

Draws a falling trendline across the last two swing highs and buys when price closes above it, then follows the move with a trailing stop.

What it is about

Trendlines are one of the oldest chart tools. During a pullback, price makes lower and lower peaks; a line joining two of them shows where sellers have been in control. When price closes back above that line, the sellers have lost their grip and the bigger move (often up) may resume.

The strategy draws these lines automatically, without hindsight. A peak (swing high) only counts once five candles on each side are lower, so it is only known five candles later; the line is drawn from that moment on.

There is no fixed target. Once a trade is 1R in profit (R = the amount risked) the stop follows price 1R behind its best level. Many trades end around break-even or a small gain, and the money comes from the occasional long run.

How it trades

Chart & market
NAS100 (the Nasdaq 100 stock index, traded as a CFD) on 15-minute candles, or gold on 1-hour candles. Buys only: sells lost money everywhere in testing.
Setup
Swing high = a candle whose high is above the 5 candles on each side, usable from the 5th candle after it. A falling line is drawn through the two most recent swing highs when the second is lower than the first. A line expires 150 candles after its second swing high.
Entry
Buy at the close of the first candle that closes above the line (the previous close was at or below it). Each line gives one signal.
Stop loss
2 x ATR(14) below the entry (ATR = average candle size), or for the gold version below the last confirmed swing low. Trades whose stop is closer than 0.3 ATR or wider than 8 ATR are skipped: a stop hugging the entry would make normal moves look like huge wins.
Exit
No target. Once the trade is 1R in profit, the stop trails 1R behind the best price reached. Closed after 300 candles at the latest. If a candle touches the stop, the stop counts first.
Filters
Optional daily trend filter (gold version): buy only when the last finished daily candle closed above its 50-day EMA (exponential moving average). One trade at a time.

NAS100 version: 15-minute candles at any hour the index CFD trades (nearly 23 hours a day, busiest during the New York session 09:30-16:00), about 30 trades a month. Gold version: 1-hour candles, about 4 trades a month. Trades last from minutes to a few days.

What to expect
  • Roughly half the trades win (51% on NAS100, 54% on gold), but many winners are small because the 1R trailing stop locks in modest gains.
  • NAS100 version, backtest 2019-today: 2,851 trades, +373.4R at zero cost, largest drawdown about 27.2R.
  • Gold version, backtest 2018-today: 450 trades, +135.1R, largest drawdown about 7.8R.
  • Flat stretches happen: NAS100 made +13.7R in 2022, +9.9R in 2023 and is +6.9R for 2026 so far; gold lost 2.7R in 2021.
Risks and caveats
  • The NAS100 version has gone mostly sideways in recent years; research found that in 2026 breakouts on NAS100 followed through less often than before.
  • Sensitive to the data feed: on Pepperstone data (the broker feed used for paper trading) the NAS100 version made far less than on Dukascopy data from July 2024 to October 2026, with only half the signals identical. It is the variation to watch.
  • Buys only, so it relies on markets that drift up over time; sells lost money everywhere.
  • The timeframe matters: the same rules on gold 15-minute candles lost money.
  • Without the minimum-stop guard, an early test showed a huge fake profit from tiny stops; the guard is essential.

Where it comes from

A classic chart-reading technique, automated. Tested in October 2026: 97% of the NAS100 buy settings tried made money in the train period. Train = 2018/2019-2023, test = 2024 to Oct 2026.

Main variation: s15-B ★ Main

Live result
0.0R
0 closed · 0 open · zero cost
Backtest total
+135.1R
450 trades · +0.30R a trade · win 54%
Backtest max drawdown
−7.8R
total ÷ drawdown 17.3
Years won
8/9
4.3 trades / month
Backtest R per year (zero cost), s15-B
−10.0R0.0R10.0R20.0R30.0R40.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: −7.1R (zero cost).

Live paper account (R, zero cost)Backtest 2018 – today (R, zero cost)
s15-B★ MainTrendline breakXAUUSD1H–0––+135.1R+0.30R8/94.354%−7.8R
s15-ATrendline breakNAS10015m−7.1R1533%–+373.4R+0.13R8/830.651%−27.2R

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.