1988issue C051-5
Constructing true range by offset addressing
The opening true-range series for average-directional-index can be built without a named-row-walk. Index-lookup reads and put-write stores use zero-based-offset addressing, and the three-way maximum is stated to stay the same.
- A named-row-walk that creates and retargets a range name on each price row is described as occupying a machine for hours once several months of data are processed.
- Indicator construction is described as fastest when the routine neither moves the cursor nor rewrites range names.
- True-range stays the maximum of the current high-low span and the two absolute distances from the prior close, and the offset form is stated to keep that same mathematics.
- The first true-range cell can be filled from the Data range alone by index-lookup reads and a put-write, and the illustrated sample is expected to store 3 in the second data row.
The cost of a named-row-walk
Creating and retargeting a range name on each price row while walking the series is described as occupying a machine for hours once several months of data are processed. That pattern is a named-row-walk: range names are retargeted as the cursor steps down successive price bars.
Indicator construction is described as fastest when the routine neither moves the cursor nor rewrites range names. Average-directional-index construction begins with a true-range series taken from ordered highs, lows, and prior closes, so the first written column is already an addressing problem.
Reads and writes by zero-based-offset
The index-lookup returns a value from a multi-cell named range by zero-based-offset column and row counts. It is stated not to operate on a single-cell range. Zero-based-offset treats the upper-left cell of a named range as column 0, row 0.
The matching put-write uses the same zero-based-offset addressing. It executes only inside a macro. If it is typed into an ordinary worksheet cell, it does nothing but store text.
A put-write may store a literal, the contents of another named range, or an index-lookup. The source and destination ranges need not be the same.
A loop-counter-cell is a single-cell named range that can be updated with a put-write whose column and row offsets are both zero. That update is presented as the way to keep a loop index without moving the cursor.
The first true-range value
True-range is the greater of the current high-low span and the two absolute distances from the prior close to the current high and the current low. In the archive wording, that is the maximum of current high minus low, the absolute high minus prior close, and the absolute low minus prior close. The offset form is stated to keep that same mathematics.
The first true-range value can be built from only the Data range by reading the current high, current low, and prior close through index-lookup offsets and writing the three-way maximum into the true-range column with a put-write.
On the illustrated 14-day March 1978 Chicago Wheat sample, the offset macro is expected to write 3 into the first true-range cell of the second data row.
All readings on this track · 56 readings
- 1986Cycle-aligned directional trend indicator
- 1987What crossover and directional entry rules actually compare
- 1988A directional-line cross needs a trend filter, an extreme-point rule, and a dollar stop
- 1988Constructing true range by offset addressing
- 1988Constructing directional movement from bar range
- 1988Average directional index construction: recursive smoothing and lookback offset
- 1988Staged Average Directional Index construction with Relative Strength Index confirmation and stop alerts
- 1988Average Directional Index construction with frozen true range and directional rules
- 1991Constructing the average directional index from range expansion and true range
- 1991Constructing five-session forecasts from stochastic, ADX, and MACD inputs
- 1993Constructing the average directional index from directional movement and true range
- 1993Confirming n-bar breakouts with ADX and DX filters
- 1994Constructing a Bollinger band-width trend filter
- 1994A pre-trade checklist that can refuse a long three ways
- 1997An ADX threshold and a moving average as a trend filter
- 1998Regime filters for mutated indicators
- 1999Building the average directional index from range extension and true range
- 2000Evaluating ADX, RSI, and moving averages in a multi-stock warehouse
- 2000Stochastic pop as a filtered continuation setup
- 2000Onset and exit from one average directional index
- 2002Joint ADX and MACD readout for trend strength and direction
- 2003Adaptive Donchian breakout with implied volatility and volume
- 2004The average directional index as a regime gate for the relative strength index and the stochastic oscillator
- 2004Constructing true-range-specified volume as a directional filter
- 2005Constructing a multi-filter penny stock breakout procedure
- 2005Construct one playbook that flips with session regime
- 2005Combining Bollinger Bands, the average directional index, and Fibonacci retracement on currency pairs
- 2006Assembling an adaptive price zone from double-smoothed averages
- 2006An ADX strength gate for MACD and the stochastic oscillator
- 2007Directional movement as a filter plus trigger
- 2007Constructing a veto-first trend permission stack
- 2007ADX gates for trend end, range, and reversal
- 2008Constructing a nine-cell directional-ratio grid
- 2008Average directional index and directional trend indicator lookbacks as trend-filter parameters
- 2008A holding-matched market lens from averages and directional-line crosses
- 2008A nine-cell directional scoreboard for multi-horizon entries
- 2010Building a Vortex Indicator from high-low distances
- 2010Constructing ADX, RSI, and MACD price filters
- 2011Constructing a volume zone oscillator with a moving-average and Average Directional Index regime filter
- 2011A volume zone oscillator conditioned by an Average Directional Index filter
- 2011Candlestick names need volume-price, ADX, and moving-average checks
- 2012Clustered average-directional-index traces as a trend-start filter
- 2012Average Directional Index cluster filters for trend-start signals
- 2012Confirming a trend start or turn with a triple ADX cluster
- 2013Constructing a late-entry stack from a signed DMI oscillator
- 2013A directional oscillator and its stochastic as a stacked timing filter
- 2013ADX cluster lookbacks are a locked specification, not a chart label
- 2013Combining moving averages, stochastics, and ADX in a daily scan
- 2015Assembling the Average Directional Index from directional movement
- 2016How an Average Directional Index filter and a breakout entry form one procedure
- 2016Score RSI and stochastic crossings only when ADX confirms the trend
- 2018Constructing an ADX filter for intraday breakouts
- 2018An ADX volatility gate for prior-day breakouts
- 2019Exponential deviation bands with a moving average, RSI and ADX
- 2020A normalized-slope trend filter from linear regression
- 2020Gating volatility-momentum divergences with a Trend filter