Learn › Strategies › Drawdown Dip Buyer + 8% Target › XLP

Drawdown Dip Buyer + 8% Target on XLP

Consumer Staples Select Sector SPDR Fund: defensive consumer staples, a common risk-off equity sector. Backtest 2021-01-04 to 2026-10-02, $10,000 starting capital, computed by the same engine that runs live DeployQuant strategies.

Result: dip buyer on XLP turned $10,000 into $10,780 (7.8% total, 1.3% CAGR): it trailed buy-and-hold by 4.5% per year, with a maximum drawdown 8.0 points shallower than holding (8.0% vs 16.0%).

Over 5.74 years the dip buyer made one trade on XLP. It bought on 2022-05-19 at an adjusted price of $62.85 and sold on 2022-08-15 at $67.88, a gain of 8% after 88 days. The account went from $10,000 to $10,779.65, a CAGR of 1.32%, with a maximum drawdown of 8.03%. Buy-and-hold on the same fund returned 5.8% a year and ended at $13,819.40, so the template trailed by $3,039.75 at the end and by 4.48 points of CAGR.

The rules are short. The template waits for the fund to fall more than 10% below its 20-day high, buys with 98% of the sleeve at the next open, and rests a sell limit at 8% above the entry price. It has no stop. On a fund as quiet as the Consumer Staples Select Sector SPDR Fund, that entry condition is rare. The fund's own profile records one 10% drawdown event inside 20 sessions across 1,444 sessions, lasting 3 days. The strategy was invested 4.1% of the time.

The result is a single trade, so the usual statistics carry little weight. The win rate of 100% comes from one win, and the profit factor is not defined because there was no loss. The page is more useful as a record of what the rule does on a defensive fund: it nearly never fires, and when it does it makes the planned 8%. The dip buyer strategy page covers the same rules across all 59 funds.

1.3%CAGR
5.8%buy & hold CAGR
−8.0%max drawdown
0.44Sharpe ratio
1round trips
100%win rate
■ dip buyer   ■ buy & hold, $10,000 invested 2021-01-04

Year by year

Yeardip buyerbuy & hold
20210.0%18.1%
20227.8%−0.7%
20230.0%−0.9%
20240.0%12.0%
20250.0%1.5%
20260.0%5.6%

The one year that mattered

All of the return came in 2022, when the template gained 7.8%. The other five calendar years show 0%, because the account sat in cash. Buy-and-hold on XLP returned 18.1% in 2021, negative 0.7% in 2022, negative 0.9% in 2023, 12% in 2024, 1.5% in 2025 and 5.6% in 2026 so far.

The year-by-year gaps show where the template lost ground. It trailed by 18.1 points in 2021, by 12 points in 2024, by 5.6 points in 2026 and by 1.5 in 2025. It was ahead by 8.5 points in 2022 and by 0.9 in 2023. Those two years are the only ones where it beat the fund, and the 2023 lead exists only because holding the fund lost 0.9% while the template earned nothing.

The pattern is the usual one for a rule that waits for weakness. XLP had two strong years, 2021 and 2024, and the template was in cash for both. Staples rose most of the time over the window. The fund finished above its 200-day average on 75.1% of sessions, and it spent little time in the kind of fast decline that triggers the entry. A buy-the-dip rule earns its keep on funds that fall often and recover, and XLP did not fall often.

The 2022 trade itself began after the fund's own high of 2022-04-20. That is the peak of the fund's largest drawdown of 16.27%, which ended at the trough on 2022-10-07 and recovered on 2024-03-28. The template bought about a month after the peak and sold in August, before the fund made its low. The trade captured a rebound inside a decline that went on afterwards.

Month by month

YearJanFebMarAprMayJunJulAugSepOctNovDec
20210.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%
20220.0%0.0%0.0%0.0%4.9%−2.3%3.1%2.0%0.0%0.0%0.0%0.0%
20230.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%
20240.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%
20250.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%
20260.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%––

Where the gains landed by month

Every month outside one stretch shows 0%, which matches a single position held for 88 days. The four months with a result are 2022-05 at 4.87%, 2022-06 at negative 2.29%, 2022-07 at 3.12% and 2022-08 at 2.02%. The best month was May 2022 and the worst was June 2022.

The June loss deserves a note. After the 2022-05-19 entry the position gained in May, then lost in June. The drawdown table shows the account peaked on 2022-05-27, fell 8.03% to a trough on 2022-06-17, and recovered on 2022-07-28. That is 21 days down and 41 days back. The target then filled in August.

Buy-and-hold had a best month of 10.36% in 2021-12 and a worst of negative 8.31% in 2026-03. The template had no month near either.

Every trade

dip buyer on XLP made 1 closed round trip, an average hold of 88 days, an average winner of 8.00%. It held a position at the close on 4.1% of trading days.

EntryEntry priceExitExit priceReturnDays held
2022-05-19$62.852022-08-15$67.888.0%88

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 single trade

The entry on 2022-05-19 at $62.85 came after XLP's worst day of the window, a 6.45% fall on 2022-05-18. That day is the sharpest drop on the fund's worst-days list. The entry came the following session, after the 20-day drawdown condition was met.

The exit on 2022-08-15 at $67.88 is the resting limit at the entry price times 1.08. The return of 8% is exactly the target, because a limit order fills at the target or better, and no gap carried it higher. Median hold, shortest hold and longest hold are all 88 days, since there is one trade.

Prices here are adjusted for splits and dividends, so they are lower than the quotes printed at the time.

One trade does not tell how the rule behaves in general. A second similar signal could have landed in a decline that never reached the target. The strategy's own caveat says it rides a falling position down until the target is reached or the strategy is stopped. This run avoided that case because the fund came back to the target within three months.

Largest drawdowns

PeakLow pointDepthDays to lowRecoveredDays to recover
2022-05-272022-06-17−8.0%212022-07-2841
2022-08-012022-08-09−1.2%82022-08-123
2022-07-282022-07-29−0.7%12022-08-013

Buy-and-hold's deepest drawdown ran from 2022-04-20 to 2022-10-07 and reached −16.0%.

The drawdown the trade produced

The largest drawdown of the account was 8.03%, from the 2022-05-27 peak to the 2022-06-17 trough. That is smaller than XLP's own 16.27% maximum drawdown in the profile, and the buy-and-hold drawdown on the same sleeve basis was 15.99%. The template had a shallower drawdown by 7.96 points, but only because it held a position for 4.1% of the window.

Two further drawdowns were small. One was 1.17% from 2022-08-01 to 2022-08-09 and recovered on 2022-08-12. The other was 0.71% from 2022-07-28 to 2022-07-29. Both sit inside the same trade, in the weeks before the target filled.

Buy-and-hold had a long drawdown in 2022 that took 170 days to reach its low and 538 days to recover, on 2024-03-28. Two later ones were 9.52% starting 2026-02-27 with no recovery as of the last date, and 8.37% starting 2025-08-20 that recovered on 2026-01-14. The template was in cash through all of them.

The Sharpe ratio was 0.44 against 0.51 for holding. With one trade and long stretches of zero return, the number says little. The ratio is near the benchmark's because the account was flat most of the time and made a small steady gain in one burst.

With trading costs

The headline run fills at the bar price. These runs charge slippage on every fill.

Slippage per fillCAGRMax drawdownFinal valueSharpe
None (headline)1.3%−8.0%$10,7800.44
5 basis points1.3%−8.0%$10,7790.44
10 basis points1.3%−8.0%$10,7810.44

What 5 and 10 basis points did

The cost runs change almost nothing. At 5 basis points the CAGR stays at 1.32% and the end equity is $10,779.43. At 10 basis points the CAGR is 1.32% and the end equity is $10,780.76. The maximum drawdown is 8.04% in both runs, against 8.03% in the headline run.

The end equity at 10 basis points is slightly above the 5 basis point run. A small difference of that kind comes from how the engine rounds share counts and fills at the entry and exit prices, since a single round trip leaves little room for cost to compound. With two fills in the whole window, per-trade costs have two chances to matter, and at these sizes they do not.

A strategy that trades once cannot show cost sensitivity. The weekly template trades far more often and the weekly 7% target on XLP shows what cost runs look like when there are many fills.

Changing the parameters

VersionCAGRMax drawdownRound tripsWin rateFinal value
Published rules1.3%−8.0%1100%$10,780
-7% drawdown / 8% target5.4%−8.0%4100%$13,511
-15% drawdown / 8% target0.0%−0.0%0–$10,000
-10% drawdown / 6% target1.0%−8.0%1100%$10,584
-10% drawdown / 10% target1.6%−12.9%1100%$10,975

The parameter variants

The page runs four variations of the rule. They change the drawdown trigger or the target one at a time.

The trigger is the parameter that matters. A 7% trigger fired 4 times and won each time, and its CAGR of 5.38% is close to buy-and-hold's 5.8% with an end equity of $13,511.46 against $13,819.40. A 15% trigger never fired. The 10% default sits between them, with one trade.

The target changes the result in a smaller way. A 6% target filled sooner and left less on the table, so the CAGR fell to 0.99%. A 10% target waited longer and the maximum drawdown rose to 12.93%, which means the position fell further before it recovered. The end equity was higher at $10,974.95, and the CAGR was 1.63%, the highest of the one-trade runs.

Four variants on one fund are a sensitivity check and not a search. The 7% trigger had the best numbers, but it was picked after seeing the data and the sample is 4 trades. A 7% trigger on a fund whose own record shows a single 10% event in 20 sessions is a reasonable thing to expect to fire more often, and the data confirms that it did. It does not show the rule would hold up in a different period.

How XLP behaved

MeasureXLP
Data in this test2021-01-04 to 2026-10-02 (1444 sessions)
Total return, buy and hold40.3%
Annualized volatility13.3%
Deepest drawdown−16.3% (2022-04-20 to 2022-10-07)
Up days51.6%
Average daily range1.12%
Average overnight gap0.29%
Correlation to SPY0.47
Correlation to QQQ0.30
Correlation to TLT0.13
Sessions above the 200-day average75.1%
Crossings of the 200-day average73
Falls of 10% or more from a 20-day high1

Why XLP rarely triggers a dip rule

XLP is a consumer staples fund described as a defensive sector and a common risk-off equity holding. Its annualised volatility over the window was 13.28%, its average intraday range was 1.12% and its average overnight gap was 0.29%. The average up day was 0.64% and the average down day was negative 0.63%. A 10% fall from a 20-day high needs a run of down days far larger than any of those.

The fund's own record shows how rare that is. There was 1 event where the fund fell 10% from its 20-day high, lasting 3 days. The trade in this backtest began on that event. Compare that with other funds in the strategy's table: the strategy's median round trips across 59 funds was 2, and it beat buy-and-hold on 22 of 59.

The fund's total return was 40.33% with a CAGR of 6.08%, and it was down 16.27% at its worst. It was above its 200-day average on 75.1% of sessions and crossed the line 73 times, which is a lot of crossings for a fund that spent most of the time above it. Most of those crossings sit around the 2022 and 2023 sideways stretch, when the fund returned negative 0.75% and negative 0.89%.

Overnight gaps contributed little. The overnight share of the fund's return was 27.36% and the intraday share was 72.64%. A rule that buys the next open misses little of the gain on this fund, since most of the gain came during the session.

The rules

Wait for a 10% drawdown from the 20-day high, buy it, and take profit at +8%.

  1. WHEN the market opens · IF not invested AND the 20-day drawdown is worse than −10% · THEN buy with 98% of the sleeve
  2. 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 rules interact with this fund

The entry looks for a fall of more than 10% inside 20 sessions. On a fund with 13.28% annualised volatility, a 10% fall inside a month only happens in a break. The worst day, 2022-05-18 at negative 6.45%, was one of those breaks. The next worst days were negative 4.24% on 2025-04-04, negative 3.38% on 2022-09-13, negative 2.75% on 2022-03-08 and negative 2.72% on 2023-01-18. Only the first led to an entry.

RSI statistics point the same way. RSI(14) fell below 30 on 37 sessions. After those readings the median 5-day return was 0.59% against a baseline of 0.18%, and the median 20-day return was 2.44% against 0.73%. Oversold readings on XLP were followed by modest rebounds, which supports a dip rule in principle. The dip rule's 10% drawdown test is much stricter than RSI below 30 and fires far less often.

The target interacts with the rebound size. A median 20-day return of 2.44% after an RSI dip is well below 8%, so an 8% target needs a larger move than a typical rebound. In the one trade the fund climbed from $62.85 to $67.88 over 88 days, which took longer than the 20-day window the RSI statistics cover.

The 2022 entry also shows the missing stop. The position gave back part of its gain in June and was under water relative to its May peak for 21 days before it recovered. With no stop, the account waited and the target filled. On a fund that kept falling, the same rule would have held through the loss.

How this compares with the other strategies on XLP

The dip buyer ranked 7th of the 12 templates on XLP, with a CAGR of 1.32% and a maximum drawdown of 8.03%. The best was the RSI(2) snapback at 8.22% with an 11.06% drawdown. The RSI mean reversion template made 6.51% with a 9.64% drawdown, and the monthly cycle made 5.46% with 13.42%.

Behind the dip buyer were the SMA 10/50 trend at 1.21%, the EMA 12/26 trend at 1.19%, the 200-day regime filter at negative 0.81%, the 3-month momentum at negative 1.67% and the momentum breakout at negative 1.87%. In between were the weekly 7% target at 2.37%, golden cross at 2.05% and trend + trailing stop at 1.82%.

The ordering fits the fund. Rules that buy weakness did best, and the two RSI templates were at the top. Rules that follow trends did worst or middling, because XLP had long flat stretches. The dip buyer is a weakness rule with a very strict trigger, so it earned a small positive result with the shallowest drawdown among the templates that traded.

Among sector funds the dip buyer ranked 31st of 59 for the strategy overall, and last of the six funds in its category table. The category peers were SOXX at 27.48% with a 39.25% drawdown and 19 round trips, XLK at 7.85%, XLF at 6.78%, VOX at 4.06% and XLY at 4.01%. The strategy's median CAGR across all 59 funds was 1.33%, so XLP at 1.32% was close to the overall median and well below the sector median of 6.78%.

SOXX shows the other side of the template. It is a volatile semiconductor fund, the 10% dip trigger fires often there, and the result is large and comes with a deep drawdown. XLP is the opposite: a result near the median and a shallow drawdown.

What this test does not show

One trade is a sample of one. The result has no confidence interval to speak of, and a different start date could have given zero trades or a trade that did not reach its target. The window is 2021-01-04 to 2026-10-02 and the headline run has no fees or slippage. The rules decide once per day, and fills happen on minute bars. Buy-and-hold puts 98% of the account in at the first open, as the template does.

The results are hypothetical, and they describe what the rule did on this fund over this window.

Run dip buyer on XLP yourself, free →

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 XLP?

Over 2021-01-04 to 2026-10-02, dip buyer on XLP returned 1.3% annualized vs 5.8% for buy-and-hold: it trailed buy-and-hold by 4.5% per year, with a maximum drawdown 8.0 points shallower than holding (8.0% vs 16.0%).

How many trades did it make?

1 completed round trips over 5.7 years (2 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.

How did the dip buyer do on XLP?

It made one trade, bought on 2022-05-19 at $62.85 and sold on 2022-08-15 at $67.88, an 8% gain. The account ended at $10,779.65 for a CAGR of 1.32% and a maximum drawdown of 8.03%. Buy-and-hold returned 5.8% a year and ended at $13,819.40.

Why did the strategy only trade once on XLP?

The entry needs a drop of more than 10% from the 20-day high, and XLP rarely moves that far. Its annualised volatility was 13.28% and its profile records 1 such event in 1,444 sessions. The template was invested 4.1% of the time.

What happens if the price keeps falling after the dip buyer enters?

The template has no stop-loss. It holds until the +8% limit order fills or the strategy is stopped. In this run the fund recovered to the target in 88 days, with an 8.03% drawdown on the account along the way.

Would a different trigger have changed the result on XLP?

A 7% trigger made 4 trades, all winners, for a CAGR of 5.38% and end equity of $13,511.46. A 15% trigger made no trades. The default 10% trigger made one trade, and a 6% or 10% target moved the CAGR to 0.99% or 1.63%.

Do trading costs matter for this strategy on XLP?

Very little in this run. At 5 basis points the CAGR was 1.32% with end equity of $10,779.43, and at 10 basis points it was 1.32% with $10,780.76. One round trip leaves little room for costs to build up.

Which strategy did best on XLP?

The RSI(2) snapback had the highest CAGR of the 12 templates at 8.22% with an 11.06% maximum drawdown. The RSI mean reversion template followed at 6.51%. The dip buyer ranked 7th at 1.32%.

Related

Drawdown Dip Buyer + 8% Target on all 59 ETFsfull results table All strategies on XLP12 templates compared RSI(14) Mean Reversion on XLPsame ETF, different rulesRSI(2) Dip Snapback on XLPsame ETF, different rules

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.