BACKTEST RESULTS

SuperTrend strategy backtest results

SPY daily data, 2016 to 2026: the ATR 10, factor 3 rule, long and short, lost 17.8% after costs over 93 trades, winning 37.6% of them, against +277.8% for holding SPY. Long only it made 100.1%. The best of 9 runs was ATR 10, factor 3 on NVDA, long only: +3902.6%, held-out survived. Every run, every trade and the script are on this page.

SPY · daily data · ATR 10, factor 3 · long and short
Net after costs
-17.8%
Holding SPY
+277.8%
Trades
93
Win rate
37.6%
Profit factor
1.05
Max drawdown
47.3%
Held out, last third: survived
Long only: +100.1% on 47 trades, held-out survived
4 January 2016 to 23 October 2026
  • Checked 25 October 2026
  • Alpaca daily data since 2016, and 5-minute data from the last 600 sessions
  • 0.05% commission + 0.025% slippage per fill
  • last third of the history held out
  • 9 runs, 1854 trades
  • Updated 1 November 2026

The short answer

Answers here: Does the SuperTrend strategy work? · What are the best SuperTrend settings? · Does it beat holding the stock? · Long only, or both ways?

SPY daily data, 4 January 2016 to 23 October 2026, long and short: 93 trades, lost 17.8% after costs, 37.6% of trades won, profit factor 1.05, worst drawdown 47.3%, 99% of the time in the market. Holding SPY returned +277.8% over the same period.

Held out on its own, the last third (16 March 2023 to 23 October 2026) made 19.2% on 27 trades: the rule survived its held-out period.

Long only, the same rule made 100.1% on 47 trades (51.1% won, profit factor 2.14, held-out survived): the short side cost 117.9 points of return in a period when SPY rose 277.8%.

On 5-minute data the same rule traded 1246 times in 2.4 years on SPY and lost 84.2%: at 0.15% a round trip, costs alone came to roughly 187% of the account over the period, which is where a daily rule moved to minute charts usually dies.

Across all 9 runs on this page, 5 made money after costs, 6 survived the held-out third, and 0 beat holding the symbol.

The best run was ATR 10, factor 3 on NVDA, long only: +3902.6% net on 41 trades, profit factor 4.94, worst drawdown 41.8%, held-out survived. The tester's verdict on it reads "real edge so far · check the test period".

One symbol's past after modelled costs is not a forecast. Prices are split-adjusted and not dividend-adjusted, so every return here is a price return; the period includes a long rise with two sharp falls, and a rule that is often long did well for that reason as much as any other. These are research results, not investment advice.

What the script does

SuperTrend Strategy, from the strategy library.

Goes long when the SuperTrend line (ATR length 10, factor 3) flips below price and goes short when it flips above price, so the script is always in the market: each flip closes the old trade and opens the new one. There is no stop or target beyond the next flip. Three settings were run on SPY, the default on QQQ and NVDA, and long-only versions on all three.

The indicator itself, with its Pine code drawn on real market data: SuperTrend.

The numbers, run by run

Net and holding the symbol are after costs over the same period. Held-out is the verdict on the last third of the history judged alone: survived, decayed, did not survive, or too few trades to judge.

SymbolTimeframeSettingsDirectionTradesWin rateNetHoldingProfit factorMax drawdownHeld-out
NVDAdailyATR 10, factor 3long and short8234.2%+66.6%+25955.3%1.7576.9%decayed
SPYdailyATR 10, factor 3long and short9337.6%-17.8%+277.8%1.0547.3%survived
SPYdailyATR 7, factor 2long and short15239.5%+3.3%+277.8%1.1441.3%did not survive
SPYdailyATR 14, factor 4long and short6134.4%-29.6%+277.8%0.9650.2%survived
QQQdailyATR 10, factor 3long and short8837.5%-8.0%+542.3%1.1635.8%survived
SPYdailyATR 10, factor 3long only4751.1%+100.1%+277.8%2.1418.1%survived
QQQdailyATR 10, factor 3long only4452.3%+194.0%+542.3%2.6120.2%survived
NVDAdailyATR 10, factor 3long only4151.2%+3902.6%+25955.3%4.9441.8%survived
SPY5-minuteATR 10, factor 3long and short124626.6%-84.2%+44.4%0.5384.3%did not survive

Year by year

ATR 10, factor 3 on SPY, long and short, the same rule long only, and SPY itself, each calendar year after costs. A partial first or last year counts the sessions it has.

YearATR 10, factor 3, long and shortATR 10, factor 3, long onlyHolding SPY
2016+2.2%+8.7%+11.2%
2017+4.5%+11.3%+18.5%
2018-8.3%-6.6%-6.9%
2019+8.7%+18.8%+28.6%
2020-5.1%+9.0%+15.1%
2021-23.2%-0.1%+28.8%
2022-7.4%-12.2%-19.9%
2023-0.5%+11.9%+24.8%
2024+14.8%+19.7%+24.0%
2025+0.0%+9.4%+16.6%
2026-1.6%+5.1%+11.2%

Every trade

The 93 trades of ATR 10, factor 3 on SPY, long and short, oldest first: side, entry and exit days, fill prices after slippage, and the return after both commissions. The other runs' trades open below.

SideInOutEntryExitReturn
long2016-02-232016-05-20194.05204.86+5.5%
short2016-05-202016-05-31204.86210.61-2.9%
long2016-05-312016-06-20210.61208.76-1.0%
short2016-06-202016-07-01208.76209.42-0.4%
long2016-07-012016-09-12209.42212.33+1.3%
short2016-09-122016-11-10212.33217.38-2.5%
long2016-11-102017-03-22217.38233.70+7.4%
short2017-03-222017-04-26233.70238.60-2.2%
long2017-04-262017-05-18238.60235.63-1.3%
short2017-05-182017-05-26235.63241.62-2.6%
long2017-05-262017-08-11241.62243.95+0.9%
short2017-08-112017-09-05243.95247.31-1.5%
long2017-09-052018-02-05247.31273.39+10.4%
short2018-02-052018-02-27273.39278.19-1.9%
long2018-02-272018-03-23278.19264.08-5.2%
short2018-03-232018-05-14264.08273.42-3.6%
long2018-05-142018-06-26273.42271.56-0.8%
short2018-06-262018-07-11271.56277.22-2.2%
long2018-07-112018-10-10277.22286.75+3.3%
short2018-10-102018-12-04286.75278.45+2.8%
long2018-12-042018-12-10278.45263.29-5.5%
short2018-12-102019-01-09263.29257.62+2.1%
long2019-01-092019-05-08257.62287.46+11.5%
short2019-05-082019-06-10287.46289.44-0.8%
long2019-06-102019-08-02289.44293.77+1.4%
short2019-08-022019-09-06293.77298.25-1.6%
long2019-09-062019-10-02298.25291.43-2.4%
short2019-10-022019-10-18291.43298.76-2.6%
long2019-10-182020-01-28298.76324.97+8.7%
short2020-01-282020-02-06324.97334.01-2.9%
long2020-02-062020-02-25334.01323.84-3.1%
short2020-02-252020-03-05323.84305.07+5.7%
long2020-03-052020-03-10305.07284.54-6.8%
short2020-03-102020-04-09284.54277.66+2.3%
long2020-04-092020-06-12277.66308.15+10.9%
short2020-06-122020-07-16308.15319.88-3.9%
long2020-07-162020-09-04319.88346.03+8.1%
short2020-09-042020-10-09346.03345.67+0.0%
long2020-10-092020-10-29345.67326.82-5.6%
short2020-10-292020-11-06326.82350.03-7.2%
long2020-11-062021-02-01350.03373.62+6.6%
short2021-02-012021-02-09373.62389.72-4.4%
long2021-02-092021-03-05389.72380.31-2.5%
short2021-03-052021-04-05380.31403.57-6.2%
long2021-04-052021-05-13403.57406.96+0.7%
short2021-05-132021-06-11406.96424.31-4.4%
long2021-06-112021-06-21424.31416.69-1.9%
short2021-06-212021-06-29416.69428.01-2.8%
long2021-06-292021-07-20428.01425.56-0.7%
short2021-07-202021-07-26425.56439.43-3.4%
long2021-07-262021-09-15439.43444.50+1.1%
short2021-09-152021-10-20444.50451.25-1.6%
long2021-10-202021-11-29451.25463.94+2.7%
short2021-11-292021-12-28463.94477.85-3.1%
long2021-12-282022-01-19477.85458.05-4.2%
short2022-01-192022-02-03458.05451.07+1.4%
long2022-02-032022-02-23451.07432.57-4.2%
short2022-02-232022-03-23432.57447.03-3.4%
long2022-03-232022-04-25447.03423.54-5.4%
short2022-04-252022-07-22423.54399.03+5.7%
long2022-07-222022-08-29399.03402.09+0.7%
short2022-08-292022-10-26402.09381.72+5.0%
long2022-10-262022-12-19381.72383.36+0.3%
short2022-12-192023-01-24383.36398.99-4.2%
long2023-01-242023-03-02398.99392.58-1.7%
short2023-03-022023-04-03392.58408.97-4.3%
long2023-04-032023-08-14408.97444.58+8.6%
short2023-08-142023-08-31444.58451.77-1.7%
long2023-08-312023-09-22451.77432.34-4.4%
short2023-09-222023-11-03432.34433.23-0.3%
long2023-11-032024-04-15433.23514.99+18.8%
short2024-04-152024-05-07514.99517.69-0.6%
long2024-05-072024-07-22517.69552.85+6.7%
short2024-07-222024-08-16552.85551.57+0.1%
long2024-08-162024-11-01551.57571.17+3.5%
short2024-11-012024-11-07571.17593.24-4.0%
long2024-11-072024-12-19593.24591.20-0.4%
short2024-12-192025-01-22591.20606.08-2.6%
long2025-01-222025-02-26606.08595.75-1.8%
short2025-02-262025-04-30595.75547.74+8.0%
long2025-04-302025-08-04547.74625.50+14.1%
short2025-08-042025-08-13625.50645.08-3.2%
long2025-08-132025-10-13645.08660.47+2.3%
short2025-10-132025-10-28660.47687.25-4.2%
long2025-10-282025-11-19687.25660.60-4.0%
short2025-11-192025-12-11660.60685.29-3.8%
long2025-12-112026-01-21685.29679.47-0.9%
short2026-01-212026-04-09679.47675.02+0.6%
long2026-04-092026-06-08675.02743.16+10.0%
short2026-06-082026-08-05743.16776.04-4.5%
long2026-08-052026-09-17776.04762.95-1.8%
short2026-09-172026-10-07762.95775.97-1.8%
long2026-10-072026-10-23775.97759.72-2.2%

The script

Pine v6, exactly as it ran for ATR 10, factor 3 on SPY, long and short. The variants change only the inputs listed in the table.

//@version=6
strategy("SuperTrend Strategy", overlay=true, default_qty_type=strategy.percent_of_equity, default_qty_value=100, initial_capital=100000, commission_type=strategy.commission.percent, commission_value=0.05, slippage=1, margin_long=0, margin_short=0)

factor   = input.float(3, "ATR multiplier", minval=0.5, step=0.1, group="Setup")
atrLen   = input.int(10, "ATR length", minval=1, group="Setup")
useLong  = input.bool(true, "Trade longs", group="Direction")
useShort = input.bool(true, "Trade shorts", group="Direction")
tpMult   = input.float(0, "Target (ATR multiples, 0 = off)", minval=0, step=0.5, group="Risk")

[st, dir] = ta.supertrend(factor, atrLen)
atr = ta.atr(atrLen)
up  = dir < 0

longSig  = up and not up[1] and barstate.isconfirmed
shortSig = not up and up[1] and barstate.isconfirmed

plot(up ? st : na, "Up trend", color=color.new(#16A56A, 0), linewidth=2, style=plot.style_linebr)
plot(up ? na : st, "Down trend", color=color.new(#E5484D, 0), linewidth=2, style=plot.style_linebr)

if longSig
    strategy.close("Short")
    if useLong
        strategy.entry("Long", strategy.long)
        strategy.exit("Long target", "Long", limit=tpMult > 0 ? close + tpMult * atr : na)
if shortSig
    strategy.close("Long")
    if useShort
        strategy.entry("Short", strategy.short)
        strategy.exit("Short target", "Short", limit=tpMult > 0 ? close - tpMult * atr : na)

How it was tested

Alpaca daily data since 2016, and 5-minute data from the last 600 sessions, 0.05% commission and 0.025% slippage on every fill, the last third of the history held out, textbook settings and nothing tuned. The engine, fills and what it does not model are written out once, in data and methodology.

Run the SuperTrend strategy on your own symbol, free

Describe the rule in your own words or paste the script. The Free plan writes the Pine v6 script with the AI, runs it on any US stock or ETF with the same costs and the same held-out check, and shows every trade on the chart. No card.

Every strategy tested

Seventeen popular rules through the same engine, the same costs and the same held-out check, with every trade listed. Next: Trailing stop strategy, Parabolic SAR strategy, Keltner Channel strategy.

Questions

Does the SuperTrend strategy work?

SPY, daily data, 2016 to 2026, long and short: ATR 10, factor 3 lost 17.8% after costs over 93 trades (37.6% won, profit factor 1.05) against +277.8% for holding SPY, and the held-out third survived. Long only it made 100.1%. Across all 9 runs on the page, 5 made money after costs, 6 survived their held-out third and 0 beat holding the stock.

What is the win rate of the SuperTrend strategy?

From 26.6% to 52.3% across the 9 runs. The classic setting, ATR 10, factor 3 on SPY long and short, won 37.6% of 93 trades. The win rate alone does not decide the result: that run's profit factor was 1.05, so its winners outweighed its losers, and the net return was -17.8%.

What are the best SuperTrend settings?

Of the 3 settings tested, ATR 10, factor 3 on NVDA (long only) did best: +3902.6% net, profit factor 4.94, held-out survived. That is the best of 9 tries on 10.8 years of daily data of one symbol, which is already a fitted number. A setting that works on one symbol or one period only is a coincidence, not a setting; run it on your own symbol and timeframe before trusting it.

Does the SuperTrend strategy beat holding the stock?

0 of the 9 runs did. SPY itself returned +277.8% between 4 January 2016 and 23 October 2026, so a rule that is out of the market part of the time has a lot to make up; what a timing rule usually gets you is a smaller drawdown, not a bigger return. The classic run's worst drawdown was 47.3% with 99% of the time in the market.

Did the SuperTrend strategy hold up out of sample?

The last third of every run's history (16 March 2023 to 23 October 2026 for the lead run) was judged on its own, with no fitting on it: 6 of 9 runs survived, 1 decayed, 2 did not survive and 0 had too few trades there to judge. Survived means a positive Sharpe ratio on the held-out part at least half the fitted period's; it is a check on one later stretch, not a forecast.

How was this tested?

With the free Alpha Charts tester's own engine: the Pine v6 scripts on this page, run on Alpaca daily data since 2016, and 5-minute data from the last 600 sessions, split-adjusted and not dividend-adjusted, one position at a time with the whole account, fills at the next candle's open, a commission of 0.05% and slippage of 0.025% on every fill, the last third of the history held out. The settings are the textbook ones and every variant is stated; nothing was tuned to make the page look better.

Every number on this page is the output of the Alpha Charts backtest engine on 25 October 2026, on Alpaca market data; the scripts are the strategy library's templates, shown as they ran. Symbols are US-listed ETFs and stocks; results are price returns after the costs stated. Past results are not a forecast and nothing here is investment advice. TradingView and Pine Script belong to TradingView, Inc.; Alpha Charts is not affiliated with it.