Home / Strategies / Xylem Inc. (XYL)
Stock · strategy report

Does anything beat buy & hold on Xylem Inc. (XYL)?

Every setup we tested on Xylem Inc. (XYL) — ranked out-of-sample, corrected for multiple testing, and forward-tracked in public from the day this page published. The honest answer is the headline.

NOTHING BEAT BUY-AND-HOLD

No setup beat simply holding once tested honestly. We say so plainly.

Its best setup only beat buy-and-hold in one window — a regime artifact, not a strategy. Buy-and-hold benchmark: +12.4% CAGR over 14.6 years (+0.4% CAGR in the out-of-sample window).

Educational research from historical backtests — not investment advice. Past performance does not predict future results.

XYL: we tested 735 setups and none beat simply holding Xylem Inc.

For Xylem Inc. (XYL), we ran 735 indicator configurations against a plain buy-and-hold benchmark, and none of them earned the right to replace it. Individual stocks carry idiosyncratic risk — earnings surprises, guidance changes, sector rotation — that indicators built on price history cannot see coming. The best-looking setup, LSMA 200 Trend on the daily timeframe, ranked at the top in-sample but delivered an out-of-sample Sharpe of 1.02, short of our hurdle of 1.73. Buy-and-hold returned +12.4% annualized over the test period; the top strategies mostly captured pieces of that same move while adding trading friction.

How to read this honestly: when you test 735 setups and keep the best one, something will always look impressive by chance alone. That is why we require the survivor to clear 1.73 out of sample. LSMA 200 Trend managed 1.02, with out-of-sample alpha of +14.6% across 4.4 years and 76 trades, and only 45.3% of everything we tested beat the benchmark on unseen data — roughly what luck would produce. None of this predicts anything: the regime that generated these numbers can shift, and single stocks shift faster than most. Treat this page as a record of what failed under honest testing, not a forecast.

Every figure above is computed from our own backtests — nothing is estimated or invented. Hypothetical results; not investment advice.

Failure exhibit

The least-bad setups — shown with their failure numbers

Nothing here earned a verdict — these are the best of a losing field, published so you can see exactly how "best" still failed.

#1 · Trend · Daily

LSMA 200 Trend

Mechanical rule (exactly as backtested): VARIANT — price above a rising LSMA(200). Signals are evaluated at daily-bar close, the position changes on the NEXT bar, 0.08% cost per side, long/flat only — no leverage, no shorting.

+247.9%
Total return
0.66
Sharpe
-23.8%
Max DD
40.8%
Win rate
76
Trades
-3.5%
vs B&H

Out-of-sample (last ~30% of the window, never used to pick this setup): Sharpe 1.02 · alpha +14.6% · 11 trades over 4.4 yrs.

#2 · Volatility · Daily

Choppiness Index

Mechanical rule (exactly as backtested): Trade trend only when the market isn't choppy — long when CI < 38 and price > EMA. Signals are evaluated at daily-bar close, the position changes on the NEXT bar, 0.08% cost per side, long/flat only — no leverage, no shorting.

+25.8%
Total return
0.26
Sharpe
-27.8%
Max DD
51.4%
Win rate
70
Trades
-10.8%
vs B&amp;H

Out-of-sample (last ~30% of the window, never used to pick this setup): Sharpe 1.01 · alpha +7.0% · 18 trades over 4.4 yrs.

#3 · Trend · Daily

TEMA 200 Trend

Mechanical rule (exactly as backtested): VARIANT — price above a rising TEMA(200). Signals are evaluated at daily-bar close, the position changes on the NEXT bar, 0.08% cost per side, long/flat only — no leverage, no shorting.

+190.1%
Total return
0.61
Sharpe
-21.6%
Max DD
42.9%
Win rate
70
Trades
-4.8%
vs B&amp;H

Out-of-sample (last ~30% of the window, never used to pick this setup): Sharpe 0.84 · alpha +12.3% · 14 trades over 4.4 yrs.

Forward test

Since publication — including if it loses

0.0%
the published setup, since 2026-07-02 (0 market days)
0.0%
buy & hold, same window

The forward record is just getting started — the gap between the two is the honest score. Marked to market nightly from real prices, rules frozen at publication, as of 2026-07-02. Currently FLAT.

How this verdict was computed (mode: out-of-sample)

We tested 735 setups (indicator × parameters × timeframe) on Xylem Inc. (XYL). Only setups with ≥30 trades qualify (558 did). Setups are ranked by out-of-sample Sharpe — the last ~30% of history, which standard-parameter rules never saw during selection. Because picking the best of 735 tries mines even the holdout, the VALIDATED verdict additionally requires the top setup’s OOS Sharpe to clear a selection hurdle of 1.73 (√(2 ln N)/√T) AND positive alpha in both windows. Of the eligible setups, 45.3% had positive out-of-sample alpha (median OOS Sharpe 0.11) — the table below is truncated, but this summary covers all of them. Full recipe: methodology · the engine’s contract lives in the repo as STRATEGY_METHODOLOGY.md.

Ranked table

Top 20 of 558 eligible setups

Ranked by out-of-sample Sharpe. Full + out-of-sample columns, costs included. Hypothetical.

#SetupTFTotal retSharpeMax DDWinTradesα vs B&HOOS SharpeOOS αOOS trades
1LSMA 200 TrendDaily+247.9%0.66-23.8%40.8%76-3.5%1.02+14.6%11
2Choppiness IndexDaily+25.8%0.26-27.8%51.4%70-10.8%1.01+7.0%18
3TEMA 200 TrendDaily+190.1%0.61-21.6%42.9%70-4.8%0.84+12.3%14
4Vertical Horizontal FilterDaily+14.5%0.14-27.3%58.5%118-11.5%0.81+7.8%29
5Gator OscillatorWeekly+14.3%0.14-38.2%57.1%63-11.1%0.78+4.0%12
6Keltner BreakoutDaily+13.2%0.13-29.2%46.9%49-11.6%0.73+6.8%13
7ZLEMA 200 TrendDaily+134.4%0.47-30.6%52.4%82-6.4%0.69+9.5%17
8UT Bot (ATR Trailing)Weekly+126.2%0.4-38.6%49.0%51-6.3%0.64+9.5%14
9LSMA 30 TrendWeekly+10.3%0.12-45.3%52.5%59-11.3%0.64+7.4%11
10Keltner 20 BreakDaily-31.5%-0.34-44.5%48.6%111-15.0%0.64+4.1%28
11Bollinger SqueezeDaily+134.7%0.56-21.3%52.6%57-6.4%0.63+6.3%18
12B-XtrenderWeekly+98.9%0.43-23.0%53.7%67-7.2%0.61+7.1%16
13Markov Regime (Confirmed)Daily+21.9%0.17-43.0%51.2%293-11.0%0.6+9.6%69
14DEMA 100 TrendDaily+127.0%0.44-29.8%45.0%131-6.6%0.6+8.1%31
15Relative Volume SpikeDaily+5.1%0.09-21.7%35.3%51-12.1%0.6+4.2%20
16Ichimoku CloudDaily+186.3%0.51-38.6%38.6%70-4.9%0.58+7.5%17
17Geometric MADaily+127.2%0.43-23.7%40.7%199-6.6%0.58+7.2%52
18ADX / DMIDaily+117.5%0.44-26.1%43.3%90-6.9%0.58+6.1%20
19Bollinger 30 (x2.0) BreakDaily-3.8%-0.01-26.7%41.4%99-12.7%0.58+3.2%23
20Volatility Stop (ATR)Daily+57.6%0.26-44.0%40.4%104-9.2%0.54+8.2%25

Hypothetical backtests with 0.08%/side costs. Not investment advice — see the full disclaimer.

Read this before acting on anything

These are historical backtests of mechanical rules. They are educational research, not investment advice, not a recommendation, and not tailored to you. Educational information only — not investment advice. Hypothetical backtested results; past performance does not guarantee future results. Trading involves risk of loss.

Keep digging