GrowBlocks
Home
Solutions
Cases
Knowledge
Design
Media

5 Common Pitfalls of Quantifying Backtesting

The most painful thing in quantitative trading isn't "not thinking of a strategy," but "backtesting looks good, but real trading loses money." This gap almost always comes from hidden traps in backtesting.

Published:2026-06-18 02:46:2910min readAuthor:GrowBlocks Team
TG:@YY462855312Website:www.grow-blocks.comShare:

1. Lookahead Bias

The strategy unexpectedly uses "data that will only be known in the future." The most classic is triggering a buy signal with the day's closing price—in reality, you can't know the closing price at 3 p.m.

It is recommended to execute at the opening price of the Next Bar, and data access must strictly follow the timestamp.

量化回测的 5 个常见陷阱

2. Insufficient estimation of slippage and fees

In backtesting, assuming "immediate execution at current price," the live trading requires reaching the counterparty, considering depth, and deducting fees. Slippage in small-cap coins can easily swallow all the gains of a strategy.

It is recommended to add at least 0.3% slippage + actual fees in backtesting.

3. Survivorship Bias

Using historical data from coins still active today, backtesting will automatically exclude coins that have been delisted or reset to zero. In actual investment, you never know which one will go to zero. This bias gives backtest results a systemic bias.

Solution: Use "complete historical data" containing delisted coins to bear higher data costs.

4. Overfitting

The strategy is maximized based on historical data, with parameters highly dependent on market characteristics over a certain period.

Out-of-sample testing is essential: divide the data into training and test sets, adjust parameters upward on the training set, and only adjust the test set without adjusting it.

量化回测的 5 个常见陷阱

5. Backtesting and live code paths are inconsistent

This is the deadliest and most concealed. The backtest engine and live trading execution use different codes; in backtesting, "order placed immediately executed" requires queueing in live trading.

Solution: The order logic used by the backtest engine must be the same code as the real market, except the data source is changed to historical data.

量化回测的 5 个常见陷阱
grow-blocks-logo
GrowBlocks Technical Team
Focused on custom blockchain development for 10 years, with 200+ projects delivered covering exchanges, public chains, Layer2, wallets, and DApp development. This article is based on our real project delivery experience.

Continue Reading

contact us

Want to see the complete Figma file?

Schedule a 30-minute technical consultation where we walk you through the most relevant Figma / Lanhu files for your project via remote demo, including all pages, component libraries, and interactive prototypes.