Term

Backtest

Backtesting evaluates trading rules on historical data. Learn which metrics matter, what overfitting is, and why strong historical results do not guarantee future performance.

Backtesting answers the question, 'Has this idea ever worked at all?' The rules are formulated unambiguously, run through past data, and the output is a set of numbers: how many trades there were, what proportion of them were profitable, how the average profit compares to the average loss, and what the maximum drawdown was.

The main value of a backtest is negative: it quickly shows that an idea does not work. It is cheap and useful. The opposite statement is weaker - a good result in the past does not mean that the method will continue to work.

The main trap is called overfitting. If you tweak the settings for a long time, you will always find a combination that looks brilliant on a specific segment of history. It describes that segment exactly, not the market. Signs of overfitting are recognizable: too many parameters, the result deteriorates sharply with a small shift of any of them, the test is done on a short piece of history or on a single asset.

What makes testing more honest. Test over a long period that includes different market conditions. Check robustness on other assets and timeframes. Leave part of the history untouched and run the finished rules on it. And be sure to account for real costs - commissions and slippage turn many beautiful systems into unprofitable ones.

Related terms

TradingView chart with Buy and Sell signals from the Midas indicator
Midas multi-indicator for TradingViewOne of the most advanced indicators for trading
  • Non-repainting signals
  • Interactive technical analysis
  • 7 strategies to choose from
Midas multi-indicator for TradingViewSignal, stop, and 3 targets - directly on the chart
  • Signal locks at candle close
  • Stop and 3 targets build automatically
  • The trade plan is visible before entry