1994issue C121-11
Neural-net construction as a mechanical trading-system problem
This first of two parts treats a neural network as software that maps inputs to an output, then frames training as system optimization. Architecture, weight search, and pre-market mapping checks are locked so entry, exit, and abstention can stay one mechanical trading system.
- A neural network maps independent inputs to a dependent output, including linear or nonlinear relationships learned from representative samples and later applied to new inputs.
- Training is an optimization search that reduces the difference between desired and actual output by changing connection strengths and other internal characteristics.
- Four search procedures are distinguished: exhaustive enumeration, stochastic retention of improving random guesses, gradient descent, and genetic algorithms that combine crossover with mutation.
- Architecture was selected automatically, and the software was checked on known mapping problems before market use. Trading-system verification is reserved for the sequel.
A mapping from inputs to an output
The archive presents a neural network as software that maps independent inputs to a dependent output. The learned relationship may be linear or nonlinear. It is taken from representative samples and later applied to new inputs.
This installment is the first of two parts. It covers network definition, optimization methods, and software design. Buy and sell rules, data preparation, and a method for verifying trading-system performance are held for the sequel.
How a node computes its result
Each network node sums incoming signals plus an optional bias. It then applies a nonlinear transfer function, such as a sigmoid, a Gaussian, or a sine, before passing the result onward. The described networks end at a single output node.
Training as system optimization
Training is framed as an optimization search. The search reduces the difference between desired and actual output by changing connection strengths and other internal characteristics. The archive compares that search to least-squares curve fitting.
Four optimization procedures are distinguished. Exhaustive enumeration tries every candidate. Stochastic search keeps random guesses that improve the result. Gradient descent follows the error slope. Genetic algorithms combine crossover with mutation.
Gradient descent is said to reach a global minimum quickly when the error surface is smoothly concave. Local minima can still trap the search away from that minimum.
Stochastic weights and automatic architecture
The software used stochastic weight search instead of gradient descent. It kept randomly chosen weights that reduced output error, shrank the sampling range as error fell, and allowed transfer functions with zero slope or discontinuous jumps.
Network architecture, including layer count, node count, transfer-function mix, and bias use, was selected automatically. Unattended genetic-algorithm trials tested a small number of internal layers and mixed transfer functions. A complexity penalty was used to limit overfitting.
Checks before market use
Before market use, the software was checked on exclusive-or, circle area, trigonometric and polynomial maps, sunspot and Canadian lynx series, and a large input matrix in which only a few columns determined the output.
What this part leaves for the sequel
The sequel is reserved for data preprocessing, probability-based buy and sell rules, and a method for verifying trading-system performance. Editorial: that later verification step is where Walk-forward analysis would complete the single Mechanical trading system procedure. This part does not supply those rules or that verification.
All readings on this track · 50 readings
- 1990Three-window walk-forward system evaluation
- 1990Building the construction layer of a mechanical trading system
- 1991Constructing walk-forward neural trading rules
- 1991Constructing neural trading systems from facts to walk-forward
- 1992Walk-forward evaluation of stop overlays on average crossovers
- 1992Audit mechanical system tests for fills and regimes
- 1993Walk-forward evaluation of monthly yield and real-rate forecasts
- 1993Constructing walk-forward forecasts with linear and moving-average baselines
- 1993Walk-forward hybrid rules for intermarket forecast stacks
- 1994Neural-net construction as a mechanical trading-system problem
- 1995Constructing an intermarket neural net trading system
- 1996Weekly market breadth as one procedure on an unused window
- 1996Walk-forward evaluation of gold-index bond-fund rules
- 1996Evaluating weekday-in-month filters for index day trades
- 1996Require both a trend filter and a cycle oscillator before entry
- 1997Walk-forward windows as a diagnostic of parameter instability
- 1997Walk-forward validation of a market-breadth timing rule
- 1997Sunspot spikes and walk-forward evaluation of an adaptive cycle rule
- 1997A walk-forward check for bond-breadth timing
- 1998Walk-forward audit of regression trend forecasts
- 1998Evaluating a cubic least-squares currency trend with walk-forward segments
- 1998Walk-forward evaluation of recursive yen trend signals
- 1999Personal system design under crowd psychology
- 1999Walk-forward evaluation of a polynomial price forecast
- 2000Walk-forward optimization of regression-slope-angle rules
- 2001Construct a winter seasonal window as one procedure
- 2001Inspectable rules when system write-ups dry up
- 2002Evaluating mechanical systems before position sizing
- 2003Walk-forward construction of rule-based market-position systems
- 2007Evaluating metal seasonal windows across regimes
- 2007Evaluating mechanical timing systems against hold baselines
- 2011Walk-forward reoptimization as a system design gate
- 2011Evaluate generated systems on holdouts, then add stops
- 2012Walk-forward analysis and out-of-sample tests for a mechanical trading system
- 2012Personality-first trading system design
- 2012Scorecard-first mechanical system construction
- 2012Constructing an advancer-decliner moving average for market breadth
- 2012Formula search as mechanical system construction
- 2013Identity-first system construction
- 2013Construct a swing system from bias rules to walk-forward
- 2014Evaluate mechanical stock systems with stops and walk-forward
- 2014Walk-forward velocity filters on noisy intraday trends
- 2015Event-predictability versus position-constrained rules
- 2015Constructing mechanical systems for walk-forward tests
- 2016When a tested system must be retired
- 2016Walk-forward metric filters and chance-level checks for selected inputs
- 2018Evaluate mechanical trading systems without catalog rankings
- 2019Phased stop construction from entry risk to trailing exit
- 2020Stockpiling simple ideas for mechanical system construction
- 2020A pretty first draft is not a walk-forward waiver