Drawdown Dip Buyer + 8% Target on XLK
Technology Select Sector SPDR Fund: S&P 500 technology stocks, the sector behind most recent bull runs. Backtest 2021-01-04 to 2026-10-02, $10,000 starting capital, computed by the same engine that runs live DeployQuant strategies.
The rule on XLK needs a 10% slide from the highest price of the past 20 sessions. The next open brings a buy using 98% of the sleeve, and a limit order then waits 8% over the entry. There is no stop. From 2021-01-04 to 2026-10-02 the rule turned $10,000 into $15,435, a CAGR of 7.85% with a maximum drawdown of 27.88%. Buy-and-hold on XLK turned the same $10,000 into $31,425, a CAGR of 22.07% with a drawdown of 32.96%.
The rule closed 5 round trips and every one was a winner. It also holds a sixth position that was still open on the last day. The win rate of 100% is a property of the exit design and not of skill: the only way to close a trade is the +8% limit, so each closed trade returns close to 8% by construction. What varies is the time it takes. One trade took 494 days and another took 5.
The strategy was invested on 36.6% of days. In the rest of the window it held cash and earned nothing in the backtest. That is the main reason it trails the fund, which returned 226.13% in total over the window. The dip buyer won against buy-and-hold in one calendar year, 2022, and lost in the other five.
The same rule ranks 11th of the 12 templates on XLK by CAGR, and XLK ranks 11th of 59 funds for this rule. Across all 59 funds the rule's median CAGR is 1.33%, and 7.85% beats it. Below are the years, the six trades, the drawdowns, the cost runs and the parameter variants, followed by a look at how XLK's own habits shaped each. Everything here comes from one window, with decisions made daily and no fees charged in the headline run.
Year by year
| Year | dip buyer | buy & hold |
|---|---|---|
| 2021 | 0.0% | 36.1% |
| 2022 | −19.5% | −27.2% |
| 2023 | 34.0% | 54.6% |
| 2024 | 7.8% | 21.3% |
| 2025 | 16.2% | 24.3% |
| 2026 | 14.3% | 38.9% |
Why 2021 was flat and 2022 was a loss
The year-by-year result is 0% in 2021, -19.5% in 2022, 34% in 2023, 7.8% in 2024, 16.2% in 2025 and 14.3% in 2026 to date. Buy-and-hold made 36.1%, -27.2%, 54.6%, 21.3%, 24.3% and 38.9%.
2021 shows 0% in every month. XLK rose 36.99% that year without once dropping 10% below a 20-day high. No entry fired, and the sleeve sat in cash. The strategy missed all of a 36.1% buy-and-hold year. The month-by-month table is a row of zeros for the whole year.
The first entry came on 2022-01-21 at an adjusted price of $75.81, after the fund had already begun to fall from its 2021-12-27 peak. The buy was a reaction to a 10% fall, and the fall continued. XLK's drawdown that year ran to 2022-10-12, and the strategy sat in the trade through it with no stop. The year's result of -19.5% was shallower than buy-and-hold's -27.2%, which is the one year the rule beat the fund. The gap in its favour that year was 7.7 points.
The trade finally exited on 2023-05-30 at $81.87, a gain of 7.99% after 494 days. Over those 494 days the position went through a loss of more than a quarter of the sleeve. A strategy that reports a 100% win rate had, inside that one winning trade, a 27.88% equity drawdown.
2023 returned 34%, and January, March and May were the big months at 9.03%, 10.59% and 10.82%. Those gains came from the same position recovering, and the exit in May ended the exposure. After 2023-05-30 the rule sat in cash again until 2024-07-26.
In 2024 it returned 7.8% against 21.3% for the fund. It was invested only from late July to mid October, and its months were 1.39% in July, 0.69% in August, 2.61% in September and 2.93% in October. The fund's return in 2025 was 24.3% and the rule's was 16.2%. In 2026 the fund returned 38.9% and the rule 14.3%. Each year the rule was out of the market for most of the gains, because a 10% dip never arrived while XLK climbed.
Month by month
| Year | Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2021 | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% |
| 2022 | 3.1% | −4.8% | 3.3% | −10.8% | −0.7% | −9.0% | 13.1% | −6.1% | −11.6% | 7.4% | 6.1% | −8.0% |
| 2023 | 9.0% | 0.4% | 10.6% | −0.1% | 10.8% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% |
| 2024 | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 1.4% | 0.7% | 2.6% | 2.9% | 0.0% | 0.0% |
| 2025 | 0.0% | 0.0% | −3.9% | 1.6% | 10.5% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 4.7% | 2.9% |
| 2026 | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 8.9% | −7.7% | 6.2% | 4.9% | 2.0% | – | – |
What the monthly returns show
The best month was July 2022 at 13.07%, a month in which the position was already open and the fund bounced. The worst month was September 2022 at -11.63%, which is close to buy-and-hold's worst month of -11.65% in the same month. In those 2022 months the strategy tracked the fund closely, since 98% of the sleeve was invested.
Outside 2022 and early 2023, most months show 0.0%. The rule is binary. It is either in cash and returns nothing, or it holds the fund at near-full size and returns what the fund returns. The few active spells were 2022-01 to 2023-05, 2024-07 to 2024-10, 2025-03 to 2025-05, 2025-11 to 2025-12 and 2026-06 onward.
March 2025 shows -3.93% and April 2025 shows 1.57%. This is the entry on 2025-03-07 at $106.73, followed by the early April 2025 low. The position was down when XLK fell to its 2025-04-08 trough, then recovered and exited on 2025-05-13 at $115.27. May 2025 was the second best month in the record at 10.47%.
July 2026 shows -7.71% after June's 8.91%. June holds the 8% win on 2026-06-16 and the next entry the following day. The position opened on 2026-06-17 at $188.18 was marked at a gain of 6.2% on the last close, and its July dip is the -7.71%. The monthly series ends with 2.05% for October 2026 to date.
Because the strategy is out of the market in so many months, its monthly returns have less spread than the fund's. The fund's best month was April 2026 at 19.71%, and the strategy was not invested for that move. The cost of waiting for a dip is that the biggest up months arrive when the rule has no position.
Every trade
dip buyer on XLK made 5 closed round trips and one position still open at the end of the test, an average hold of 133 days, an average winner of 8.00%. It held a position at the close on 36.6% of trading days.
| Entry | Entry price | Exit | Exit price | Return | Days held |
|---|---|---|---|---|---|
| 2022-01-21 | $75.81 | 2023-05-30 | $81.87 | 8.0% | 494 |
| 2024-07-26 | $106.43 | 2024-10-14 | $114.94 | 8.0% | 80 |
| 2025-03-07 | $106.73 | 2025-05-13 | $115.27 | 8.0% | 67 |
| 2025-11-21 | $135.81 | 2025-12-08 | $146.68 | 8.0% | 17 |
| 2026-06-11 | $177.58 | 2026-06-16 | $191.79 | 8.0% | 5 |
| 2026-06-17 | $188.18 | open | – | 6.2% | – |
Prices are adjusted for splits and dividends, so they sit below the quotes printed at the time. An open position is marked at the last close.
The six trades
The trade list has five closed trades and one open one. They are worth reading one at a time because each one is a large share of the result.
The first, entered 2022-01-21 at $75.81 and closed 2023-05-30 at $81.87, returned 7.99% and lasted 494 days. It is the only trade that ran through the 2022 bear market. It returned the least of the winners and held longest, and the adjusted exit price was only 8% above the entry although the fund's price had fallen well below the entry in between.
The second, entered 2024-07-26 at $106.43 and closed 2024-10-14 at $114.94, took 80 days. The third, entered 2025-03-07 at $106.73 and closed 2025-05-13 at $115.27, took 67 days. The fourth, entered 2025-11-21 at $135.81 and closed 2025-12-08 at $146.68, took 17 days. The fifth, entered 2026-06-11 at $177.58 and closed 2026-06-16 at $191.79, took 5 days. Each returned 8%.
The sixth entered 2026-06-17 at $188.18, a day after the fifth closed. It is open and marked at 6.2%. That quick re-entry shows the condition from the entry rule. The fund had fallen 10% from a 20-day high again as soon as the previous trade closed, which reflects how far the late-June 2026 swings carried it.
The median trade returned 8% and the median hold was 67 days. The longest hold was 494 days and the shortest was 5. The average hold was 132.6 days, which the 494-day trade pulls up. Without that one, the other four closed trades averaged much shorter holds, and the position was in the market for periods from a few days to under three months.
The trades are spread by exit year: 1 in 2023, 1 in 2024, 2 in 2025 and 1 in 2026. No exit fell in 2022 or 2021, and that is why the dip buyer's 2022 return was entirely mark-to-market loss on an open trade. With only five closed trades, the result depends heavily on the timing of each one.
Largest drawdowns
| Peak | Low point | Depth | Days to low | Recovered | Days to recover |
|---|---|---|---|---|---|
| 2022-02-09 | 2022-10-12 | −27.9% | 245 | 2023-05-26 | 226 |
| 2025-03-25 | 2025-04-08 | −17.2% | 14 | 2025-05-12 | 34 |
| 2026-06-22 | 2026-07-29 | −12.9% | 37 | 2026-09-21 | 54 |
Buy-and-hold's deepest drawdown ran from 2021-12-27 to 2022-10-12 and reached −33.0%.
Drawdowns while holding a position with no stop
The deepest drawdown was 27.88%, from a peak on 2022-02-09 to a low on 2022-10-12, which took 245 days. It recovered on 2023-05-26, 226 days later, a few days before the position exited. The fund's own worst fall was 32.96% from 2021-12-27 to the same 2022-10-12 low, and it recovered on 2023-06-15.
The strategy's drawdown starts later than the fund's because it only entered on 2022-01-21 and its equity peak came on 2022-02-09. It was 5.08 points shallower than holding. Cash in 2021 did not help it avoid the fall, because the entry came after the fall began and the rule had no exit other than the profit target.
The second drawdown was 17.2% from 2025-03-25 to 2025-04-08, which took 14 days, and it recovered by 2025-05-12 after 34 days. The fund's matching fall was 25.29% from 2025-02-18, so here the strategy's depth was lower. It entered on 2025-03-07, after the fund had already dropped from its February high, and so it missed the first part of the fall.
The third was 12.91% from 2026-06-22 to 2026-07-29, recovered on 2026-09-21. This one belongs to the open position at $188.18 and shows what the lack of a stop does. The trade was marked a loss for 37 days and it took 54 more to recover.
All three drawdowns come from holding a position with no stop. The strategy description carries this warning. A dip that goes on falling takes the position down with it, and only the +8% target or a manual stop ends it. The 2022 trade shows the extreme case, where the target took 494 days.
The Sharpe ratio was 0.50 for the rule and 0.95 for buy-and-hold. The rule's drawdown was a little shallower, and its return was much lower, so the return per unit of risk was lower too.
With trading costs
The headline run fills at the bar price. These runs charge slippage on every fill.
| Slippage per fill | CAGR | Max drawdown | Final value | Sharpe |
|---|---|---|---|---|
| None (headline) | 7.8% | −27.9% | $15,435 | 0.50 |
| 5 basis points | 7.5% | −27.9% | $15,107 | 0.48 |
| 10 basis points | 7.4% | −27.9% | $15,094 | 0.48 |
What slippage did to the result
The headline run fills at the bar price with no fees. The cost runs charge slippage on every fill. At 5 basis points the CAGR fell from 7.85% to 7.45%, and the final value from $15,435 to $15,107. At 10 basis points the CAGR was 7.44% and the final value was $15,094. The maximum drawdown stayed at about 27.9% in all three runs.
The drop from the headline to the 5 basis point run was larger than the drop from 5 to 10. That is a feature of the fills: this rule makes 11 fills in the window, and the 8% exit is a resting limit order. A resting limit order fills at its price in the engine, so slippage does not hit the exit as hard as it would hit a market order. The facts do not break out the effect by fill type, so that reading is an explanation of the pattern, and the data do not isolate it.
With 11 fills, the rule is nowhere near cost-sensitive. A rule that trades 100 times would show a much larger gap between the headline and the cost runs. For the dip buyer on XLK, the cost of trading is small, and the cost of being out of the market is large.
Changing the parameters
| Version | CAGR | Max drawdown | Round trips | Win rate | Final value |
|---|---|---|---|---|---|
| Published rules | 7.8% | −27.9% | 5 | 100% | $15,435 |
| -7% drawdown / 8% target | 15.6% | −27.8% | 11 | 100% | $23,013 |
| -15% drawdown / 8% target | 4.1% | −7.7% | 3 | 100% | $12,603 |
| -10% drawdown / 6% target | 6.3% | −27.9% | 6 | 100% | $14,236 |
| -10% drawdown / 10% target | 8.5% | −27.9% | 5 | 100% | $15,969 |
What the parameter variants show
Four variants change one parameter at a time. The published rules use a 10% drawdown trigger and an 8% target.
A shallower trigger of 7% with the same 8% target produced a CAGR of 15.62%, a final value of $23,013 and a drawdown of 27.82%, with 11 trades and 11 wins. This is double the published CAGR of 7.85%, and it comes from entering sooner and more often. In a strong sector such as XLK, which rose 226.13% over the window, a 7% dip occurred many times, and each one gave an entry.
A deeper trigger of 15% gave a CAGR of 4.11%, a drawdown of 7.7% and 3 trades, all wins. It is the least risky variant, because a 15% fall inside 20 sessions is rare and the rule held cash for most of the window. It earned the least.
Changing the target with the 10% trigger gave smaller moves. A 6% target gave a CAGR of 6.35%, a final value of $14,236 and 6 trades. A 10% target gave 8.49%, a final value of $15,969 and 5 trades. The drawdown stayed at 27.88% in both because it comes from the 2022 trade, which had not reached either target for a long time. A lower target helped little, since the rule's trouble was the length of the first trade and not the size of the target.
The drawdown column is nearly unchanged except for the 15% variant. The unchanged 27.88% across the 6% and 10% target runs shows the 2022 trade dominated the risk. The result is sensitive to the trigger more than to the target, and the 7% variant's 11 trades give a larger sample than the 5 closed trades of the published rules.
These variants are single-parameter changes tested on the same window. The best one here is not a recommendation, since choosing a parameter after seeing the result fits it to this stretch of XLK.
How XLK behaved
| Measure | XLK |
|---|---|
| Data in this test | 2021-01-04 to 2026-10-02 (1444 sessions) |
| Total return, buy and hold | 226.1% |
| Annualized volatility | 25.1% |
| Deepest drawdown | −33.6% (2021-12-27 to 2022-10-12) |
| Up days | 55.2% |
| Average daily range | 1.77% |
| Average overnight gap | 0.69% |
| Correlation to SPY | 0.91 |
| Correlation to QQQ | 0.97 |
| Correlation to TLT | 0.07 |
| Sessions above the 200-day average | 76.5% |
| Crossings of the 200-day average | 22 |
| Falls of 10% or more from a 20-day high | 30 |
How XLK behaved
XLK is the Technology Select Sector SPDR Fund, and its annualized volatility was 25.13%. Its total return was 226.13%, a CAGR of 22.86%, and its maximum drawdown was 33.58% from 2021-12-27 to 2022-10-12, with recovery on 2023-06-15. The longest drawdown lasted 368 sessions.
The rule needs two things from a fund: dips of 10% or more, and recoveries of 8% from the entry price. Falls of 10% or more from a 20-day high happened 30 times on XLK, over 96 days in all. That is a lot of days in the dip state for a fund that gained so much, and yet the strategy entered on only six occasions. The reason is that entries need the rule to be flat, so while one position is open, new dips are ignored.
XLK rose on 55.23% of days. Up days averaged 1.15% and down days averaged -1.21%. The average daily range was 1.77%, and the average overnight gap was 0.69%. XLK stayed over its 200-day average for 76.47% of sessions and passed through it 22 times.
XLK's best day was 2025-04-09 at 13.37%, a session that fell inside the third trade. Its worst days were 2025-04-03 at -6.76%, 2026-06-05 at -6.67% and 2025-04-04 at -6.57%. The 2026-06-05 fall falls just before the entry on 2026-06-11. The April 2025 days are the drop the third trade sat through.
RSI(14) dipped under 30 on 15 sessions. The median return over the next 5 days was 4.01% and over 20 days 4.4%, compared with baselines of 0.5% and 1.9%. A dip in XLK has been followed by a rebound more often than the baseline suggests, which is the idea the rule relies on. The 8% target is larger than the 5-day median and sits closer to the multi-week rebounds.
XLK's correlation to QQQ was 0.97 and to SPY 0.91, and its beta to SPY was 1.39. It is a high-beta fund. Among sector peers, the dip buyer returned 27.48% a year on SOXX with 19 round trips, 6.78% on XLF, 4.06% on VOX, 4.01% on XLY and 1.32% on XLP. XLK sits second among those six. The category median CAGR for the rule was 6.78%.
The rules
Wait for a 10% drawdown from the 20-day high, buy it, and take profit at +8%.
- WHEN the market opens · IF not invested AND the 20-day drawdown is worse than −10% · THEN buy with 98% of the sleeve
- WHILE invested · a managed limit order rests at entry price × 1.08
A rule-based buy-the-dip. The entry is a measured 10% drawdown inside the trailing 20 sessions, and the exit is a resting +8% limit order. Between signals the sleeve sits in cash, so the template can wait months for an entry.
Good for: assets that sell off hard and recover; it trades volatility without chasing strength.
Watch out: no stop-loss: if the dip keeps falling, the position rides it down until the +8% target is reached or the strategy is stopped. Trade counts are low, so single trades dominate results.
How the rule interacts with XLK
The rule fits a fund that sells off hard and recovers, and XLK did that. The fit has limits.
The entry depends on a 10% fall from a 20-day high. In a year when the fund drifts up with small pullbacks, as in 2021, the rule never starts. In a year with a long slide, as in 2022, the rule buys early and holds for a long time. The conditions that work are sharp, brief selloffs followed by recoveries, as in 2024, 2025 and mid 2026.
Compared with the other 11 templates on XLK, the dip buyer is near the bottom. At the top, the monthly cycle made 20.86% and the weekly 7% target made 20.39%. Next came the 200-day regime filter at 16.81% with a 19.72% drawdown and the golden cross at 15.33% with 19.6%. The RSI(2) snapback made 12.11% and the trend plus trailing stop rule 12.49%. Four more sat between 8.74% and 11.62%: RSI mean reversion at 8.74%, the SMA 10/50 trend at 9.47%, the EMA 12/26 trend at 9.84% and the momentum breakout at 11.62%. Only the 3-month momentum rule, at 6.06%, was lower.
The pattern is clear in the drawdown column. The regime filter and golden cross held XLK while it trended and stepped aside in 2022, so they kept most of the gain with drawdowns near 20%. The dip buyer used the opposite logic, buying weakness, and XLK's weakness in 2022 lasted too long for it.
The other funds in the strategy's grid are on the dip buyer hub, and the full set of templates on this fund is on the XLK page. The peers in the sector category are SOXX, XLF, VOX, XLY and XLP.
Where the test stops: a single 5.74-year window, five closed trades, once-a-day decisions, a headline run without fees, and a period that was kind to technology. The open position at the end is marked at the last close and not realized.
Build it from blocks (or type it in English), backtest it on 5.7 years of minute data in seconds, tweak any parameter, then paper trade it on live data. No card, no broker needed to start.
Frequently asked questions
Did dip buyer beat buy-and-hold on XLK?
Over 2021-01-04 to 2026-10-02, dip buyer on XLK returned 7.8% annualized vs 22.1% for buy-and-hold: it trailed buy-and-hold by 14.2% per year, with a maximum drawdown 5.1 points shallower than holding (27.9% vs 33.0%).
How many trades did it make?
5 completed round trips over 5.7 years (11 fills), with 100% of round trips closing profitably.
What counts as a 10% dip?
The engine computes the worst peak-to-trough move within the last 20 sessions. When it is deeper than −10%, the entry condition is met. Both the window and the threshold are editable parameters.
Did the dip buyer beat buy-and-hold on XLK?
No. It returned a CAGR of 7.85% against 22.07% for buy-and-hold, and ended at $15,435 against $31,425. It was ahead in 2022 only, when it lost 19.5% and the fund lost 27.2%.
How many trades did the dip buyer make on XLK?
It closed 5 round trips and had a sixth open at the end, with 11 fills in all. Every closed trade was a winner at about 8%, and the open one was marked at 6.2%.
Why did it return 0% in 2021?
XLK rose 36.99% in 2021 without ever falling 10% from a 20-day high. The entry rule never fired, so the sleeve stayed in cash for the year. Buy-and-hold made 36.1% that year.
Is a 100% win rate a good sign here?
The win rate comes from the exit. The only way out is the +8% limit, so each closed trade returns about 8%. The first trade held for 494 days through a 27.88% drawdown before it exited with a gain of 7.99%.
What happens if the dip keeps falling?
The position stays open, because the rule has no stop. In 2022 the entry on 2022-01-21 at $75.81 sat through the fall to the 2022-10-12 low and exited on 2023-05-30 at $81.87.
Which parameter change helped most on XLK?
A 7% trigger instead of 10% gave a CAGR of 15.62% with 11 trades. A 15% trigger gave 4.11% with 3 trades and a drawdown of 7.7%. These are single-window results on one fund, so they show sensitivity and do not settle a choice.
How did trading costs change the result?
At 5 basis points of slippage per fill the CAGR was 7.45%, and at 10 basis points it was 7.44%. With only 11 fills, the effect of costs is small.
Related
Backtests are hypothetical, computed by DeployQuant's engine on minute-resolution consolidated US market data (2021-01-04 to 2026-10-02, $10,000 starting capital, no margin, no fees or slippage in the headline run; buy-and-hold puts 98% of the account in at the first open, as the templates do) and do not guarantee future results. Nothing on this page is investment advice. Live trading involves risk of loss.