Against the backdrop of rising global geopolitical risks and intelligent computing advances, multi-period portfolio decision making under uncertainty has become central in algorithmic trading and intelligent investment advisory. To address real trading rules and extreme tail risk in the Chinese A-share market, this paper combines mixed-integer linear programming with conditional value-at-risk to build a multi-period portfolio optimization model. The model unifies multiple practical constraints for the first time: integer trading lots, single-stock investment limits, minimum commission, maximum holding cardinality, and self-financing. We prove the model is NP-hard via reduction from the 0–1 knapsack problem. Multi-scale numerical experiments, two-factor sensitivity analysis, and empirical tests on real A-share data show that the model effectively balances expected return and extreme tail risk while complying with all trading rules. This work enriches uncertain multi-stage optimization theory and provides reliable quantitative support for risk-controlled quantitative investment.