TAYU Academy course material · Backtest & Live Deployment
Text walkthrough
Walk-forward validation
A self-paced text walkthrough, without video or audio. See the article below for worked examples and materials.
Course Notes
1. Understand the core idea of “Walk-forward validation” and explain it in your own words
2. Master this module's focus: Forward test
3. Complete the assignment on your own and check it against the reference answer
Each fold in Walk-Forward must only use past parameters, and the test segments cannot be scored repeatedly. Rolling training segments can overlap, but the combination evaluation only combines independent future results.
A forward test runs the strategy on a demo account with live prices to check execution differences (slippage, disconnections, rejections) and how the strategy performs on new data. Run it for at least several weeks, build up enough trades, and compare against backtest expectations.
Backtest slippage was set to 0.2 pip, but real-world testing showed 0.6 pip. The expected value of the strategy should be reassessed based on the real-world testing value.
Write each fold training/test → freeze parameters → output sample number and net result for each fold → exclude training gains → check label crossover.
Can two test folds, 61–80 and 71–90, simply be combined into 40 independent tests? How should the overlap be handled?
Cannot, 71–80 are repeated. They should predefine non-overlapping evaluation zones or a unique time key, and clearly specify which fold the repeated sample will be used in. Repeated samples cannot be treated as independent evidence.
Train rows 1-60, validate rows 61-80. If tags use the next 5 rows, tags at the end of training will use rows 61-65 and must be cleared or left as gaps. Original record time and tag end should be less than the validation start.
Don't relabel a validation segment you have already seen as "unseen data"; a walk-forward process must still record every window, not just the best.
This dependency-free script contains small labs for rank correlation, time folds, inventory valuation, covariance risk and rejection paths. The grid part only models buy-on-the-way-down inventory, with no sell-side recycling or real fills; the risk-parity part only demonstrates a given covariance and is not a general optimiser. Work from the report, and do not treat a small lab as a complete production strategy.
python strategy_labs.py1. Test execution with real-time data
2. Compare with backtest expectations
3. Conclude only once the sample is large enough
Risk warning: leveraged trading in forex, precious metals and similar products carries a high level of risk and you may lose all of your capital, or more. This course is for education only. It is not investment advice and does not promise any return. Example prices and contract specifications are teaching assumptions; always use what your own platform discloses. Past performance and backtests do not indicate future results.
All values, prices, accounts and cases in this course are teaching assumptions; the fixed materials can be reproduced offline. Marking a lesson complete only records your study. It is not a certification, a service approval or a promise of returns. Workbooks and answer files are currently provided in Chinese.
Key Takeaways
Completion records your own study, not verified competence. Exercises use fictional data; no real account or deposit is required.