TAYU Academy course material · Backtest & Live Deployment
Course Notes
1. Understand the core idea of “Reading backtest metrics” and explain it in your own words
2. Master this module's focus: Building a backtesting framework
3. Complete the assignment on your own and check it against the reference answer
Yield, volatility, Sharpe, drawdown, and turnover each describe different aspects. Annualized returns must specify the frequency and sample length; short-term annualized returns are not the actual performance over a full year.
To do a reliable backtest, use accurate historical data (including spread), assume trading on the next candle, include commissions and slippage, avoid survivorship bias and lookahead bias, and save reproducible configurations (data version, parameters, random seed).
For the same strategy with zero costs, an annualization of 25% drops to 8% when accounting for a 1 pip spread and commissions, highlighting how sensitive this strategy is to costs.
Balance sheet equity → Confirm cash flow → List net income/drawdown/fees/trade count → Check annualized period → Display original value not annualized.
Calculate the period profit as 10300 - 10000 = 300. Stating the annual profit of 3% directly is inaccurate; the specific annual profit should be calculated based on the actual period.
Periodic return is 3%. Annual return cannot be referred to without specifying the period; fees already deducted should not be repeated; valuation of open positions and cash flow should be separately noted.
Closing at 100 generates a signal for the next open at 103; backtesting at 100 for a trade would be equivalent to using an unavailable price. If the same H=110, L=90, both the SL95 and TP105 orders are covered, the order of triggering is unknown, and automatic profit calculation cannot be done automatically.
A longer sample does not remove systematic look-ahead leakage; synthetic data is only for checking calculations and does not prove a strategy works.
The script covers data cleaning, a traceable next-open simulation, and equity and risk arithmetic. It is not a production trading engine; the hand calculations and report tasks for this lesson still have to be done independently.
python research_lab.py --self-test
python research_lab.py --output academy-results1. Costs must be included in the backtest
2. Reproducible configuration
3. Avoid look-ahead and other biases
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.