Skip to main content
Track Average Directional Index
4 / 56
Library

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.
Entries in this reading1 entry

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.

Educational research material, not investment advice. Historical source context does not establish present-day performance.
4 of 56 in the Average Directional Index track
19881-9 pp.Next on Average Directional IndexConstructing directional movement from bar rangeDirectional movement is the larger part of the current bar that extends beyond the prior bar’s high-low range, recorded as a plus or minus increment.
All readings on this track · 56 readings
  1. 1986Cycle-aligned directional trend indicator
  2. 1987What crossover and directional entry rules actually compare
  3. 1988A directional-line cross needs a trend filter, an extreme-point rule, and a dollar stop
  4. 1988Constructing true range by offset addressing
  5. 1988Constructing directional movement from bar range
  6. 1988Average directional index construction: recursive smoothing and lookback offset
  7. 1988Staged Average Directional Index construction with Relative Strength Index confirmation and stop alerts
  8. 1988Average Directional Index construction with frozen true range and directional rules
  9. 1991Constructing the average directional index from range expansion and true range
  10. 1991Constructing five-session forecasts from stochastic, ADX, and MACD inputs
  11. 1993Constructing the average directional index from directional movement and true range
  12. 1993Confirming n-bar breakouts with ADX and DX filters
  13. 1994Constructing a Bollinger band-width trend filter
  14. 1994A pre-trade checklist that can refuse a long three ways
  15. 1997An ADX threshold and a moving average as a trend filter
  16. 1998Regime filters for mutated indicators
  17. 1999Building the average directional index from range extension and true range
  18. 2000Evaluating ADX, RSI, and moving averages in a multi-stock warehouse
  19. 2000Stochastic pop as a filtered continuation setup
  20. 2000Onset and exit from one average directional index
  21. 2002Joint ADX and MACD readout for trend strength and direction
  22. 2003Adaptive Donchian breakout with implied volatility and volume
  23. 2004The average directional index as a regime gate for the relative strength index and the stochastic oscillator
  24. 2004Constructing true-range-specified volume as a directional filter
  25. 2005Constructing a multi-filter penny stock breakout procedure
  26. 2005Construct one playbook that flips with session regime
  27. 2005Combining Bollinger Bands, the average directional index, and Fibonacci retracement on currency pairs
  28. 2006Assembling an adaptive price zone from double-smoothed averages
  29. 2006An ADX strength gate for MACD and the stochastic oscillator
  30. 2007Directional movement as a filter plus trigger
  31. 2007Constructing a veto-first trend permission stack
  32. 2007ADX gates for trend end, range, and reversal
  33. 2008Constructing a nine-cell directional-ratio grid
  34. 2008Average directional index and directional trend indicator lookbacks as trend-filter parameters
  35. 2008A holding-matched market lens from averages and directional-line crosses
  36. 2008A nine-cell directional scoreboard for multi-horizon entries
  37. 2010Building a Vortex Indicator from high-low distances
  38. 2010Constructing ADX, RSI, and MACD price filters
  39. 2011Constructing a volume zone oscillator with a moving-average and Average Directional Index regime filter
  40. 2011A volume zone oscillator conditioned by an Average Directional Index filter
  41. 2011Candlestick names need volume-price, ADX, and moving-average checks
  42. 2012Clustered average-directional-index traces as a trend-start filter
  43. 2012Average Directional Index cluster filters for trend-start signals
  44. 2012Confirming a trend start or turn with a triple ADX cluster
  45. 2013Constructing a late-entry stack from a signed DMI oscillator
  46. 2013A directional oscillator and its stochastic as a stacked timing filter
  47. 2013ADX cluster lookbacks are a locked specification, not a chart label
  48. 2013Combining moving averages, stochastics, and ADX in a daily scan
  49. 2015Assembling the Average Directional Index from directional movement
  50. 2016How an Average Directional Index filter and a breakout entry form one procedure
  51. 2016Score RSI and stochastic crossings only when ADX confirms the trend
  52. 2018Constructing an ADX filter for intraday breakouts
  53. 2018An ADX volatility gate for prior-day breakouts
  54. 2019Exponential deviation bands with a moving average, RSI and ADX
  55. 2020A normalized-slope trend filter from linear regression
  56. 2020Gating volatility-momentum divergences with a Trend filter
All 71 readings tagged Average Directional Index
Also on Average Directional Index5 readings