Curve-Fitting vs Window Alignment: How to Adjust a Seasonal Window Without Fooling Yourself

November 11, 2026 - 2 min read

Shifting a seasonal window a few days to line up with where the move really begins is legitimate. Searching the whole calendar for the best-looking dates is curve-fitting. Here is how to tell the difference and protect yourself from overfitting.

curve-fittingoverfittingbacktestingwindow-alignmentdata-mining

Key Takeaways

Why Overfitting Happens

Test enough combinations and something will always look brilliant. With thousands of securities, 365 start dates and dozens of holding periods, pure chance guarantees some windows with perfect-looking records. This is sometimes called torturing the data until it confesses.

The more combinations you try, the more skeptical you should be of the best one you find. Our Insights essay Why Most Backtests Lie covers the statistics behind this.

What Legitimate Alignment Looks Like

Seasonal behavior rarely flips on an exact date. The Trend Chart compresses many years into the typical path, and usually shows a pivot zone where the average bends and the real move begins, and a peak zone where it tends to stall.

Alignment means moving a window’s edges a small distance to start at the pivot rather than a few days before it, or to end near the peak rather than well after it. In one documented example, moving a window’s start by four days to its typical turning point lifted the Sharpe Ratio from 0.8 to 1.14. The pattern did not change. The measurement just started where the behavior actually starts.

The Rules of Honest Alignment

  1. Start from a pattern that is already good. Alignment refines a real edge. It should not create one.
  2. Move by small amounts: days, not weeks.
  3. Have a visible reason on the Trend Chart for every adjustment.
  4. Check the neighbors. If shifting by a day or two in either direction destroys the result, the original was fragile.
  5. Recheck in other lookbacks. An aligned window should still look good over 10, 15 and 20 years.

What Curve-Fitting Looks Like

A Simple Robustness Checklist

Before you trust a window, ask:

Patterns that pass all five deserve your attention. Patterns that fail several are probably noise, no matter how good the headline number looks.

The Opposite Mistake: Overstaying

Alignment applies to exits too. Widening a window well past its typical peak usually destroys it. In one example, a 17-day window with a Sharpe Ratio of 2.18 and a perfect record fell to a Sharpe Ratio of about zero and a 60% win rate when stretched to 86 days. See When to Exit a Seasonal Trade.

Frequently Asked Questions

What is curve-fitting in trading?

Curve-fitting, or overfitting, is tuning a strategy so precisely to past data that it captures random noise instead of a real, repeatable effect. It produces backtests that look excellent and real-world results that disappoint.

Is adjusting a seasonal window's dates curve-fitting?

Not if the adjustment is small and grounded in what the chart shows, such as moving the start a few days to the point where the move typically begins. It becomes curve-fitting when you search every possible start and end date for the best statistics.

How can I tell if a seasonal pattern is overfit?

Warning signs include very short sample periods, oddly specific dates that collapse when shifted a few days, results that only work in one lookback, statistics that are far better than similar windows nearby, and no plausible real-world reason for the pattern.

Educational content only. Historical patterns are not guarantees, past performance does not guarantee future results, and trading involves risk of loss. Nothing here is investment advice.

Continue reading