TAYU Academy course material · Trading Data Analysis
Course Notes
1. Understand the core idea of “Indicator calculation in practice” and explain it in your own words
2. Master this module's focus: Performance metrics
3. Complete the assignment on your own and check it against the reference answer
Independent manual verification should be possible for practical operations. Units, missing values, and undefined denominators must be explicitly handled, and undefined indicators cannot be filled with 999 or 0.
Common metrics: net P/L, win rate (state how breakeven trades are counted), reward-to-risk ratio, profit factor (gross profit ÷ gross loss), expectancy, maximum drawdown (measured from the equity peak), and Sharpe ratio (state the calculation frequency and risk-free rate assumption).
Example: total profits of $2,500 and total losses of $1,500 give a profit factor of 1.67; the maximum drawdown from an equity peak of $12,000 down to $10,800 is 10%.
Given fixed small sample → manual calculation → code calculation → compare tolerance → test full win, full loss, empty sample → record not_available.
What status should be returned for the win rate of an empty sample and the PF of all wins? Separately, calculate the mean of +2R/−1R/+1R.
Empty samples cannot be calculated; PF for full wins should be noted as undefined/without loss samples; mean 2/3R.��. Defaulting to 0 to fake normal results is not allowed.
Equity sequence: 100, -50, 0, 150, -100, total 100, positive profit 250, absolute negative profit 150, PF=1.6667. Break-even rate 40%, rank break-even 50%. Initial 1,000, calculate equity sequentially according to the cash sequence, peak to 1,200, retracement 8.3333% to 1,100.
Annualising a Sharpe ratio must not treat each trade as a day without explanation; a small sample should not be described as certified stability.
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. State how each metric is defined
2. Drawdown is measured from the equity peak
3. Metrics are unstable when the sample is too small
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.
Independent manual verification should be possible for practical operations. Units, missing values, and undefined denominators must be explicitly handled, and undefined indicators cannot be filled with 999 or 0.
Record your work and compare the reference result. Self-checks are not verified competence.
Completion records your own study, not verified competence. Exercises use fictional data; no real account or deposit is required.