DeskTested

Trading tools, tested on a real desk.

Updated Oct 26, 2026Desk NotesClaims verified ✓Anthony M.

200-Day Moving Average Backtest: Is 200 Special, or Just on a Plateau?

Our 200-day moving average backtest swept the window from 100 to 250 days. Every length from 150 to 250 sat on one plateau, and 200 wasn't the peak.

No, 200 isn’t special, at least not in our backtest. When the desk swept a moving-average trend rule’s window from 100 to 250 days, with the signal read on QQQ and trades executed on the 2x Nasdaq-100 ETF QLD from June 2006 to June 2026, every window from 150 to 250 days landed on the same plateau, with Sharpe ratios of 0.74 to 0.86. The 200-day window scored 0.79. The top score was 175 days at 0.86, and the record calls the difference from 200 noise.

The same validation run corrected the strategy’s own spec. The rule traded far more often than the spec said it would, and a ±1% band around the average halved the trade count while the Sharpe ratio stayed at 0.79.

Every figure on this page is a backtest simulation — not live results, not a prediction, not advice. The figures are copied from a desk research record (qld_validation_results.md, run 1 July 2026) built on real adjusted QQQ and QLD daily data from Yahoo: 5,037 trading days, 21 June 2006 to 30 June 2026. They describe what a rule did over those dates and say nothing about what it will do.

The rule being tested

  • Signal: QQQ’s daily close against its N-day simple moving average.
  • Execution: QLD, which ProShares describes as seeking “two times (2x) the daily performance of the Nasdaq-100 Index” before fees and expenses.
  • Windows: 100, 125, 150, 175, 200, 225 and 250 days, each run on the full sample.
  • Variant: the 200-day window with a ±1% band around the average.

Here’s the band mechanism as code. It’s a simplified illustration, not the desk’s research code. The record doesn’t spell out the band’s mechanics or what the rule holds when it’s out, so this assumes the usual symmetric band and cash:

# Illustrative only. Assumes a symmetric band and cash when out of the market.
import pandas as pd

def trend_position(qqq_close: pd.Series, window: int = 200, band: float = 0.0) -> pd.Series:
    sma = qqq_close.rolling(window).mean()
    upper, lower = sma * (1 + band), sma * (1 - band)
    state, pos = 0, []
    for price, up, lo in zip(qqq_close, upper, lower):
        if state == 0 and price > up:
            state = 1        # enter only once the close clears the upper band
        elif state == 1 and price < lo:
            state = 0        # exit only once the close breaks the lower band
        pos.append(state)
    return pd.Series(pos, index=qqq_close.index)

# band=0.0 flips on every cross of the average; band=0.01 ignores closes within 1% of it.
# A position decided on today's QQQ close earns tomorrow's QLD return:
# strategy = trend_position(qqq).shift(1) * qld.pct_change()

The shift(1) keeps the rule from trading on a close it couldn’t have acted on in time. QLD is also the base of our volatility de-lever backtest, which tests a different overlay.

The sweep: a plateau, not a spike

Here’s the sweep, copied from the record. The signal is on QQQ, execution is on QLD, and every row covers the full 2006–2026 sample:

Window CAGR Sharpe Max drawdown Trades
100 15.3% 0.64 −51.9% 219
125 15.9% 0.65 −47.3% 201
150 21.6% 0.81 −48.9% 141
175 23.8% 0.86 −42.6% 117
200 21.2% 0.79 −48.2% 115
225 19.6% 0.74 −46.5% 115
250 20.4% 0.76 −48.7% 111

Backtest simulation — not live results, not a prediction, not advice. Read the drawdown column next to the CAGR column: every window’s worst peak-to-trough loss was between 42.6% and 51.9%.

Bar chart of Sharpe ratio by moving-average window in a QQQ-signal, QLD-execution backtest, 2006 to 2026: 0.64 at 100 days and 0.65 at 125, then 0.81, 0.86, 0.79, 0.74 and 0.76 from 150 to 250 days

The record reads the table this way:

Smooth plateau across 150–250 (Sharpe 0.74–0.86) […] Neighbours (175/225) perform similarly, so the value is not curve-fit. Only the short windows (100/125) degrade (more whipsaw). 175 is marginally best but the difference from 200 is noise.

That’s the distinction a sweep exists to draw. If 200 sat on a spike, with 175 and 225 well below it, the result would most likely be a fit to this particular stretch of history. Here the neighbours do about as well, so the result doesn’t depend on hitting one exact number. The opposite trap is real too: picking 175 because it tops this one table would be fitting to the same sample. The record treats the gap as noise rather than a reason to switch.

The trade count the spec got wrong

The spec for this strategy said it trades “~1–2 trades/yr”. The validation run found otherwise. From the record’s Honest findings / corrections, verbatim:

Trade frequency is understated in the spec. The spec/journal claim “~1–2 trades/yr”; the real rate is ~5.8 position-changes/yr (~2.9 round-trips/yr), and 36 entries were whipsawed back out within 10 days over the sample.

The check takes one line of arithmetic, and the table already holds everything it needs:

# Illustrative arithmetic on the record's own figures. Trades per year = trades / years.
trades = {100: 219, 125: 201, 150: 141, 175: 117, 200: 115, 225: 115, 250: 111}
years = 5037 / 252          # the record's 5,037 trading days, at 252 a year

for window, n in trades.items():
    print(f"{window}-day: {n / years:4.1f} position changes/yr, {n / years / 2:3.1f} round trips/yr")
print(f"200-day, ±1% band: {57 / years / 2:.1f} round trips/yr")
# 100-day: 11.0 position changes/yr, 5.5 round trips/yr
# 125-day: 10.1 position changes/yr, 5.0 round trips/yr
# 150-day:  7.1 position changes/yr, 3.5 round trips/yr
# 175-day:  5.9 position changes/yr, 2.9 round trips/yr
# 200-day:  5.8 position changes/yr, 2.9 round trips/yr
# 225-day:  5.8 position changes/yr, 2.9 round trips/yr
# 250-day:  5.6 position changes/yr, 2.8 round trips/yr
# 200-day, ±1% band: 1.4 round trips/yr

The 200-day row’s 115 trades over about 20 years works out to the record’s ~5.8 position changes a year. That implies the table counts each entry and each exit as a trade. Trade count drives cost assumptions, so an understated one flatters every net-of-cost estimate built on it. Backtest simulation — not live results, not a prediction, not advice.

The ±1% band: the fix and the improvement are the same result

Most of those extra trades are whipsaw: closes that cross the average and cross back within days. A threshold rule on the 200-day line is prone to that, which is why our regime read method records the percentage gap from the line, not just above or below. The band asks for a 1% clearance before the rule flips. The record’s result for the 200-day window:

200-day rule, 2006–2026 CAGR Sharpe Max drawdown Trades
No band 21.2% 0.79 −48.2% 115
±1% band 21.4% 0.79 −49.8% 57

Backtest simulation — not live results, not a prediction, not advice. In the record’s words, the band “halves the trading (to ~1.4 round-trips/yr, matching the doc’s claim) with essentially identical returns.” So the spec’s 1–2 trades a year fits the banded rule, not the one it described.

Bar chart of trades over 20 years by moving-average window: 219 at 100 days, 201 at 125, 141 at 150, 117 at 175, 115 at 200 and 225, 111 at 250, and 57 for the 200-day window with a ±1% band

“Essentially identical” isn’t identical. The banded version’s maximum drawdown was 1.6 points deeper, so halving the trades didn’t make the worst stretch any shallower. Lengthening the window doesn’t buy the same reduction. Going from 200 to 250 days only took the count from 115 to 111.

What this sweep can’t tell you

It’s one sample, read whole. Every row covers the same 2006–2026 window, so the plateau shows that neighbouring windows behaved alike over that history. It doesn’t show they’ll keep doing so. The band was reported for the 200-day window only, on the same sample. Our strategy validation checklist lists the other checks, including holding data back. This page is one worked example of the sweep step.

The history starts in 2006. QLD only exists from June 2006, so no row includes a crash before then.

It’s one market and one execution vehicle. These figures describe a QQQ signal executed on a 2x ETF. They don’t transfer to an S&P 500 backtest or to an unleveraged fund.

The 200-day row is also the reference figure the desk recomputed when it migrated data sources. The 21.2% CAGR, −48.2% maximum drawdown and 115 trades came out the same on both sources, and the Sharpe ratio read 0.79 against 0.789, as recorded in backtesting mistakes that only real data reveals. Backtest simulation — not live results, not a prediction, not advice.

How to read any moving-average backtest

  1. Ask for the neighbours. A single window’s result says nothing about whether it sits on a plateau or a spike.
  2. Count the trades yourself. Divide trades by years, then check whether “trades” means entries, exits or round trips.
  3. Read CAGR next to maximum drawdown. On a leveraged fund, the drawdown is usually the bigger number.
  4. Ask what the band or filter was tested on. A variant reported on the same sample that chose it hasn’t been tested out of sample.
  5. Check where the history starts. An instrument can’t be tested on crashes from before it existed.

Frequently asked questions

Is the 200-day moving average better than other lengths?

Not distinctly, in this backtest. With a QQQ signal executed on QLD from 2006 to 2026, every window from 150 to 250 days scored a Sharpe ratio between 0.74 and 0.86, and 200 scored 0.79. Only the 100- and 125-day windows fell away, to 0.64 and 0.65. Backtest simulation — not live results, not a prediction, not advice.

How many trades does a 200-day moving average strategy make?

In this backtest, 115 trades in 5,037 trading days, about 5.8 position changes or 2.9 round trips a year, with 36 entries whipsawed back out within 10 days. A ±1% band cut that to 57 trades, about 1.4 round trips a year. Backtest simulation — not live results, not a prediction, not advice.

What is a moving average band?

It’s a buffer around the average: the rule enters only when price clears the average by a set percentage and exits only when price falls the same distance below it. Closes inside the buffer change nothing, which filters out crossings that reverse within days.

What does a plateau in a parameter sweep mean?

Neighbouring parameter values give similar results, so the outcome doesn’t hinge on one exact setting. A spike means one value does well and its neighbours don’t, which usually points to a fit to noise in that sample. A plateau doesn’t prove the rule works out of sample. It only rules out one way of fooling yourself.


This is educational content about research method, not financial advice. No positions, live signals, account values or trading results appear on this page. All figures are historical backtest simulations over the stated period — not live results, not predictions, not a recommendation of any instrument or window.