# 回测

> 回测是指把一套交易策略放到历史行情数据上运行，以估计它当时的表现。它给出的是「在已经发生过的条件下的行为估计」，而不是预测。回测的价值几乎完全取决于它建模了什么：一个忽略手续费、滑点和资金费的回测，并不是对实盘结果的保守估计——它测的根本是另一个策略。

Canonical HTML page: https://qanterion.com/zh/glossary/backtesting
更新于: 2026-08-18
又称: 历史模拟, 策略回测

## 计算方式

```
A backtest is credible only when every one of these is modelled:
  · Fees, both sides, at the tier actually paid
  · Slippage, scaled to order size and market depth
  · Funding, for every interval a perpetual position was open
  · Fill realism — no filling at the close, the mid, or the signal price
  · Out-of-sample data the parameters were never fitted on
```

## 一份可信的回测必须包含什么

按实际支付档位计算的交易手续费、随订单规模缩放的滑点、永续仓位持有期间每一个结算周期的资金费，以及尊重实际可用流动性的成交逻辑——而不是直接按收盘价或中间价成交。上述每一项遗漏，都会把结果推向同一个方向：更好看。这就是为什么一份不含摩擦成本的回测不只是不精确，而是系统性地错误。

## 样本内的结果不构成证据

通过观察一份数据集挑出来的参数，描述的就是那份数据集本身。一个策略必须在它从未拟合过的时间段上接受检验，它的数字才开始有意义；而即便如此，样本里也只包含碰巧发生过的那些市场状态，这个集合远比未来可能出现的要窄。

## 常见误读

回测经常被读成预测。它只是对一份样本中一条路径的描述：同样的规则、不同的数据，就会得到不同的结果。它报告的最大回撤是那份样本内的最坏情况，因此是未来风险的下界，而不是上界。

## 动手算一算

- Sharpe ratio calculator: https://qanterion.com/zh/tools/sharpe-ratio-calculator
- 破产概率计算器: https://qanterion.com/zh/tools/risk-of-ruin-calculator

## 相关词条

- 过拟合: https://qanterion.com/zh/glossary/overfitting
- 模拟交易: https://qanterion.com/zh/glossary/paper-trading
- 滑点: https://qanterion.com/zh/glossary/slippage

## 参考资料

- [Pseudo-Mathematics and Financial Charlatanism: The Effects of Backtest Overfitting on Out-of-Sample Performance](https://www.ams.org/notices/201405/rnoti-p458.pdf) — American Mathematical Society (Notices of the AMS, Vol. 61 No. 5, 2014)
- [Interpretive Notice 9025 — Compliance Rule 2-29: Use of Promotional Material Containing Hypothetical Performance Results](https://www.nfa.futures.org/rulebooksql/rules.aspx?RuleID=9025&Section=9) — National Futures Association
- [The probability of backtest overfitting](https://doi.org/10.21314/JCF.2016.322) — Journal of Computational Finance (Risk Journals)

## Other languages

- English: https://qanterion.com/glossary/backtesting
- 繁體中文（台灣）: https://qanterion.com/zh-TW/glossary/backtesting
- 繁體中文（香港）: https://qanterion.com/zh-HK/glossary/backtesting
- 日本語: https://qanterion.com/ja/glossary/backtesting
- 한국어: https://qanterion.com/ko/glossary/backtesting
- Português (Brasil): https://qanterion.com/pt-BR/glossary/backtesting
- Türkçe: https://qanterion.com/tr/glossary/backtesting
- Bahasa Indonesia: https://qanterion.com/id/glossary/backtesting
- العربية: https://qanterion.com/ar/glossary/backtesting

## Risk notice

本术语表用于教学。此处内容不构成投资建议，页面所述任何指标都不能预测未来结果。