Skip to main content
Track Trend filter
14 / 33
Library

2003issue C111-5

Constructing a confirmed zigzag trend filter

A standard zigzag can rewrite its last swing until a reversal threshold is met. This archive article shows how to rebuild that filter so it reports only confirmed direction on prices or another plotted series.

  • A standard zigzag can rewrite its last swing if a reversal never reaches the user-set threshold, so last-leg direction is not a stable input for mechanical tests.
  • Once price reaches or exceeds the reversal threshold, that swing is no longer revisable, and a confirmation-only zigzag trend returns 1 or -1 while rejecting unconfirmed swings.
  • The filter is defined by the series under study, the reversal amount, and a percent or points method, and the same confirmation logic can sit on prices or on another plotted series.
  • The confirmation overlay cannot print a value until the first pair of swing points is confirmed, so it starts later than an unconfirmed zigzag line.
Entries in this reading2 entries

The last swing is not a stable input

A standard zigzag filter can rewrite its last swing if a reversal never reaches the user-set threshold, so that last-leg direction is not a stable input for mechanical tests. That still-open swing is the dynamic last leg of a noise filter, which can be rewritten if price never reaches the reversal threshold.

A moving average is an ordered-series smoother used here as a contrast: a revisable last-leg swing line versus a confirmation-only directional state.

A swing becomes fixed only after the threshold

Once price reaches or exceeds the reversal threshold, that zigzag swing is no longer revisable under the same construction rules. The reversal amount is the user-chosen percent or point threshold a move must travel before a swing is treated as a true reversal.

A trend filter in this construction is a quantitative gate that withholds a directional reading until a user-set reversal threshold is actually reached.

Why the confirmation reading stays valid

The source comparison table treats the confirmation filter as suitable for backtests because both present and past readings stay valid, unlike a last-leg-only validity check. The zigzag trend is a binary confirmation layer that returns a valid uptrend or downtrend and rejects unconfirmed swings.

Three construction inputs

The filter is defined by three construction inputs: the series being examined, the reversal amount, and a percent or points calculation method.

The percent method supplies one reversal rule across price levels but treats up and down moves asymmetrically, because a given percentage rise from a lower price is easier to reach than the same percentage fall from a higher price. The points method is the preferred construction when up and down moves should be compared linearly, or when the series can include zero or negative values, as with oscillators.

Where the overlay can sit, and when it can start

The same confirmation logic can be applied to an open, high, low, or close series, or dropped onto another plotted series such as a relative-strength oscillator.

The confirmation overlay cannot print a value until the first pair of swing points is confirmed, so it starts later than an unconfirmed zigzag line.

Daily Boeing prices the zigzag-trend filter is read against, 2000–2002

A trader should see the long confirmed advance into the late-2000 and May 2001 highs, the June break, the September 2001 collapse, then a weaker 2002 bounce that fails. The source draws confirmed uptrends as the upper edge bar and confirmed downtrends as the lower edge bar; those bars sit on a different scale, so only the price path is plotted here. Prices were read from the published daily pane at month ticks and turning points and are approximate to the nearest dollar.
A trader should see the long confirmed advance into the late-2000 and May 2001 highs, the June break, the September 2001 collapse, then a weaker 2002 bounce that fails. The source draws confirmed uptrends as the upper edge bar and confirmed downtrends as the lower edge bar; those bars sit on a different scale, so only the price path is plotted here. Prices were read from the published daily pane at month ticks and turning points and are approximate to the nearest dollar.Boeing · Daily · 2000-03-01T00:00:00.000Z to 2002-11-30T00:00:00.000Z

No printed price table exists in the unit. Y values are raster readings, not official prints. The article’s Boeing example uses zigzag trend on the close with a 15 percent reversal; that parameter is not reprinted on this pane.

Educational research material, not investment advice. Historical source context does not establish present-day performance.
14 of 33 in the Trend filter track
20041-5 pp.Next on Trend filterDecompose high, low, and close into separate forecast streamsA Relative Strength Index can be rebuilt on the period low or high instead of the close so each price stream produces its own support or resistance forecast.
All readings on this track · 33 readings
  1. 1988Opening-range brackets, a two-bar trend filter, and bounded stops
  2. 1990Bezier-curve price trend filter
  3. 1992Constructing a damping-index trend filter
  4. 1992Building a random walk index trend filter
  5. 1992Phase diagrams for moving-average trend filters
  6. 1993Volume-weighted change smoothing and trend ranking
  7. 1993Concurrent highest-low filter with a largest-low-fall trigger
  8. 1994Unit-invariant trend filters and the c-test
  9. 1995Constructing cup and cap entries with a three-bar net line
  10. 1997Why a daily timing evaluation depends on interval, lookbacks, and the fitting objective
  11. 2001A volume budget clock for trend-segment construction
  12. 2001Keep three jobs separate when you test a composite score
  13. 2002Evaluating the weekly four-percent close filter as a market-state procedure
  14. 2003Constructing a confirmed zigzag trend filter
  15. 2004Decompose high, low, and close into separate forecast streams
  16. 2005Three-state moving-average breakout bar coloring
  17. 2005Constructing a volume and move-adjusted trend filter
  18. 2005A fifty-day average breakout as a trend permission filter
  19. 2005Current-bar inclusion can mute a stochastic channel break
  20. 2006A stochastic oscillator gated by a long-term exponential average
  21. 2010A construction test for a modified volume-price trend filter
  22. 2011Constructing a Spearman rank trend filter
  23. 2013Constructing a repeated-median slope as a resistant trend filter
  24. 2014Combining a relative-strength index and trend filters for oversold setups
  25. 2014Price-rooted lookbacks for a relative strength index, a moving average, and a trend filter
  26. 2015Evaluating next-session intermarket range forecasts
  27. 2018Read the intermarket weight matrix first, then the predicted moving-average filter
  28. 2018Constructing the stiffness trend filter from moving-average holds
  29. 2018The averaging kernel and the lagged trend gate are separate specifications
  30. 2019A trend filter is not ready to compare until portfolio constraints are written down
  31. 2019Lookback, threshold, and position-capacity for a stiffness trend-filter
  32. 2020Combining a trend filter with a moving average and a stochastic oscillator
  33. 2020Constructing a relative-strength oscillator with a rank-agreement trend filter
All 137 readings tagged Trend filter
Also on Trend filter5 readings