AI Research XLESPYmacro:treasury_10ymacro:brent_daily

XLE vs SPY 20-day forward returns after rising 10-year yields with Brent above its 50-day SMA

13
Trigger days

The setup looked like a textbook inflation-hedge signal: a 20-session spike in the 10-year Treasury yield with Brent crude holding above its 50-day moving average should draw flows into energy equities. Over the past three years, that logic flipped hard.

On the 13 days that met both conditions, XLE averaged roughly -5% over the next 20 sessions, while SPY averaged around +7.5%. The mean spread was about -12.5 percentage points, and XLE lagged in every single case. The direction is striking, but the sample is thin and the windows overlap, so the exact magnitude deserves skepticism.

What follows is the full breakdown: trigger history, statistical tests, and the scatter behind each event. Read it as a documented anomaly, not a rule.

The research question

Over the past ~3 years, when the 10-year Treasury yield rises more than 20 bps over a rolling 20-session window while Brent crude closes above its 50-day simple moving average, does XLE outperform SPY over the next 20 trading days? I expect rising long-end yields with firm crude to signal demand-led inflation, so the energy complex should attract inflation-hedge flows and beat the broad market.

How this was measured

Daily closes for XLE and SPY were built from minute bars and aligned on common trading days. The 10-year Treasury yield from treasury_10y_df and Brent crude from brent_daily_df were reindexed onto those trading days with forward-fill. The yield-change condition was tsy[t] - tsy[t-20] > 0.20 percentage points, and the Brent condition was close > 50-session simple moving average. For each day meeting both conditions, forward 20-session returns were computed close-to-close for XLE and SPY, and outperformance was measured as the arithmetic difference XLE minus SPY. The trigger-day spread was tested against zero with a one-sample t-test and against all non-trigger forward windows with a Welch t-test. Overlapping 20-day windows are a known limitation and are called out below.

The key numbers

Trigger days
13
10y yield +20bps over 20 sessions AND Brent > 50-day SMA
Mean XLE 20-day forward return
-4.9876%
Close-to-close, trigger-day anchor
Mean SPY 20-day forward return
7.5295%
Close-to-close, trigger-day anchor
Mean XLE - SPY spread
-12.5171%
Positive = XLE outperforms
Median XLE - SPY spread
-13.6550%
Robust to outliers
Fraction positive spread
0.00%
Share of trigger days where XLE beat SPY
Average yield change at trigger
30.15
Basis points over rolling 20 sessions
Average Brent distance above SMA50
29.4256%
At trigger-day close
Baseline days
698
All other forward-20 windows with valid data
Baseline mean spread
-0.3781%
Unconditioned XLE - SPY 20-day forward spread
One-sample t-statistic
-7.317
Trigger-day spread vs zero
One-sample p-value
0.0000
One-sample t vs zero; p=0.0000 < 0.05 → trigger-day spread differs from zero
Welch t-statistic
-7.028
Trigger-day spread vs baseline spread
Welch p-value
0.0000
Welch trigger-vs-baseline; p=0.0000 < 0.05 → trigger-day spread differs from baseline

Reading the numbers

On trigger days, XLE averaged about -5.0% over the next 20 sessions while SPY gained 7.5%, a -12.5% gap. With only 13 triggers, the gap was still statistically significant (p<0.05), so energy lagged, not led.

The charts

XLE minus SPY 20-day forward return: trigger days vs baseline
What this chart says

This box plot compares the 20-day XLE-minus-SPY spread on trigger days versus all other days. The trigger-day box sits entirely below zero, with every observed spread negative and a mean of -12.52%, while the baseline group straddles zero with a mean near -0.38%. That's the key visual: the condition you're asking about has been followed by energy underperforming the market, not outperforming it.

Mean 20-day forward returns on trigger days vs baseline
What this chart says

The bars show the source of the underperformance: on trigger days, SPY averaged +7.53% over the next 20 sessions while XLE averaged -4.99%. On ordinary days the two were nearly even, with XLE at +1.16% and SPY at +1.54%, so the trigger condition flips energy from roughly market-neutral to sharply behind.

Yield increase vs XLE-SPY forward spread on trigger days
What this chart says

Each dot is a trigger day, plotting how much the 10-year yield rose over 20 sessions against the subsequent XLE-minus-SPY spread. The yield increases ranged from about 22 to 47 basis points, but every dot lands below zero on the vertical axis, so no trigger-day yield move was followed by XLE beating SPY. The whole cloud being under the zero line is the detail to notice: the negative outcome holds across the range of yield jumps.

20-day forward return summary

GroupNMean XLEMean SPYMean spreadMedian spread% positive
Trigger days13-0.04990.0753-0.1252-0.13660
All other days6980.01160.0154-0.0038-0.0120.437

Most recent trigger days

DateYield chg (bps)Brent vs SMAXLE fwd20SPY fwd20Spread
2024-11-05220.02230.01960.0479-0.0283
2024-11-06360.0176-0.01040.0268-0.0371
2024-11-07220.0082-0.02430.0195-0.0438
2024-11-21220.0025-0.13170.0019-0.1336
2026-03-20310.5203-0.06350.086-0.1495
2026-03-23310.3188-0.06010.0765-0.1366
2026-03-24350.3626-0.06620.0804-0.1466
2026-03-25280.3567-0.06020.0826-0.1428
2026-03-26400.3937-0.07660.1021-0.1787
2026-03-27470.4739-0.09390.1316-0.2254
2026-03-30300.4592-0.06920.1299-0.1991
2026-03-31240.4954-0.03030.0943-0.1245
2026-04-01240.39410.01820.0995-0.0812

The takeaway

No — the setup actually flipped the expected direction. On the 13 trigger days, XLE averaged about -5% over the next 20 sessions while SPY averaged around +7.5%, an average spread of roughly -12.5 percentage points, and XLE lagged SPY in all 13 cases. That is not a coin flip: statistical tests put the chance of this being luck at about 1 in 100,000, both against zero and against the 698-day baseline spread of about -0.4pp. The main caveat is honesty: 13 events, several clustered around the same period and with overlapping forward windows, make the exact magnitude shaky even if the direction looks convincing. Practical takeaway: rising long-end yields with Brent above its 50-day SMA has not been an energy-outperformance signal in this three-year window — if anything, it has been a broad-market-over-energy signal. Treat this as a striking in-sample pattern worth monitoring, not a standalone rule to size positions on.

The fine print