1990issue C071-5
A laboratory template that constructs Rate of Change as a pane module
A laboratory charting program stores a data-directory path, opens files by index number, and loads a limited run of daily, weekly, or monthly periods. A reusable chart frame keeps bars in the lower pane. Rate of Change is the only implemented upper-pane indicator: it asks for a lookback, then plots against a dotted zero line and labeled extremes. New calculations can be inserted as self-contained units by changing only a few lines of calling code.
- The laboratory template is one main module plus four reusable subprocedures, with a saved data-directory path and a first graphics menu that offers only charting or quit.
- Series are opened by index number, then by a chosen count of daily, weekly, or monthly periods up to 640, from a seven-field record or a five-field stock record that omits open and open interest.
- The chart frame reserves the lower pane for bars. Rate of Change is the only implemented upper-pane module and is plotted from a lookback against a dotted zero line and labeled extremes, without a side scale.
- An indicator slot is a self-contained calculation inserted by changing two or three lines of calling code, which is how a moving average would later sit above the bar window.
A reusable laboratory template
The laboratory charting program is organized as one main module plus four function-specific subprocedures meant to be reused in other programs. A disk file stores the default data-directory path so later launches can locate series after a confirmation keystroke.
The first graphics menu offers only charting and quit. It is presented as an expandable laboratory template for later utilities such as data editing, split adjustment, and weekly compression. The unfinished shell is used to practice file load, prompts, drawing, and pop-up menus that leave the background image intact.
Load the series before any indicator
Chart files are opened by an index number rather than a security name, because names live in a separate master catalog recovered by a companion listing utility that can be merged into the menu. After a file is chosen, the user selects how many daily, weekly, or monthly periods to load, with an upper limit of 640 periods.
The described version reads a seven-field record covering date, open, high, low, close, volume, and open interest. Five-field stock records require omitting the open and open-interest reads.
Bars below, Rate of Change above
A reusable chart frame is drawn first as a double-outline border. A bar chart occupies the lower pane. A pop-up then offers upper-pane indicators, of which only Rate of Change is implemented.
Choosing Rate of Change prompts for a lookback, the number of sampled periods supplied before the indicator is drawn. Counts of 12 and 25 are given as reasonable examples. The series is plotted above the bars with a dotted zero line and with maximum and minimum values above the pane, but without a side scale.
Leave the indicator slot interchangeable
New indicator calculations can be added as self-contained units by changing only two or three lines of existing calling code, and one subprocedure may invoke another. That unit is the indicator slot for the upper pane.
Editorial: a moving average is a defined-interval baseline over ordered price, volume, or breadth observations. The same pluggable construction slot used for Rate of Change is how such a baseline would later sit above the bar window.
All readings on this track · 46 readings
- 1985Constructing excess and momentum difference-curve oscillators
- 1988Five reading rules for smoothed indicator charts
- 1989Momentum overlays that speed moving-average oscillators
- 1990A laboratory template that constructs Rate of Change as a pane module
- 1991Volume-scaled rate of change as a momentum construction
- 1991Three-indicator market overview from tape, sentiment and rates
- 1991Three-component trend model with rate-of-change filters
- 1992A KST oscillator from a weighted rate-of-change stack
- 1992Four-window weighted rate-of-change composite
- 1992Constructing multi-span smoothed rate-of-change filters
- 1992Constructing a four-horizon summed rate of change
- 1992Constructing KST from four weighted smoothed rates of change
- 1992Constructing a composite from weighted smoothed rates of change
- 1992Three-horizon KST maturity alignment
- 1992Construct a bond-led dividend-to-bond-yield regime first
- 1992Constructing relative-strength KST from weighted rate-of-change
- 1993Constructing a volume oscillator from average ratios and smoothed rate of change
- 1994Gold as a cycle clock for commodities and yields
- 1994Constructing a composite from weighted, smoothed rate-of-change windows
- 1994Constructing gold-mining rate-of-change tripwires for Treasury bonds
- 1994A capacity-stress checklist across commodities, bonds, and breadth
- 1994Rate of change parameters for testable entries
- 1994Constructing rate-of-change midpoints, lookbacks and divergence
- 1994Lead oscillator breaks need price trendline confirmation
- 1994Nested averages for an annual momentum curve
- 1994Evaluating a Coppock-style rate of change as a bottom-regime filter
- 1995A weighted eleven-month Dow rate of change as one testable timing procedure
- 1996Named lookbacks, thresholds, and streaks for entry rules
- 1997A midpoint rate-of-change test for bond trend follow-through
- 1997Constructing a short-rate-adjusted equity momentum filter
- 1998Daily momentum rank-churn as a portfolio-construction problem
- 1999Constructing a lagged rate of change cycle system
- 2000A triple delay line then a one-bar elliptic oscillator
- 2001Confirming rate of change divergences with price
- 2001Momentum trendline breaks need price confirmation
- 2001Market breadth, On-balance volume, and Rate of Change as a combined timing framework
- 2001Know Sure Thing with stacked horizons and trendline confirmation
- 2003Constructing a mechanical system from a rate of change condition
- 2003Constructing momentum from two closes and spotting divergence
- 2003Formula choice tilts which momentum mismatches count as divergences
- 2004RSI and momentum agreement as an asymmetric filter
- 2005Constructing price-normalized moving-slope hybrids
- 2005Unsigned speed gates on a fixed average-cross pair
- 2007Rebuilding rate of change as a path-weighted oscillator
- 2008Construct Special K so short-horizon signals stay inside the primary trend
- 2013Restore volume balance before adding another price-time indicator