SPY daily data, 2016 to 2026: the 0.02 / 0.02 / 0.2 rule, long and short, lost 27.5% after costs over 261 trades, winning 34.9% of them, against +277.8% for holding SPY. Long only it made 86.6%. The best of 6 runs was 0.02 / 0.02 / 0.2 on SPY, long only: +86.6%, held-out survived. Every run, every trade and the script are on this page.
Answers here: Does the Parabolic SAR strategy work? · What are the best SAR settings? · Long only, or both ways?
SPY daily data, 4 January 2016 to 23 October 2026, long and short: 261 trades, lost 27.5% after costs, 34.9% of trades won, profit factor 0.96, worst drawdown 50.6%, 100% 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) lost 17.5% on 86 trades: it did not survive its held-out period.
Long only, the same rule made 86.6% on 130 trades (46.9% won, profit factor 1.57, held-out survived): the short side cost 114.1 points of return in a period when SPY rose 277.8%.
On 5-minute data the same rule traded 4215 times in 2.4 years on SPY and lost 99.8%: at 0.15% a round trip, costs alone came to roughly 632% of the account over the period, which is where a daily rule moved to minute charts usually dies.
Across all 6 runs on this page, 2 made money after costs, 2 survived the held-out third, and 0 beat holding the symbol.
The best run was 0.02 / 0.02 / 0.2 on SPY, long only: +86.6% net on 130 trades, profit factor 1.57, worst drawdown 25.1%, held-out survived. The tester's verdict on it reads "real edge so far · check the test period".
Parabolic SAR Strategy, from the strategy library.
Goes long when the close crosses above the Parabolic SAR dots (step 0.02, maximum 0.2) and goes short when it crosses below them, so the script is always in the market and the next flip closes the trade. There is no extra stop. A faster 0.03 step with a 0.3 maximum was run on SPY, and long-only versions on SPY and QQQ.
The indicator itself, with its Pine code drawn on real market data: Parabolic SAR.
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.
| Symbol | Timeframe | Settings | Direction | Trades | Win rate | Net | Holding | Profit factor | Max drawdown | Held-out |
|---|---|---|---|---|---|---|---|---|---|---|
| SPY | daily | 0.02 / 0.02 / 0.2 | long and short | 261 | 34.9% | -27.5% | +277.8% | 0.96 | 50.6% | did not survive |
| SPY | daily | 0.03 / 0.03 / 0.3 | long and short | 345 | 36.2% | -55.1% | +277.8% | 0.84 | 64.0% | did not survive |
| NVDA | daily | 0.02 / 0.02 / 0.2 | long and short | 233 | 37.3% | -82.6% | +25955.3% | 1.00 | 86.0% | did not survive |
| SPY | daily | 0.02 / 0.02 / 0.2 | long only | 130 | 46.9% | +86.6% | +277.8% | 1.57 | 25.1% | survived |
| QQQ | daily | 0.02 / 0.02 / 0.2 | long only | 132 | 50.8% | +105.7% | +542.3% | 1.51 | 38.0% | survived |
| SPY | 5-minute | 0.02 / 0.02 / 0.2 | long and short | 4215 | 19.9% | -99.8% | +44.4% | 0.30 | 99.8% | did not survive |
0.02 / 0.02 / 0.2 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.
| Year | 0.02 / 0.02 / 0.2, long and short | 0.02 / 0.02 / 0.2, long only | Holding SPY |
|---|---|---|---|
| 2016 | -17.5% | -2.4% | +11.2% |
| 2017 | +2.2% | +10.1% | +18.5% |
| 2018 | +1.6% | -1.7% | -6.9% |
| 2019 | +23.0% | +26.2% | +28.6% |
| 2020 | +31.9% | +28.3% | +15.1% |
| 2021 | -15.2% | +4.9% | +28.8% |
| 2022 | -26.0% | -21.7% | -19.9% |
| 2023 | +13.4% | +19.5% | +24.8% |
| 2024 | -11.7% | +5.1% | +24.0% |
| 2025 | -8.9% | +4.4% | +16.6% |
| 2026 | -8.0% | +1.5% | +11.2% |
The 261 trades of 0.02 / 0.02 / 0.2 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.
| Side | In | Out | Entry | Exit | Return |
|---|---|---|---|---|---|
| short | 2016-01-07 | 2016-01-25 | 195.27 | 189.99 | +2.6% |
| long | 2016-01-25 | 2016-02-09 | 189.99 | 183.31 | -3.6% |
| short | 2016-02-09 | 2016-02-18 | 183.31 | 193.26 | -5.5% |
| long | 2016-02-18 | 2016-03-24 | 193.26 | 201.94 | +4.4% |
| short | 2016-03-24 | 2016-03-30 | 201.94 | 206.35 | -2.3% |
| long | 2016-03-30 | 2016-04-08 | 206.35 | 205.28 | -0.6% |
| short | 2016-04-08 | 2016-04-14 | 205.28 | 208.12 | -1.5% |
| long | 2016-04-14 | 2016-04-29 | 208.12 | 206.65 | -0.8% |
| short | 2016-04-29 | 2016-05-12 | 206.65 | 207.35 | -0.4% |
| long | 2016-05-12 | 2016-05-18 | 207.35 | 204.38 | -1.5% |
| short | 2016-05-18 | 2016-05-25 | 204.38 | 208.73 | -2.2% |
| long | 2016-05-25 | 2016-06-14 | 208.73 | 207.94 | -0.5% |
| short | 2016-06-14 | 2016-06-24 | 207.94 | 203.68 | +1.9% |
| long | 2016-06-24 | 2016-06-27 | 203.68 | 201.53 | -1.2% |
| short | 2016-06-27 | 2016-07-01 | 201.53 | 209.42 | -4.0% |
| long | 2016-07-01 | 2016-07-29 | 209.42 | 216.40 | +3.2% |
| short | 2016-07-29 | 2016-08-01 | 216.40 | 217.25 | -0.5% |
| long | 2016-08-01 | 2016-08-03 | 217.25 | 215.42 | -0.9% |
| short | 2016-08-03 | 2016-08-08 | 215.42 | 218.46 | -1.5% |
| long | 2016-08-08 | 2016-08-25 | 218.46 | 217.34 | -0.6% |
| short | 2016-08-25 | 2016-09-06 | 217.34 | 218.75 | -0.8% |
| long | 2016-09-06 | 2016-09-12 | 218.75 | 212.33 | -3.0% |
| short | 2016-09-12 | 2016-09-23 | 212.33 | 216.77 | -2.2% |
| long | 2016-09-23 | 2016-10-12 | 216.77 | 213.53 | -1.6% |
| short | 2016-10-12 | 2016-11-08 | 213.53 | 212.76 | +0.3% |
| long | 2016-11-08 | 2016-12-02 | 212.76 | 219.61 | +3.1% |
| short | 2016-12-02 | 2016-12-07 | 219.61 | 221.59 | -1.0% |
| long | 2016-12-07 | 2016-12-23 | 221.59 | 225.36 | +1.6% |
| short | 2016-12-23 | 2017-01-09 | 225.36 | 226.98 | -0.8% |
| long | 2017-01-09 | 2017-03-07 | 226.98 | 237.28 | +4.4% |
| short | 2017-03-07 | 2017-03-16 | 237.28 | 239.18 | -0.9% |
| long | 2017-03-16 | 2017-03-22 | 239.18 | 233.70 | -2.4% |
| short | 2017-03-22 | 2017-04-06 | 233.70 | 235.02 | -0.7% |
| long | 2017-04-06 | 2017-05-18 | 235.02 | 235.63 | +0.2% |
| short | 2017-05-18 | 2017-05-24 | 235.63 | 240.39 | -2.1% |
| long | 2017-05-24 | 2017-06-19 | 240.39 | 243.52 | +1.2% |
| short | 2017-06-19 | 2017-07-13 | 243.52 | 244.09 | -0.3% |
| long | 2017-07-13 | 2017-08-10 | 244.09 | 246.21 | +0.8% |
| short | 2017-08-10 | 2017-08-28 | 246.21 | 245.20 | +0.3% |
| long | 2017-08-28 | 2017-09-26 | 245.20 | 249.36 | +1.6% |
| short | 2017-09-26 | 2017-09-28 | 249.36 | 249.80 | -0.3% |
| long | 2017-09-28 | 2017-10-20 | 249.80 | 256.63 | +2.6% |
| short | 2017-10-20 | 2017-10-23 | 256.63 | 257.55 | -0.5% |
| long | 2017-10-23 | 2017-10-26 | 257.55 | 255.92 | -0.7% |
| short | 2017-10-26 | 2017-10-30 | 255.92 | 257.14 | -0.6% |
| long | 2017-10-30 | 2017-11-15 | 257.14 | 256.55 | -0.3% |
| short | 2017-11-15 | 2017-11-22 | 256.55 | 260.11 | -1.5% |
| long | 2017-11-22 | 2017-12-26 | 260.11 | 266.98 | +2.5% |
| short | 2017-12-26 | 2018-01-02 | 266.98 | 267.92 | -0.4% |
| long | 2018-01-02 | 2018-01-31 | 267.92 | 282.65 | +5.4% |
| short | 2018-01-31 | 2018-02-15 | 282.65 | 271.67 | +3.8% |
| long | 2018-02-15 | 2018-03-05 | 271.67 | 267.65 | -1.6% |
| short | 2018-03-05 | 2018-03-12 | 267.65 | 279.28 | -4.4% |
| long | 2018-03-12 | 2018-03-20 | 279.28 | 270.85 | -3.1% |
| short | 2018-03-20 | 2018-04-11 | 270.85 | 263.56 | +2.6% |
| long | 2018-04-11 | 2018-04-25 | 263.56 | 262.83 | -0.4% |
| short | 2018-04-25 | 2018-05-08 | 262.83 | 266.58 | -1.5% |
| long | 2018-05-08 | 2018-05-30 | 266.58 | 270.45 | +1.4% |
| short | 2018-05-30 | 2018-06-04 | 270.45 | 274.60 | -1.6% |
| long | 2018-06-04 | 2018-06-19 | 274.60 | 273.92 | -0.3% |
| short | 2018-06-19 | 2018-07-09 | 273.92 | 276.63 | -1.1% |
| long | 2018-07-09 | 2018-07-31 | 276.63 | 280.73 | +1.4% |
| short | 2018-07-31 | 2018-08-07 | 280.73 | 285.47 | -1.8% |
| long | 2018-08-07 | 2018-08-16 | 285.47 | 283.28 | -0.9% |
| short | 2018-08-16 | 2018-08-21 | 283.28 | 286.32 | -1.2% |
| long | 2018-08-21 | 2018-09-07 | 286.32 | 286.90 | +0.1% |
| short | 2018-09-07 | 2018-09-14 | 286.90 | 291.14 | -1.6% |
| long | 2018-09-14 | 2018-09-27 | 291.14 | 290.36 | -0.4% |
| short | 2018-09-27 | 2018-11-01 | 290.36 | 271.70 | +6.3% |
| long | 2018-11-01 | 2018-11-15 | 271.70 | 268.70 | -1.2% |
| short | 2018-11-15 | 2018-11-29 | 268.70 | 273.79 | -2.0% |
| long | 2018-11-29 | 2018-12-07 | 273.79 | 269.38 | -1.7% |
| short | 2018-12-07 | 2018-12-31 | 269.38 | 249.63 | +7.2% |
| long | 2018-12-31 | 2019-01-29 | 249.63 | 263.82 | +5.6% |
| short | 2019-01-29 | 2019-01-31 | 263.82 | 267.59 | -1.5% |
| long | 2019-01-31 | 2019-02-28 | 267.59 | 278.88 | +4.1% |
| short | 2019-02-28 | 2019-03-05 | 278.88 | 279.63 | -0.4% |
| long | 2019-03-05 | 2019-03-08 | 279.63 | 272.85 | -2.5% |
| short | 2019-03-08 | 2019-03-14 | 272.85 | 281.45 | -3.3% |
| long | 2019-03-14 | 2019-04-22 | 281.45 | 289.09 | +2.6% |
| short | 2019-04-22 | 2019-04-24 | 289.09 | 292.85 | -1.4% |
| long | 2019-04-24 | 2019-05-03 | 292.85 | 292.74 | -0.1% |
| short | 2019-05-03 | 2019-05-17 | 292.74 | 285.22 | +2.5% |
| long | 2019-05-17 | 2019-05-24 | 285.22 | 283.66 | -0.6% |
| short | 2019-05-24 | 2019-06-07 | 283.66 | 286.01 | -0.9% |
| long | 2019-06-07 | 2019-07-10 | 286.01 | 298.29 | +4.2% |
| short | 2019-07-10 | 2019-07-11 | 298.29 | 299.40 | -0.5% |
| long | 2019-07-11 | 2019-08-01 | 299.40 | 297.52 | -0.7% |
| short | 2019-08-01 | 2019-08-14 | 297.52 | 288.15 | +3.0% |
| long | 2019-08-14 | 2019-09-24 | 288.15 | 299.33 | +3.8% |
| short | 2019-09-24 | 2019-10-08 | 299.33 | 291.12 | +2.6% |
| long | 2019-10-08 | 2019-11-21 | 291.12 | 310.79 | +6.7% |
| short | 2019-11-21 | 2019-11-26 | 310.79 | 313.50 | -1.0% |
| long | 2019-11-26 | 2019-12-04 | 313.50 | 310.61 | -1.0% |
| short | 2019-12-04 | 2019-12-09 | 310.61 | 314.51 | -1.4% |
| long | 2019-12-09 | 2020-01-07 | 314.51 | 322.93 | +2.6% |
| short | 2020-01-07 | 2020-01-09 | 322.93 | 326.24 | -1.1% |
| long | 2020-01-09 | 2020-01-27 | 326.24 | 322.94 | -1.1% |
| short | 2020-01-27 | 2020-02-06 | 322.94 | 334.01 | -3.5% |
| long | 2020-02-06 | 2020-02-25 | 334.01 | 323.84 | -3.1% |
| short | 2020-02-25 | 2020-03-25 | 323.84 | 244.94 | +24.3% |
| long | 2020-03-25 | 2020-04-22 | 244.94 | 278.27 | +13.5% |
| short | 2020-04-22 | 2020-04-28 | 278.27 | 291.10 | -4.7% |
| long | 2020-04-28 | 2020-05-14 | 291.10 | 278.86 | -4.3% |
| short | 2020-05-14 | 2020-05-19 | 278.86 | 294.42 | -5.7% |
| long | 2020-05-19 | 2020-06-12 | 294.42 | 308.15 | +4.6% |
| short | 2020-06-12 | 2020-06-24 | 308.15 | 309.94 | -0.7% |
| long | 2020-06-24 | 2020-07-27 | 309.94 | 321.54 | +3.6% |
| short | 2020-07-27 | 2020-08-04 | 321.54 | 327.95 | -2.1% |
| long | 2020-08-04 | 2020-09-04 | 327.95 | 346.03 | +5.4% |
| short | 2020-09-04 | 2020-09-29 | 346.03 | 334.06 | +3.4% |
| long | 2020-09-29 | 2020-10-20 | 334.06 | 343.36 | +2.7% |
| short | 2020-10-20 | 2020-11-05 | 343.36 | 349.34 | -1.8% |
| long | 2020-11-05 | 2020-12-21 | 349.34 | 364.87 | +4.3% |
| short | 2020-12-21 | 2020-12-22 | 364.87 | 368.31 | -1.0% |
| long | 2020-12-22 | 2021-01-28 | 368.31 | 376.25 | +2.1% |
| short | 2021-01-28 | 2021-02-04 | 376.25 | 383.07 | -1.9% |
| long | 2021-02-04 | 2021-02-23 | 383.07 | 384.54 | +0.3% |
| short | 2021-02-23 | 2021-03-09 | 384.54 | 385.96 | -0.5% |
| long | 2021-03-09 | 2021-03-24 | 385.96 | 390.89 | +1.2% |
| short | 2021-03-24 | 2021-03-30 | 390.89 | 394.51 | -1.0% |
| long | 2021-03-30 | 2021-04-22 | 394.51 | 415.77 | +5.3% |
| short | 2021-04-22 | 2021-04-26 | 415.77 | 417.55 | -0.5% |
| long | 2021-04-26 | 2021-05-05 | 417.55 | 417.27 | -0.2% |
| short | 2021-05-05 | 2021-05-10 | 417.27 | 422.62 | -1.4% |
| long | 2021-05-10 | 2021-05-12 | 422.62 | 411.12 | -2.8% |
| short | 2021-05-12 | 2021-05-24 | 411.12 | 417.45 | -1.6% |
| long | 2021-05-24 | 2021-06-17 | 417.45 | 421.55 | +0.9% |
| short | 2021-06-17 | 2021-06-23 | 421.55 | 423.31 | -0.5% |
| long | 2021-06-23 | 2021-07-09 | 423.31 | 432.41 | +2.1% |
| short | 2021-07-09 | 2021-07-12 | 432.41 | 435.54 | -0.8% |
| long | 2021-07-12 | 2021-07-20 | 435.54 | 425.56 | -2.4% |
| short | 2021-07-20 | 2021-07-26 | 425.56 | 439.43 | -3.4% |
| long | 2021-07-26 | 2021-08-19 | 439.43 | 436.15 | -0.8% |
| short | 2021-08-19 | 2021-08-24 | 436.15 | 448.09 | -2.8% |
| long | 2021-08-24 | 2021-09-13 | 448.09 | 448.53 | 0.0% |
| short | 2021-09-13 | 2021-09-27 | 448.53 | 442.93 | +1.1% |
| long | 2021-09-27 | 2021-10-01 | 442.93 | 430.86 | -2.8% |
| short | 2021-10-01 | 2021-10-08 | 430.86 | 439.60 | -2.1% |
| long | 2021-10-08 | 2021-11-11 | 439.60 | 465.08 | +5.7% |
| short | 2021-11-11 | 2021-11-17 | 465.08 | 469.13 | -1.0% |
| long | 2021-11-17 | 2021-11-29 | 469.13 | 463.94 | -1.2% |
| short | 2021-11-29 | 2021-12-08 | 463.94 | 468.83 | -1.2% |
| long | 2021-12-08 | 2021-12-21 | 468.83 | 458.45 | -2.3% |
| short | 2021-12-21 | 2021-12-27 | 458.45 | 472.16 | -3.1% |
| long | 2021-12-27 | 2022-01-10 | 472.16 | 462.57 | -2.1% |
| short | 2022-01-10 | 2022-02-01 | 462.57 | 450.84 | +2.4% |
| long | 2022-02-01 | 2022-02-15 | 450.84 | 443.61 | -1.7% |
| short | 2022-02-15 | 2022-03-03 | 443.61 | 440.59 | +0.6% |
| long | 2022-03-03 | 2022-03-15 | 440.59 | 419.66 | -4.9% |
| short | 2022-03-15 | 2022-03-18 | 419.66 | 438.12 | -4.5% |
| long | 2022-03-18 | 2022-04-07 | 438.12 | 445.49 | +1.6% |
| short | 2022-04-07 | 2022-05-05 | 445.49 | 424.64 | +4.6% |
| long | 2022-05-05 | 2022-05-09 | 424.64 | 404.99 | -4.7% |
| short | 2022-05-09 | 2022-05-26 | 404.99 | 398.78 | +1.4% |
| long | 2022-05-26 | 2022-06-13 | 398.78 | 379.75 | -4.9% |
| short | 2022-06-13 | 2022-06-28 | 379.75 | 390.33 | -2.9% |
| long | 2022-06-28 | 2022-07-15 | 390.33 | 382.44 | -2.1% |
| short | 2022-07-15 | 2022-07-20 | 382.44 | 392.52 | -2.7% |
| long | 2022-07-20 | 2022-08-22 | 392.52 | 416.94 | +6.1% |
| short | 2022-08-22 | 2022-09-09 | 416.94 | 402.84 | +3.3% |
| long | 2022-09-09 | 2022-09-15 | 402.84 | 392.85 | -2.6% |
| short | 2022-09-15 | 2022-10-05 | 392.85 | 373.49 | +4.8% |
| long | 2022-10-05 | 2022-10-11 | 373.49 | 358.16 | -4.2% |
| short | 2022-10-11 | 2022-10-19 | 358.16 | 369.08 | -3.1% |
| long | 2022-10-19 | 2022-11-04 | 369.08 | 376.90 | +2.0% |
| short | 2022-11-04 | 2022-11-11 | 376.90 | 395.70 | -5.1% |
| long | 2022-11-11 | 2022-12-07 | 395.70 | 392.79 | -0.8% |
| short | 2022-12-07 | 2022-12-14 | 392.79 | 401.72 | -2.4% |
| long | 2022-12-14 | 2022-12-16 | 401.72 | 385.08 | -4.2% |
| short | 2022-12-16 | 2023-01-09 | 385.08 | 390.48 | -1.5% |
| long | 2023-01-09 | 2023-02-08 | 390.48 | 413.02 | +5.7% |
| short | 2023-02-08 | 2023-03-06 | 413.02 | 405.15 | +1.8% |
| long | 2023-03-06 | 2023-03-10 | 405.15 | 390.88 | -3.6% |
| short | 2023-03-10 | 2023-03-22 | 390.88 | 398.84 | -2.1% |
| long | 2023-03-22 | 2023-04-21 | 398.84 | 412.09 | +3.2% |
| short | 2023-04-21 | 2023-05-01 | 412.09 | 415.58 | -0.9% |
| long | 2023-05-01 | 2023-05-05 | 415.58 | 408.80 | -1.7% |
| short | 2023-05-05 | 2023-05-18 | 408.80 | 415.01 | -1.6% |
| long | 2023-05-18 | 2023-06-21 | 415.01 | 436.07 | +5.0% |
| short | 2023-06-21 | 2023-07-03 | 436.07 | 443.04 | -1.7% |
| long | 2023-07-03 | 2023-08-03 | 443.04 | 447.92 | +1.0% |
| short | 2023-08-03 | 2023-08-23 | 447.92 | 439.37 | +1.8% |
| long | 2023-08-23 | 2023-09-08 | 439.37 | 444.78 | +1.1% |
| short | 2023-09-08 | 2023-10-09 | 444.78 | 427.70 | +3.7% |
| long | 2023-10-09 | 2023-10-20 | 427.70 | 425.86 | -0.5% |
| short | 2023-10-20 | 2023-11-03 | 425.86 | 433.23 | -1.8% |
| long | 2023-11-03 | 2023-12-05 | 433.23 | 455.14 | +5.0% |
| short | 2023-12-05 | 2023-12-11 | 455.14 | 459.81 | -1.1% |
| long | 2023-12-11 | 2024-01-03 | 459.81 | 470.30 | +2.2% |
| short | 2024-01-03 | 2024-01-10 | 470.30 | 474.29 | -0.9% |
| long | 2024-01-10 | 2024-02-01 | 474.29 | 484.50 | +2.1% |
| short | 2024-02-01 | 2024-02-05 | 484.50 | 493.84 | -2.0% |
| long | 2024-02-05 | 2024-02-22 | 493.84 | 503.86 | +1.9% |
| short | 2024-02-22 | 2024-02-23 | 503.86 | 509.39 | -1.2% |
| long | 2024-02-23 | 2024-03-18 | 509.39 | 513.84 | +0.8% |
| short | 2024-03-18 | 2024-03-21 | 513.84 | 523.52 | -2.0% |
| long | 2024-03-21 | 2024-04-05 | 523.52 | 514.29 | -1.9% |
| short | 2024-04-05 | 2024-04-25 | 514.29 | 499.32 | +2.8% |
| long | 2024-04-25 | 2024-05-24 | 499.32 | 527.71 | +5.6% |
| short | 2024-05-24 | 2024-06-06 | 527.71 | 535.12 | -1.5% |
| long | 2024-06-06 | 2024-07-01 | 535.12 | 545.48 | +1.8% |
| short | 2024-07-01 | 2024-07-05 | 545.48 | 551.92 | -1.3% |
| long | 2024-07-05 | 2024-07-19 | 551.92 | 552.27 | 0.0% |
| short | 2024-07-19 | 2024-08-02 | 552.27 | 535.85 | +2.9% |
| long | 2024-08-02 | 2024-08-05 | 535.85 | 511.50 | -4.6% |
| short | 2024-08-05 | 2024-08-15 | 511.50 | 549.65 | -7.6% |
| long | 2024-08-15 | 2024-09-04 | 549.65 | 550.05 | 0.0% |
| short | 2024-09-04 | 2024-09-13 | 550.05 | 559.84 | -1.9% |
| long | 2024-09-13 | 2024-10-03 | 559.84 | 567.21 | +1.2% |
| short | 2024-10-03 | 2024-10-10 | 567.21 | 575.92 | -1.6% |
| long | 2024-10-10 | 2024-11-01 | 575.92 | 571.17 | -0.9% |
| short | 2024-11-01 | 2024-11-07 | 571.17 | 593.24 | -4.0% |
| long | 2024-11-07 | 2024-12-11 | 593.24 | 605.62 | +2.0% |
| short | 2024-12-11 | 2024-12-27 | 605.62 | 597.63 | +1.2% |
| long | 2024-12-27 | 2025-01-03 | 597.63 | 587.37 | -1.8% |
| short | 2025-01-03 | 2025-01-21 | 587.37 | 600.83 | -2.4% |
| long | 2025-01-21 | 2025-02-04 | 600.83 | 597.64 | -0.6% |
| short | 2025-02-04 | 2025-02-14 | 597.64 | 610.10 | -2.2% |
| long | 2025-02-14 | 2025-02-25 | 610.10 | 597.00 | -2.2% |
| short | 2025-02-25 | 2025-03-18 | 597.00 | 564.95 | +5.3% |
| long | 2025-03-18 | 2025-03-31 | 564.95 | 549.67 | -2.8% |
| short | 2025-03-31 | 2025-04-15 | 549.67 | 539.82 | +1.7% |
| long | 2025-04-15 | 2025-05-22 | 539.82 | 582.50 | +7.8% |
| short | 2025-05-22 | 2025-05-29 | 582.50 | 593.22 | -1.9% |
| long | 2025-05-29 | 2025-06-18 | 593.22 | 598.28 | +0.8% |
| short | 2025-06-18 | 2025-06-25 | 598.28 | 608.07 | -1.7% |
| long | 2025-06-25 | 2025-07-17 | 608.07 | 624.26 | +2.6% |
| short | 2025-07-17 | 2025-07-18 | 624.26 | 629.46 | -0.9% |
| long | 2025-07-18 | 2025-08-04 | 629.46 | 625.50 | -0.7% |
| short | 2025-08-04 | 2025-08-12 | 625.50 | 638.45 | -2.2% |
| long | 2025-08-12 | 2025-09-03 | 638.45 | 642.48 | +0.5% |
| short | 2025-09-03 | 2025-09-05 | 642.48 | 651.63 | -1.5% |
| long | 2025-09-05 | 2025-09-26 | 651.63 | 659.34 | +1.1% |
| short | 2025-09-26 | 2025-10-01 | 659.34 | 663.34 | -0.7% |
| long | 2025-10-01 | 2025-10-13 | 663.34 | 660.47 | -0.5% |
| short | 2025-10-13 | 2025-10-22 | 660.47 | 672.16 | -1.9% |
| long | 2025-10-22 | 2025-11-07 | 672.16 | 667.73 | -0.8% |
| short | 2025-11-07 | 2025-11-26 | 667.73 | 677.78 | -1.6% |
| long | 2025-11-26 | 2025-12-17 | 677.78 | 679.71 | +0.2% |
| short | 2025-12-17 | 2025-12-24 | 679.71 | 688.13 | -1.3% |
| long | 2025-12-24 | 2026-01-15 | 688.13 | 694.39 | +0.8% |
| short | 2026-01-15 | 2026-01-27 | 694.39 | 694.36 | -0.1% |
| long | 2026-01-27 | 2026-02-05 | 694.36 | 680.76 | -2.1% |
| short | 2026-02-05 | 2026-02-10 | 680.76 | 695.13 | -2.2% |
| long | 2026-02-10 | 2026-02-17 | 695.13 | 679.94 | -2.3% |
| short | 2026-02-17 | 2026-02-26 | 679.94 | 693.46 | -2.1% |
| long | 2026-02-26 | 2026-03-04 | 693.46 | 681.45 | -1.8% |
| short | 2026-03-04 | 2026-04-02 | 681.45 | 646.59 | +5.0% |
| long | 2026-04-02 | 2026-05-19 | 646.59 | 734.56 | +13.5% |
| short | 2026-05-19 | 2026-05-26 | 734.56 | 750.21 | -2.2% |
| long | 2026-05-26 | 2026-06-08 | 750.21 | 743.16 | -1.0% |
| short | 2026-06-08 | 2026-06-16 | 743.16 | 754.78 | -1.7% |
| long | 2026-06-16 | 2026-06-29 | 754.78 | 736.37 | -2.5% |
| short | 2026-06-29 | 2026-07-10 | 736.37 | 752.25 | -2.3% |
| long | 2026-07-10 | 2026-07-29 | 752.25 | 739.77 | -1.8% |
| short | 2026-07-29 | 2026-08-04 | 739.77 | 760.82 | -2.9% |
| long | 2026-08-04 | 2026-09-01 | 760.82 | 761.83 | +0.0% |
| short | 2026-09-01 | 2026-09-22 | 761.83 | 774.23 | -1.7% |
| long | 2026-09-22 | 2026-10-15 | 774.23 | 766.04 | -1.2% |
| short | 2026-10-15 | 2026-10-23 | 766.04 | 760.10 | +0.7% |
Pine v6, exactly as it ran for 0.02 / 0.02 / 0.2 on SPY, long and short. The variants change only the inputs listed in the table.
//@version=6
strategy("Parabolic SAR 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)
start = input.float(0.02, "Start", minval=0.001, step=0.01, group="Setup")
inc = input.float(0.02, "Increment", minval=0.001, step=0.01, group="Setup")
maxAf = input.float(0.2, "Maximum", minval=0.01, step=0.01, group="Setup")
useLong = input.bool(true, "Trade longs", group="Direction")
useShort = input.bool(true, "Trade shorts", group="Direction")
sar = ta.sar(start, inc, maxAf)
longSig = ta.crossover(close, sar) and barstate.isconfirmed
shortSig = ta.crossunder(close, sar) and barstate.isconfirmed
plot(sar, "SAR", color=close > sar ? color.new(#16A56A, 0) : color.new(#E5484D, 0), style=plot.style_circles, linewidth=1)
if longSig
strategy.close("Short")
if useLong
strategy.entry("Long", strategy.long)
if shortSig
strategy.close("Long")
if useShort
strategy.entry("Short", strategy.short)
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.
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.
Seventeen popular rules through the same engine, the same costs and the same held-out check, with every trade listed. Next: SuperTrend strategy, Trailing stop strategy, Moving average strategy.
SPY, daily data, 2016 to 2026, long and short: 0.02 / 0.02 / 0.2 lost 27.5% after costs over 261 trades (34.9% won, profit factor 0.96) against +277.8% for holding SPY, and the held-out third did not survive. Long only it made 86.6%. Across all 6 runs on the page, 2 made money after costs, 2 survived their held-out third and 0 beat holding the stock.
From 19.9% to 50.8% across the 6 runs. The classic setting, 0.02 / 0.02 / 0.2 on SPY long and short, won 34.9% of 261 trades. The win rate alone does not decide the result: that run's profit factor was 0.96, so its losers outweighed its winners, and the net return was -27.5%.
Of the 2 settings tested, 0.02 / 0.02 / 0.2 on SPY (long only) did best: +86.6% net, profit factor 1.57, held-out survived. That is the best of 6 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.
0 of the 6 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 50.6% with 100% of the time in the market.
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: 2 of 6 runs survived, 0 decayed, 4 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.
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.