TAYU Academy course material · Portfolio Strategies & Risk
Course Notes
1. Understand the core idea of “Allocate by market regime” and explain it in your own words
2. Master this module's focus: Dynamic allocation
3. Complete the assignment on your own and check it against the reference answer
Allocation by regime should use known indicators at the time of switching, as state transitions can lead to turnover and misjudgment. One should not assign a past state with the most profitable strategy for the future.
One can allocate (using an inverse volatility approach) for risk parity, or adjust weights based on market states (trend, range). Adjusting too frequently increases costs, and state judgments can also lag.
Example: Strategy A has an annualized volatility of 10%, while Strategy B has an annualized volatility of 20%. By allocating weights based on the inverse of the volatility, Strategy A would have a weight of approximately 2/3 and Strategy B would have a weight of approximately 1/3, to make their risk contributions more comparable (here simplified by ignoring correlation).
Define states on the training segment → freeze the mapping weights → check detection delay → include switching costs → give a fallback for unknown states.
Should we automatically use the high volatility weights if the rules indicate A/B should be 30%/20% with 50% cash, given the current state is unknown?
One should not guess but handle it according to the preset unknown state rules, such as pausing new additions and retaining cash. Choosing the rollback option should be pre-determined, not decided by post-event gains.
Two strategies have a 10% and 20% volatility in one direction and a 10% and 5% volatility in the opposite direction. They are normalized with weights of 2/3 and 1/3. If the correlation changes, the risk contributions may not be exactly equal. It cannot be determined that the weights at the start of the test period can be reversed based on the entire test period's volatility.
Market regime classification can also be wrong; never choose the day's weights using a trend known only afterwards.
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. Allocate by risk, not by capital
2. Rebalancing frequency must account for costs
3. Regime detection lags
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.