1990issue C061-7
Building the construction layer of a mechanical trading system
A mechanical trading system is a locked procedure for entry, exit, or abstention. Construction begins by choosing a compiled environment and reading a vendor master catalog so later system optimization can call one procedure.
- Packaged analysis tools are enough when their limits already match the trader; custom code is justified when a unique indicator or a proprietary mechanical trading system must be encoded instead of awaited.
- A compiled construction environment was chosen because it was easier to learn and because teaching and debugging aids let file-access and signal modules be written, traced, and run.
- The first construction module reads a vendor master catalog that an ordinary directory listing cannot decode, mapping opaque numbered data files to security identity, ticker, date span, and field layout.
- A two-book self-study method was presented as how a novice wrote a full technical analysis system, with later steps planned through auto-optimization of complete mechanical systems and printed test results.
Construction has to lock one procedure
A mechanical trading system is a locked procedure that turns rule inputs, market state, and execution constraints into entry, exit, or abstention signals over the system holding period. Packaged analysis tools are enough when their limits already match the trader. Custom code is justified when a unique indicator or a proprietary mechanical system must be encoded instead of awaited.
System optimization compares alternative rule inputs on that same procedure so test output can be inspected as one repeatable run rather than ad hoc judgment. Walk-forward analysis re-evaluates the same locked procedure on successive unseen segments after each optimization window, so signals are judged as a construction rather than a one-sample fit.
Choosing a compiled construction environment
A commercial user-study environment can create and test custom systems and indicators, but that flexibility makes it complex. A first encoding attempt failed, and a second succeeded after study of a beginner language that the environment closely followed.
A compiled beginner language with built-in graphics and later structured, modular features was chosen as a first language over a more professional alternative because it was easier to learn and sample programs were widely available. The bundled interpreted dialect was described as slow and clumsy, while compiled counterparts were faster and more capable.
A compiled construction environment is a language and editor setup used to write, trace, and run the file-access and signal modules that later optimization will call. One compiler environment used movable windows for editing, messages, tracing, and watching execution so changes could be tested immediately. The other supplied more features plus in-editor command help with examples that could be copied, modified, and run, and was chosen for those teaching and debugging aids.
The first module reads a master catalog
The first construction module reads a vendor master catalog that an ordinary directory listing cannot decode. A master catalog is a companion index that maps opaque data filenames to security identity, date span, ticker, and field layout so a mechanical system can select a series.
That module maps opaque numbered data files to security names, ticker symbols, start and end dates, and field counts. In that master catalog, a field count of 5 identified a stock or index and a field count of 7 identified a commodity.
Study method and later modules
A casual two-book self-study method was presented as how a novice wrote a full technical analysis system in less than three months. The first pass is for concepts without forcing every detail. A second book at the same level then lets earlier gaps resolve.
Later construction steps were planned as display screens, in-memory file handling, bar charts, indicators, study arrays, pop-up help, auto-optimization of complete mechanical systems, printed test results, and a follow-on module that loads a selected price series into memory for charting and analysis.
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