Backtest
Technical analysisAlso called: Backtesting
Applying a trading rule to historical data to estimate how it would have performed.
In plain terms
An experiment where you already know the answer, run by someone who wants a particular result. Useful if you are careful and dangerous if you are not.
Read the full lesson →Look-ahead bias
Technical analysisUsing information in a backtest that was not actually available at that point in time.
In plain terms
Trading on a quarterly result weeks before it was filed. Makes any strategy look brilliant.
Read the full lesson →Lookahead bias
Technical analysisUsing information in a backtest that was not available at the time the decision would have been made.
In plain terms
Buying at today’s close because of a signal that only existed once today finished. It roughly doubles backtested returns and is invisible unless you check.
Read the full lesson →Slippage modelling
Trading & ordersEstimating the difference between the price a backtest assumes and the price a live order actually fills at.
In plain terms
A daily-timeframe system loses relatively little to it. An intraday one can lose its entire theoretical edge.
Read the full lesson →Data integrity
Technical analysisWhether a price series is accurate and consistently adjusted.
In plain terms
A common and silent reason backtests look remarkable and cannot be reproduced live.
Read the full lesson →Execution
Trading & ordersGetting an intended order actually filled, and the gap between the price a strategy assumed and the price it achieved.
In plain terms
Where backtests go to die. Fills at the next open rather than the close, timeouts, rate limits and costs all run in the same direction, and the damage grows with frequency.
Read the full lesson →Intrabar path
Technical analysisThe order in which prices were reached inside a bar — information the bar’s four numbers do not carry.
In plain terms
A candle records how far the session reached each way and throws away when. Any rule with a stop and a target depends on the order, and a backtest has to assume one.
Read the full lesson →Out-of-sample test
Technical analysisTesting a rule once on data that was not used to develop it.
In plain terms
The only backtest result worth much. Develop on two-thirds, test once on the rest, and resist the urge to tweak afterwards.
Read the full lesson →Repainting
Technical analysisAlso called: Repaint, Repainting indicator
When an indicator or chart marker changes its historical values as later data arrives, so what it shows today is not what it showed at the time.
In plain terms
Anything that centres a calculation, or that marks a swing point only once the swing is confirmed, cannot have known the answer when it appears to. A backtest that reads those values as though they were available live produces results you can never reproduce with money.
Read the full lesson →Smoothing
Technical analysisAveraging price data to suppress short-term noise, as Heikin-Ashi does by blending each bar with the one before it.
In plain terms
It buys clarity by discarding information, and it flatters backtests badly — because the whipsaws it removed are exactly the ones that would have stopped you out live.
Read the full lesson →Walk-forward testing
Technical analysisDeveloping rules on one period of data, freezing them, then testing once on data never examined.
In plain terms
The strongest single defence against fooling yourself with a backtest.
Read the full lesson →