2000issue C031-5
Rule-based moving average commentary as a testable filter
A simple moving average can be plotted as a study baseline. It becomes a checkable combination of forecast and signal only when close-versus-average and slope-change rules are written as one inspectable procedure that a commentary window can restate on a selected bar.
- A moving average is a lookback average of ordered prices used as an explicit quantitative baseline against the current close.
- A rule-based entry is a written if-then procedure that turns price-versus-average and slope conditions into buy, sell, or wait language.
- A commentary window restates high, close, low, the indicator reading, and the active rule when a bar is selected.
- The written procedure is meant to surface overlooked conditions and is only as useful as the algorithm encoded in it.
A plotted baseline
A simple moving average can be built from a chosen price series and a defined lookback length, then plotted as the study baseline.
In that form a moving average is a lookback average of ordered prices used as an explicit quantitative baseline against the current close.
How the baseline is read
A conventional reading treats a close above the average as bullish and treats an upward-sloping average with price still above it as a stronger bullish state.
Slope-change is a one-bar comparison of the current average with the prior average to mark a rising or falling baseline.
A commentary window on the same study
Commentary code can be attached to the same study so that selecting a bar returns formatted high, close, and low values together with the indicator interpretation.
That readout is a commentary window, a bar-level display that restates price, indicator value, and the active rule in one place.
Rules that turn the baseline into wording
A rule-based entry is a written if-then procedure that turns price-versus-average and slope conditions into buy, sell, or wait language.
An if-then close-versus-average rule can append bullish wording when the close is above the plotted average and bearish wording when it is not.
A further rule can flag a close above a still down-sloping average as a possible bullish change in trend and pair it with a sell-stop placement at a prior relative low.
A first-close-condition treats the first close through a still-sloping average as a possible change in trend.
The same combination is more notable when the close is the first one above the average after many bars, while the inverse close below a rising average is described as less meaningful in a bull market.
What the written procedure can do
The written procedure is only as useful as the algorithm encoded in it and is meant to surface overlooked conditions, not to replace independent chart judgment.
Editorial note: TradersWeek treats that limit as part of the method. The commentary window can make the active rule visible. It does not make the wording a substitute for reading the chart.
All readings on this track · 14 readings
- 1990Moving-average direction, range penetration, and a dollar stop
- 1990Rally and reaction day signals as a mechanical stock system
- 1991Constructing steppable currency games with stop alerts
- 1995Trading as a business: a case study of preparation and rule-based entry
- 1997Bond timing rules as one testable procedure
- 2000Rule-based moving average commentary as a testable filter
- 2004Constructing a fifteen-bar trend trigger as a next-open system
- 2005State-locked rules for mechanical trading
- 2007Same-session long entry from a moving-average filter
- 2012Liquidity, share count, and stop-trigger costs
- 2012Monthly eight-bar average entry and exit rules
- 2012Constructing a simple moving average filter with fixed crossing rules
- 2014A two-average brick crossover is not yet a trading system
- 2020Reject long-bar entries driven by volatility fear of missing out