Trading rules tested on XLK: did any beat holding after costs?
Over the last 10 years on XLK (2016-11-30 to 2026-11-30), 0 of 42 popular trading rules ended ahead of simply holding XLK (+732.0%) after modelled costs. The closest was EMA 9 crosses EMA 21 at +426.9%; the furthest behind was RSI(14) below 20 at +28.7%. Run on 2026-12-01 with the estockes strategy test; a historical simulation, not advice.
42 rules on XLK, closest to holding first
Together the 42 rules made 2839 trades on XLK; 13 of them had too few trades to judge on their own. On 38 of the 42 the rule's worst drop was shallower than holding's (-33.1%), usually because the rule was out of the market most of the time. Luck Test: likely real timing on 1, could be luck on 4, looks like luck on 24, too few trades on 12; pending on 1.
| Rule | Verdict | Trades | After costs | Vs holding | Luck Test |
|---|---|---|---|---|---|
| EMA 9 crosses EMA 21 | Holding did better | 42 | +426.9% | 305.1 pts behind | looks like luck, beat 57% |
| EMA 8 crosses EMA 21 | Holding did better | 48 | +378.3% | 353.7 pts behind | looks like luck, beat 64% |
| Price crosses its 50-day average | Holding did better | 79 | +374.9% | 357.1 pts behind | looks like luck, beat 54% |
| EMA 50 crosses EMA 200 | Not enough trades | 3 | +370.2% | 361.8 pts behind | too few trades |
| Price crosses its 200-day average | Not enough trades | 22 | +333.3% | 398.7 pts behind | too few trades |
| Golden cross (50-day over 200-day) | Not enough trades | 4 | +313.1% | 418.9 pts behind | too few trades |
| Two down days in a row | Holding did better | 217 | +278.3% | 453.7 pts behind | could be luck, beat 89% |
| Price crosses its 21-day EMA | Holding did better | 139 | +274.7% | 457.3 pts behind | looks like luck, beat 75% |
| Price crosses its 100-day average | Holding did better | 55 | +264.4% | 467.6 pts behind | looks like luck, beat 29% |
| Price crosses its 20-day average | Holding did better | 127 | +238.5% | 493.5 pts behind | looks like luck, beat 51% |
| 10-day average crosses the 50-day | Not enough trades | 29 | +235.5% | 496.5 pts behind | too few trades |
| 20-day average crosses the 50-day | Not enough trades | 25 | +217.1% | 514.9 pts behind | too few trades |
| MACD crosses zero | Holding did better | 35 | +203.1% | 528.9 pts behind | looks like luck, beat 23% |
| EMA 20 crosses EMA 50 | Not enough trades | 17 | +193.3% | 538.7 pts behind | too few trades |
| Price crosses its 150-day average | Holding did better | 30 | +189.4% | 542.6 pts behind | looks like luck, beat 13% |
| Up 10% in three months | Holding did better | 59 | +159.4% | 572.6 pts behind | looks like luck, beat 51% |
| Down 2% in a day | Only in the past | 119 | +153.4% | 578.6 pts behind | looks like luck, beat 79% |
| MACD crosses its signal line below zero | Holding did better | 45 | +144.9% | 587.1 pts behind | looks like luck, beat 72% |
| MACD crosses its signal line | Holding did better | 107 | +141.4% | 590.6 pts behind | looks like luck, beat 31% |
| Exit at the death cross | Not enough trades | 5 | +139.5% | 592.5 pts behind | too few trades |
| Three down days in a row | Holding did better | 112 | +131.6% | 600.5 pts behind | looks like luck, beat 62% |
| Close above the upper Bollinger band | Holding did better | 45 | +129.5% | 602.5 pts behind | looks like luck, beat 35% |
| Price crosses its 10-day average | Holding did better | 214 | +127.8% | 604.2 pts behind | looks like luck, beat 29% |
| Lower Bollinger band, exit at the middle | Holding did better | 40 | +119.5% | 612.5 pts behind | could be luck, beat 89% |
| Down 5% in a week | Holding did better | 53 | +106.7% | 625.3 pts behind | looks like luck, beat 28% |
| Three down days, above the 200-day average | Holding did better | 86 | +103.8% | 628.2 pts behind | looks like luck, beat 60% |
| Down 10% in a month | Not enough trades | 15 | +99.5% | 632.5 pts behind | too few trades |
| Down 3% in a day | Holding did better | 53 | +98.8% | 633.2 pts behind | likely real timing, beat 99% |
| RSI(14) below 30 | Not enough trades | 12 | +85.6% | 646.4 pts behind | too few trades |
| Five down days in a row | Not enough trades | 17 | +85.2% | 646.8 pts behind | too few trades |
| Close below the lower Bollinger band | Holding did better | 49 | +81.7% | 650.3 pts behind | could be luck, beat 85% |
| RSI(2) below 10, above the 200-day average | Holding did better | 76 | +68.8% | 663.2 pts behind | looks like luck, beat 74% |
| RSI(2) below 5 | Holding did better | 66 | +62.1% | 669.9 pts behind | looks like luck, beat 45% |
| RSI(14) below 30, above the 200-day average | Not enough trades | 6 | +61.3% | 670.7 pts behind | too few trades |
| 10% below the 200-day average | Not enough trades | 10 | +61.2% | 670.8 pts behind | too few trades |
| Three up days in a row | Holding did better | 183 | +52.2% | 679.8 pts behind | looks like luck, beat 11% |
| MACD cross above the 200-day average | Only in the past | 90 | +50.1% | 681.9 pts behind | looks like luck, beat 11% |
| RSI(2) below 10 | Holding did better | 128 | +46.8% | 685.2 pts behind | looks like luck, beat 62% |
| RSI(2) above 90 | Holding did better | 252 | +44.9% | 687.1 pts behind | looks like luck, beat 7% |
| Four down days in a row | Only in the past | 39 | +43.5% | 688.5 pts behind | could be luck, beat 83% |
| RSI(14) above 70 | Holding did better | 86 | +30.1% | 702.0 pts behind | looks like luck, beat 21% |
| RSI(14) below 20 | Not enough trades | 0 | +28.7% | 703.3 pts behind | Luck Test pending |
Limits of this test
- It is a historical simulation of 10 years of daily data, not a forecast and not advice. A rule that did well in this window can do badly in the next.
- Survivorship: only tickers listed today can be tested, so companies that failed or were delisted are missing, which flatters any rule tested on stocks.
- The recent window matters: ten years that include one long rally favour holding, and a different decade could rank the rule differently. Run the test on another window to see.
- Fixed settings for every ticker. Changing the period or the exit changes the result, and trying many settings until one looks good is how false results are made. That is also why the Luck Test bar rises with the number of results shown.
Other tickers
Questions
Trading rules tested on XLK: did any beat holding after costs?
Over the last 10 years on XLK (2016-11-30 to 2026-11-30), 0 of 42 popular trading rules ended ahead of simply holding XLK (+732.0%) after modelled costs. The closest was EMA 9 crosses EMA 21 at +426.9%; the furthest behind was RSI(14) below 20 at +28.7%. Run on 2026-12-01 with the estockes strategy test; a historical simulation, not advice.
How was it tested?
Each number comes from one run of the estockes strategy test (public API), fetched on 2026-12-01: daily bars, signal on the close, fill at the next open, costs on every fill, idle cash earning the 3-month Treasury bill rate, compared with holding the same ticker over the same window.