Skip to main content
Track Pattern recognition
3 / 25
Library

1989issue C111-9

Constructing supervised forecasts on moving averages

A weekly forecast can be built from a moving-average input stage, a transfer function, and a supervised learning law. The trained pattern-recognition output is constructed to be checked against untrained averages on the same lookback and horizon.

  • When many paired examples exist but the mapping from ordered market observations to a target is poorly specified, a trainable network is offered as a pattern-recognition and noise-filtering alternative to an explicit algorithm.
  • The equal-weight moving average of the last N prices becomes a weighted moving average when each 1/N coefficient is replaced by its own weight, and that weighted sum is the fully connected input stage of one processing element.
  • Supervised training for a later price target may correct weights with a Hebbian threshold update, a least-mean-square rule, or a generalized delta rule, so the map is trained on data rather than written as fixed program rules.
  • The trained pattern-recognition forecast is constructed to be checked against explicit four-week and ten-week moving-average baselines on the same weekly close-to-close trend task.
Entries in this reading2 entries

Why a trainable map

When many paired examples exist but the mapping from ordered market observations to a target is poorly specified, a trainable network is offered as a pattern-recognition and noise-filtering alternative to an explicit algorithm. The same construction is described as a way to model ordered financial series and to emit a plotted forecast from a sample simulator.

The construction is described as adaptive and massively parallel, with inputs and outputs cross-compared for relationships, and as trained on data rather than written as fixed program rules.

From a moving average to a processing element

The equal-weight moving average of the last N prices becomes a weighted moving average when each 1/N coefficient is replaced by its own weight. That weighted sum is treated as the fully connected input stage of one processing element.

A transfer function is applied to that weighted sum. A sigmoid form is used as a soft-saturating map onto the unit interval, returning the asymptotic bounds when the raw input would overflow.

Supervised learning on a fixed window

Supervised training for a five-period-ahead price target uses a ten-input window. With thirty periods of history indexed so the latest bar is zero, inputs P(-29) through P(-20) are corrected against the later observed price P(-15).

Weight correction may use a Hebbian threshold update, a least-mean-square rule that multiplies a signal error by a learning-rate factor and optional momentum, or a generalized delta rule that assigns a share of that error to earlier layers.

An untrained baseline on the same task

The trained pattern-recognition forecast is constructed to be checked against explicit moving-average baselines on the same weekly close-to-close trend task, including four-week and ten-week averages.

Educational research material, not investment advice. Historical source context does not establish present-day performance.
3 of 25 in the Pattern recognition track
19911-11 pp.Next on Pattern recognitionCandlestick labels as stacked construction testsThe real body spans open to close and the shadows mark the high and low. Fill is a polarity rule: filled when the close is below the open, empty when the close is above the open.
All readings on this track · 25 readings
  1. 1986Construct a decision procedure that revises itself
  2. 1989Finish the volume checklist before scoring the breakout
  3. 1989Constructing supervised forecasts on moving averages
  4. 1991Candlestick labels as stacked construction tests
  5. 1992Walk-forward evaluation of weekly price-change patterns
  6. 1993RSI price pattern templates and open interest
  7. 1994Constructing a dual-net day-ahead index direction forecast
  8. 1994A clocked stochastic second crest with a window-high stop
  9. 1996Volatility-ratio, inside-day and narrow-range-4 entry construction
  10. 1998Sliding-window correlation for cup-and-handle construction
  11. 2000Constructing rectangles for breakout hypotheses
  12. 2001Turning one candle into a ranked numeric object
  13. 2002Fuzzy-scored chart patterns as testable rules
  14. 2002From hot-zones to an open-close-matrix
  15. 2003Volume pressure and a band-clearing breakout case
  16. 2004Evaluating chart patterns against price objectives
  17. 2004Cobweb turning points from price structure
  18. 2005Hybrid decision trees and pattern recognition for trend rules
  19. 2005Two-bar zone codes for testable pattern systems
  20. 2005Price bar pattern construction and next-bar frequency
  21. 2008Observe markets before following pattern or system rules
  22. 2012Treat a four-leg Fibonacci completion as an unpaid hypothesis
  23. 2014Hidden three-channel regression signals for stock and call option entries
  24. 2014A shared daily-chart-level framework for session trades and swing holds
  25. 2015Condensed candlestick signatures
All 48 readings tagged Pattern recognition
Also on Pattern recognition5 readings