1999issue C081-8
Walk-forward evaluation of a polynomial price forecast
A quadratic or cubic polynomial is refit each day on recent average prices to produce a next-day forecast. That curve is only a trend proxy until a percentage-turn rule is checked on a later unused year.
- A quadratic or cubic least-squares forecast is refit each day on the last T days of average high-low prices and used only to produce a next-day price.
- The percentage-turn rule becomes a mechanical trading system only after those entries and exits are applied to a later unused year.
- A three-year in-sample window against a one-year forward test is an experimental ratio, chosen so recent dynamics can appear without distant regimes dominating.
- If unused segments cannot be modeled usefully, later real-time results are treated as random rather than as a validated mechanical system.
A daily polynomial forecast
The least-squares forecast is the next-period price from a quadratic or cubic polynomial fitted by minimizing squared vertical error over a lookback of average prices. Each day the polynomial is refit on the last T days of average high-low prices and used to produce a next-day price forecast.
Linear regression, in this workflow, is the least-squares fit that produces the unique polynomial coefficients used as the forecast baseline. Optimization may choose whether the quadratic or the cubic form is the better trend proxy for the series under test.
How the percentage-turn rule enters and exits
The mechanical trading system is a fully specified procedure that maps those fitted coefficients and market state into buy, sell, or stay-out actions without discretionary override.
A percentage-turn rule creates the signals. The system goes long when the forecast curve rises more than a chosen percent from its prior low while short and today's average price exceeds yesterday's forecast. It goes short when the curve falls more than a chosen percent from its prior high while long and today's average price is below yesterday's forecast. Both actions are taken at the next open.
Why the walk-forward window exists
Walk-forward testing is used because the stock's market conditions change. Parameters taken from a prior multi-year window are applied only to a later unused year. That walk-forward window is a rolling in-sample optimization span followed by a later unused segment used only for evaluation.
A three-year in-sample window against a one-year forward test is presented as an experimental ratio, not a unique correct length. The ratio is chosen so the window can capture recent dynamics without being dominated by distant regimes.
What should be recorded from the historical workflow
Prices in the historical workflow are not dividend-adjusted. That omission is treated as a small distortion in parameter choice and walk-forward results and should be recorded.
Charted walk-forward signals show early exits and re-entries around major 1997 and 1998 declines, including a loss after buying the first 1998 bottom before re-entering after the second bottom.
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