2005issue C031
Constructing a z-score scored range-breakout filter
A range-exit filter in this construction first takes a longer base-window and a shorter confirmation-window, then scores only those exits that still show overlap-flatness. The published mark is a residual-z-score, or a zero triplet when the windows or the zero-sigma-guard block a stable fit.
- The construction is defined as a quiet, range-bound interval followed by an accelerating move away from that interval.
- The filter pairs a longer base-window with a shorter confirmation-window, with an example pairing of 20 and 3 observations, and returns a zero triplet when that short window is longer than the base-window or when fewer than one extra observation beyond the base-window is available.
- A range-exit is raised only when the latest close sits above the base-window high or below the base-window low, and overlap-flatness then asks whether the left-side and right-side high-low bands of the base-window still overlap.
- If both geometric tests pass, a helper fit on the ordered base-window closes supplies a sigma, an expected next close, and a slope. The residual-z-score is the latest close minus that expected next close, divided by the fitted sigma, unless the zero-sigma-guard returns a zero z-score when fitted sigma is smaller than 0.000001. The published output triplet is the prior close, the current close, and the residual z-score.
A quiet range then a move away
The construction is defined as a quiet, range-bound interval followed by an accelerating move away from that interval.
The filter takes a longer base-window and a shorter confirmation-window. An example pairing is 20 and 3 observations.
When the routine returns zeros
The routine returns a zero triplet when the confirmation-window is longer than the base-window or when fewer than one extra observation beyond the base-window is available.
Range-exit then overlap-flatness
A range-exit candidate is raised only when the latest close sits above the base-window high or below the base-window low.
After that exit test, overlap-flatness is checked by asking whether the left-side and right-side high-low bands of the base-window still overlap. Both geometric tests must pass before scoring begins.
Residual-z-score and the zero-sigma-guard
If both geometric tests pass, a helper fit on the ordered base-window closes supplies a sigma, an expected next close, and a slope.
The residual-z-score is the latest close minus that expected next close, divided by the fitted sigma.
If the fitted sigma is smaller than 0.000001, the zero-sigma-guard withholds a standardized residual and returns a zero z-score instead.
What the filter publishes
The published output triplet is the prior close, the current close, and the residual z-score.
All readings on this track · 11 readings
- 1991Constructing standardized sentiment trend filters
- 1995Market z-score residuals for style pair construction
- 1995Constructing scaled z-score normalization for model inputs
- 1996Normalize price and volume onto a common scale
- 2001Constructing pair spreads with z-score triggers
- 2003Rebuilding band distance as a z-score crossover
- 2003Constructing price z-scores with dual averages and bands
- 2003Zigzag target zones from a normalized deviation oscillator
- 2005Constructing a z-score scored range-breakout filter
- 2006Constructing a trend system from Bollinger Bands and z-scores
- 2011How an adjustable-bands z-test resizes the no-trade zone