匡醍量化|大富翁量化 This is a comprehensive guide to common pitfalls in the "Backtesting and Risk Control" series: Backtesting is the most self-deceptive stage in quantitative research. This article lists all the traps that "look beautiful but lose money" in one go, with real cases from this site following each trap.
| Trap | One-Sentence Summary | Site Case |
|---|---|---|
| Look-Ahead Bias | Using data that didn't exist "at that time" | Data Normalization |
| Overfitting | Parameters are tuned, not selected | Beyond Out-of-Sample Testing |
| Survivorship Bias | Only looking at stocks that survived | Low Turnover Factor |
| Costs | What remains after deducting fees | Picking Nickels in Front of a Steamroller |
| Executability | Daily bar executability ≠ You can execute | Volatility Trading |
The Sharpe Ratio Greater Than 4 Strategy details a real case: a model suddenly performed far better than historical norms, with the only change being the normalization method—global Z-score leaked "future" information into the "past." The correction method is using rolling windows (Point-in-Time): each day can only use data from that day and prior.
Self-check checklist: Use announcement dates for financial reports (not report periods), use当日 factors for price adjustment, and use the constituent list at that time. If any item uses something "known only after the fact," the backtest result is void.
Beyond Out-of-Sample Testing, What Other Overfitting Detection Methods Are There systematically explains three sets of detection methods: out-of-sample testing, white noise, and label shuffling. Remember two iron rules:
The title of the Low Turnover Factor post is quite honest—"How could such a simple Alpha calculation be wrong?" A single error in details (alignment, adjustment timing, missing value handling) can reverse the conclusion.
Picking Nickels in Front of a Steamroller discusses the temptation and traps of high-frequency, low-risk strategies: nominal Sharpe ratios are high, but after deducting impact costs, slippage, and stock borrowing fees, very little remains. In the A-share market, costs start at a bilateral 2.5 basis points; the higher the turnover, the more severe the cost erosion.
KS Test and Bottom-Fishing the Shanghai Composite demonstrates that "statistically significant ≠ tradable"—no matter how well the distribution fits, it's a different story when it hits the real order book.
There is no silver bullet in backtesting, only one sentence: Assume all "too good to be true" results are your own fault first, then prove it's the market's fault.
29 articles · grouped by level