Why great backtests fail live
David Bailey, Jonathan Borwein, Marcos López de Prado and Qiji Zhu showed that if you try enough variants of a strategy, one of them will look excellent by chance. With 5 years of daily data, trying more than about 45 independent configurations makes a backtest Sharpe ratio of 1 likely even when the true edge is zero 1.
Every setting you tweak, every filter you add after seeing the results, counts as a try. The more you search, the less your best result means.
Data snooping: the same problem at scale
Halbert White built a 'reality check' to test whether the best of many strategies beats chance once you account for all the ones tried 4. Applied to 7,846 technical trading rules on 100 years of the Dow Jones, the best rule looked significant in the sample but its edge did not carry into the later period 3.
Campbell Harvey, Yan Liu and Heqing Zhu counted 316 published return factors and argued that a new one needs a t-statistic above 3.0, not 2.0, to be taken seriously 2.
Look-ahead bias and costs
Look-ahead bias means using information the trade could not have known: the day's high before it formed, a close to enter at the open, an indicator that repaints. In manual backtesting, move the chart bar by bar and decide before the next bar appears.
Then add every cost: commissions, exchange fees and slippage of at least one tick per side on futures. A scalping system with 2 ticks of average profit often disappears with them.
In-sample, out-of-sample, forward test
Split your data: build on the first part, test once on the second, untouched part. If the results collapse, the edge was the fitting. Walk-forward testing repeats this on rolling windows.
Then forward test on a simulated account for a few weeks, logging every trade as if it were real. Only then risk money or an evaluation fee.
How many trades are enough?
There is no magic number, but fewer than 100 trades rarely tell you much about the real win rate and average R. Count the variants you tried, prefer simple rules with few settings, and distrust any result that depends on one exact parameter.