Skip to content
Menu

Dip above the 200-day on SPY

Buy when the close is above SMA (200) and RSI (2) is below 10. Sell when the close is above SMA (5).

Started from the “Dip above the 200-day” template. A template is a well-known idea to test, not a recommendation.

Buy when

Open a position when

Sell when

Close it when

Assumptions 10,000 to start · 0.05% cost per trade · fills at the next open
This rule
+2.5%
10,000 became 10,247
Buy and hold SPY
+21.4%
10,000 became 12,139
Worst fall
−6.8%
−726 · not recovered by the end
Trades
17
12 won · 5 lost · 71% win rate
Profit factor
1.35
gains ÷ losses
In the market
10%
of 500 days
  • Only 17 trades. A handful of trades says little about a rule: a few lucky or unlucky ones decide the result. Thirty or more is a common minimum; a longer period gives more.
  • Buying and holding did better. Over the same dates, simply holding SPY returned 19 percentage points more than this rule after costs.

Account value

10,000 following this rule, beside the same cash bought and held, Nov 29, 2024 to Nov 27, 2026

10k12k−10.0%0%Fall from the peakNov 24Apr 25Sep 25Feb 26Jul 26Nov 26

Transactions chart

Buy and cover markers below the bar, sell and short markers above

500.0600.0700.010.0k10.5kAccount valueNov 24Apr 25Sep 25Feb 26Jul 26Nov 26

Trades

17 round trips, oldest first. Each is an entry and its exit, after costs.

Backtest trades
SideEntryExitSharesHeldProfitReturnWorst / best
LongOct 13, 2025 · 660.65 the close is above SMA (200) and RSI (2) is below 10Oct 16, 2025 · 666.82 the close is above SMA (5)15.133 days+83.30+0.83%−1.1% / +1.5%
LongNov 18, 2025 · 662.10 the close is above SMA (200) and RSI (2) is below 10Nov 25, 2025 · 668.63 the close is above SMA (5)15.225 days+89.27+0.89%−1.7% / +2.0%
LongDec 18, 2025 · 677.60 the close is above SMA (200) and RSI (2) is below 10Dec 22, 2025 · 683.94 the close is above SMA (5)15.012 days+84.92+0.83%−0.4% / +0.9%
LongJan 2, 2026 · 685.71 the close is above SMA (200) and RSI (2) is below 10Jan 6, 2026 · 687.93 the close is above SMA (5)14.952 days+22.92+0.22%−0.9% / +0.5%
LongJan 21, 2026 · 679.65 the close is above SMA (200) and RSI (2) is below 10Jan 23, 2026 · 688.15 the close is above SMA (5)15.122 days+118.17+1.15%−0.2% / +1.7%
LongFeb 6, 2026 · 681.46 the close is above SMA (200) and RSI (2) is below 10Feb 9, 2026 · 689.42 the close is above SMA (5)15.251 days+110.95+1.07%−0.1% / +1.6%
LongFeb 13, 2026 · 681.69 the close is above SMA (200) and RSI (2) is below 10Feb 19, 2026 · 683.84 the close is above SMA (5)15.413 days+22.61+0.22%−0.9% / +1.1%
LongMar 4, 2026 · 681.63 the close is above SMA (200) and RSI (2) is below 10Mar 18, 2026 · 668.36 the close is above SMA (5)15.4410 days−215.36−2.04%−3.0% / +0.8%
LongJun 8, 2026 · 743.36 the close is above SMA (200) and RSI (2) is below 10Jun 12, 2026 · 740.71 the close is above SMA (5)13.874 days−47.05−0.46%−2.8% / +0.5%
LongJun 29, 2026 · 736.53 the close is above SMA (200) and RSI (2) is below 10Jun 30, 2026 · 741.29 the close is above SMA (5)13.941 days+56.04+0.55%−0.6% / +0.7%
LongJul 21, 2026 · 746.29 the close is above SMA (200) and RSI (2) is below 10Jul 22, 2026 · 746.62 the close is above SMA (5)13.831 days−5.76−0.06%−0.3% / +0.4%
LongJul 30, 2026 · 736.05 the close is above SMA (200) and RSI (2) is below 10Jul 31, 2026 · 744.68 the close is above SMA (5)14.011 days+110.56+1.07%−0.2% / +1.2%
LongSep 2, 2026 · 762.45 the close is above SMA (200) and RSI (2) is below 10Sep 4, 2026 · 772.01 the close is above SMA (5)13.672 days+120.23+1.15%−0.1% / +1.5%
LongSep 11, 2026 · 764.72 the close is above SMA (200) and RSI (2) is below 10Sep 14, 2026 · 759.00 the close is above SMA (5)13.791 days−89.39−0.85%−0.7% / +0.2%
LongOct 15, 2026 · 766.25 the close is above SMA (200) and RSI (2) is below 10Oct 21, 2026 · 771.17 the close is above SMA (5)13.654 days+56.65+0.54%−0.7% / +0.9%
LongNov 2, 2026 · 759.45 the close is above SMA (200) and RSI (2) is below 10Nov 5, 2026 · 765.47 the close is above SMA (5)13.843 days+72.78+0.69%−1.0% / +2.1%
LongNov 17, 2026 · 738.39 the close is above SMA (200) and RSI (2) is below 10Nov 24, 2026 · 715.15 the close is above SMA (5)14.345 days−343.59−3.24%−7.0% / +0.2%

Return and risk

This rule beside buying and holding over the same dates

MeasureThis ruleBuy and hold
Total return+2.5%+21.4%
Return per year+1.2%+10.2%
Volatility per year6.1%17.5%
Worst fall from a peak−6.8%−19.0%
Longest time below a peak245 days128 days
Sharpe ratio0.230.64
Sortino ratio0.350.94
Return per year ÷ worst fall0.180.54

Trade statistics

Round trips for the long side, the short side and both together

Backtest results by side
StatisticLongShortTotal
Trades17017
Won12012
Lost505
Win rate71%—71%
Net profit+247.25—+247.25
Profit factor1.35—1.35
Average trade+14.54—+14.54
Average trade return+0.15%—+0.15%
Average win79.03—79.03
Average loss140.23—140.23
Average win ÷ average loss0.56—0.56
Largest win120.23—120.23
Largest loss343.59—343.59
Most losses in a row202
Average days held2.9—2.9

Does it hold up on the last part?

The last 30% of the period, from Apr 27, 2026, is shaded on the chart and counted apart. A rule that only worked earlier was probably fitted to the past.

PartThis ruleBuy and holdTrades
First 70%+3.2%+19.0%8
Last 30%−0.7%+2.0%9

Monthly returns

This rule, month by month. The last column is buying and holding for the same year.

YearJanFebMarAprMayJunJulAugSepOctNovDecYearHold
20261.41.3-2.00.00.00.11.00.00.30.5-2.6−0.1%+6.8%
20250.00.00.00.00.00.00.00.00.00.80.90.8+2.6%+16.4%
20240.00.00.0%−2.3%

How the trades turned out

The number of trades in each band of return, after costs

  • under −20% 0
  • −20% to −10% 0
  • −10% to −5% 0
  • −5% to −2% 2
  • −2% to 0% 3
  • 0% to +2% 12
  • +2% to +5% 0
  • +5% to +10% 0
  • +10% to +20% 0
  • over +20% 0

What this result assumes

  • Account. Starts with 10,000 in cash, 100% of the account on each entry, one position at a time. Fractional shares are allowed.
  • Fills. A signal is read at a bar’s close and fills at the next bar’s open.
  • Costs. 0.05% of the amount traded on every buy and every sell, for commission and slippage. This run paid 176.14 in all.
  • Exits. The exit condition closes the position. A position still open at the end is valued at the last close.
  • Signals. 310 in this period. Studies are calculated on the bars before the period as well, so they are warmed up when it starts.
  • Prices. 500 daily bars, adjusted for splits. Dividends are not included, for this rule or for buying and holding.
  • Buy and hold. The same cash put into SPY at the first bar’s open, one cost, never sold.

These results are hypothetical. They come from applying a rule to past prices under the assumptions above, with the benefit of hindsight, and are not a record of real trading. Real orders can fill at other prices or not at all. Past results do not predict future results, and nothing here is investment advice. The Stock Master app calculates backtests differently, so its numbers will not match these.