2005issue C071-2
Six-zone encoding of open, high, low, and close
A location function maps each tested price onto six ordered zones of the prior range, using the prior high, the prior low, their midpoint, and a ten-period atr-offset. Open, high, low, and close become one four-digit pattern-code, which is then counted against a next-bar close-versus-open baseline.
- A zone-index from 0 through 5 locates any tested price against the prior high, the prior low, their midpoint, and a ten-period atr-offset.
- The pattern-code is the four-digit number written from the open, high, low, and close zone indexes in that order.
- A code-match is true only when a price occupies the same zone-index that a chosen digit requires. A full four-price match adds one occurrence and classifies the following bar in the next-bar-close-open-split.
- Occurrence share is the matched count divided by the bar index. Display text restates each digit as a verbal location, and a chart marker is drawn only when the live pattern-code equals the selected input.
From four prices to one code
A location function maps any tested price onto six ordered bins. Those bins are bounded by the prior high, the prior low, the midpoint of those two prices, and a ten-period atr-offset.
A recognition routine then concatenates the open, high, low, and close bins into one four-digit pattern-code. Later counting uses that pattern-code as the object that is matched and compared.
Six ordered zones
The lowest bin is everything below the prior low minus the ten-period atr-offset. The highest bin is everything above the prior high plus the same atr-offset.
The four interior bins split the prior range at its midpoint and place the two remaining bins in the collars between each extreme and its atr-offset. Each tested price receives one zone-index from 0 through 5 under that same six-zone rule.
Pattern-code and code-match
The pattern-code is formed by writing the zone indexes of the open, high, low, and close in that order. A matcher returns true only when a price and a supplied bin number satisfy the same six-zone rule. That test is the code-match.
When open, high, low, and close all match a chosen pattern-code, counters add one occurrence and classify the following bar as close above open, close below open, or unchanged.
Occurrence share and the next-bar split
Occurrence share is the matched count divided by the bar index. The three next-bar close-open outcomes are percentages of that count. Together those three shares are the next-bar-close-open-split.
The live bar is omitted from that split when a new match has just printed, so the following close-versus-open outcome is not assumed before it exists.
Verbal locations and the live marker
Display text restates each digit as a verbal location against the prior range and the average-true-range bands. A chart marker is drawn only when the live pattern-code equals the selected input.
All readings on this track · 36 readings
- 1988Constructing unsigned true range for directional models
- 1989Evaluate an always-in ATR breakout as one procedure
- 1992Variable lookback and average true range as a trend-filter construction
- 1993A random-walk index that uses true range as its scale
- 1993A shared harness for trend-filter construction
- 1998Finish a trend with a volatility trail, wave permission, and a slower-frame veto
- 1999A trend filter that switches tactics and scales ATR targets
- 2001Filter higher lows with linear regression, then judge the exit
- 2003A Mechanical trading system is a maintained procedure, not only an entry trigger
- 2005Construction of a volatility-bounded long entry
- 2005Six-zone encoding of open, high, low, and close
- 2006Normalized average true range as a pre-entry volatility bound
- 2006Chandelier exits, ATR position sizing, and trailing stops
- 2007Constructing a rule-based entry with Relative Strength Index and ATR position sizing
- 2008Constructing a zero-lag TMA and heikin-ashi crossover as a complete rule set
- 2010Use the session-range percent stop as a pre-trade filter
- 2011OCA exit groups, trailing limits, and ATR stops
- 2011ATR bands around support and resistance for stops and targets
- 2013Algorithmic head-and-shoulders construction with bounded exits
- 2013Constructing ATR-scaled swing pivots and linear-regression divergence
- 2013Constructing volatility bands from typical price
- 2014Constructing true-range contraction filters before expansion
- 2015Constructing touch plans from modified true range
- 2015One checklist for breakout entry and ATR risk
- 2015Percentage true-range construction for cross-market volatility filters
- 2015Construct a percentage true range for cross-market volatility
- 2015Percentage true range as a pre-entry exposure filter
- 2016Constructing ATR-filtered breakout entries
- 2017A dividend date as a pairs-trading classroom
- 2018Range-based volatility as a true-range construction
- 2018Moving average support and volatility-band construction
- 2018Construct a lifecycle breakout from compression
- 2018Pair the book first and let volatility or range set the size
- 2019Trend systems need a no-trade rule
- 2020Average true range as a shared unit for size, pairs, and stops
- 2020Volatility sizing and target-risk leverage as a pre-trade gate