Alvarez: 200-day average with N-day confirmation (SPY, QQQ)

Cesar Alvarez, Alvarez Quant Trading, post of 27 September 2023

AA — the trader’s own published text (rule document, own site) was read.

Trend filter and market timing on index ETFs, daily. A test of a plain rule, “own the index while it is above its 200-day average”, with the extra requirement that the close stays on one side for N days in a row before the position changes. He reports that on QQQ every N from 2 to 10 gave higher return, lower drawdown and fewer trades.

A published rule is a hypothesis, not evidence of profit. We do not know how often these rules won, and traders who publish their methods are the ones who survived.

Sources

  1. Reducing Whipsaws When Using 200-day Moving Average for Market Timing (Alvarez Quant Trading), 27 Sep 2023 — own site, 2023
    The text of the post was read; the result tables are images and were not read.

Rules

Filter
  • FilterN = 1 is the traditional version. Test period 1 January 2000 – 30 June 2023, instruments SPY and QQQ.
    [1]
  • FilterHe personally uses N of 3 to 5 as a balance between fewer whipsaws and entering a new trend too late, and also uses the rule as a market-regime filter for other strategies.
    [1]
Entry
  • EntryBuy at the next open after the close has been above the 200-day moving average for N days in a row.
    [1]
Exit
  • ExitSell at the next open after the close has been below the 200-day moving average for the same N days in a row.
    [1]
Discipline
  • DisciplineOn SPY, per his text: N = 1 sharply cuts the maximum drawdown but lowers the annual return by about 1.2 points against buy-and-hold; N = 2 nearly halves the number of trades and trails buy-and-hold by only 0.12 points; N = 3 to 6 cut drawdown a lot for a small loss of return.
    [1]
  • DisciplineOn QQQ, per his text: for every N from 2 to 10 the return is higher, the maximum drawdown lower and the number of trades smaller than in the table’s baseline rows.
    [1]

Not confirmed

Often attributed to this trader, but not found in the sources above. Not listed as his or her rules.

  • The exact numbers (return, drawdown, trade count per N) are in image tables and were not read; only his written summary is used.
  • A reader asked for a 1% band around the average; the author replied he would add it if he updates the results, so it is not part of the rule.

Limits of these rules

The numbers are not in the text, there are no costs or taxes, and the best N is chosen from the same history it is reported on, so the improvement from N is partly fitted. The rule trades rarely, so it rests on few signals, and it sat out part of the strong QQQ growth. His own caution: the choice of N is personal.

On this site

Other traders

Rules are our paraphrase of the sources; only short quotes are verbatim. This is information, not advice or a promise of profit.

200-day + N days on QQQ (Alvarez): trading rules

A test of a plain rule, “own the index while it is above its 200-day average”, with the extra requirement that the close stays on one side for N days in a row before the position changes. He reports that on QQQ every N from 2 to 10 gave higher return, lower drawdown and fewer trades.

The numbers are not in the text, there are no costs or taxes, and the best N is chosen from the same history it is reported on, so the improvement from N is partly fitted. The rule trades rarely, so it rests on few signals, and it sat out part of the strong QQQ growth. His own caution: the choice of N is personal.

Questions and answers

What is the 200-day average rule with N-day confirmation?

Buy after N consecutive closes above the 200-day average, sell after N consecutive closes below it; N = 1 is the classic rule and Alvarez prefers 3 to 5.