Backtesting
Backtesting is the process of testing a trading strategy against historical market data to evaluate how it would have performed in the past, helping traders assess strategy viability before risking real capital.
Oil stopped falling and started rising. WTI at 73.96 is up 3.57% from the 71.41 the prior state recorded, Brent at 78.76 up 3.62% from 76.01, and the Brent-WTI spread widened to 4.80 from 4.60, its second consecutive widening and 0.20 from the 5.0 trigger. The structured 30-day window still prints -…
What Is Backtesting?
Backtesting is the process of applying a trading strategy to historical market data to determine how it would have performed. By simulating trades on past data with specific entry rules, exit rules, and position sizing, traders can evaluate a strategy's profitability, risk characteristics, and robustness before risking real capital.
Backtesting sits at the intersection of quantitative finance and practical trading, serving as the critical bridge between theoretical conception and live deployment. It answers a deceptively simple question: "If I had traded this strategy over the past N years, what would my results have been?" The answer, however, is only as reliable as the methodology used to generate it. A rigorous backtest produces metrics like the Sharpe ratio, maximum drawdown, win rate, and profit factor. A careless one produces false confidence.
Why It Matters for Traders
Without backtesting, strategy development is essentially guesswork. Traders who skip this step are committing real capital to rules that have never been stress-tested against market reality. Backtesting allows a trader to estimate expected returns, understand the distribution of losses, and calibrate position sizing before a single live trade is placed.
Beyond individual strategy validation, backtesting is essential for portfolio construction. Running multiple strategies through the same historical period reveals correlation patterns: two strategies that look strong in isolation may both collapse during the same market regime, offering no true diversification. Institutional desks and systematic hedge funds treat backtesting as a mandatory filter, often requiring strategies to demonstrate positive out-of-sample performance across at least two distinct market cycles before allocation is considered.
Backtesting also informs risk management decisions. Knowing that a strategy experienced a 35% drawdown during the 2008 financial crisis, for example, allows a trader to size positions appropriately and set realistic expectations for future stress periods.
How to Read and Interpret Backtesting Results
The raw equity curve is the starting point, but several derived metrics carry more analytical weight:
- Sharpe ratio: Values above 1.0 are generally acceptable; above 2.0 suggests a strong risk-adjusted return profile. Be skeptical of Sharpe ratios above 3.0 on short backtests, as they often indicate overfitting.
- Maximum drawdown: The peak-to-trough decline in portfolio value. A strategy with a 50% maximum drawdown requires a 100% gain just to recover. Most professional managers target maximum drawdowns below 20-25%.
- Profit factor: Total gross profit divided by total gross loss. A value above 1.5 is a reasonable baseline; below 1.2 leaves little margin for real-world execution slippage.
- Out-of-sample performance ratio: Comparing in-sample Sharpe to out-of-sample Sharpe reveals how much performance degrades on unseen data. A ratio below 0.5 (out-of-sample Sharpe less than half the in-sample figure) is a strong warning sign of overfitting.
The number of trades also matters critically. A backtest generating only 30 trades over ten years produces statistically unreliable metrics. Most analysts require at least 100 to 200 independent trade observations before drawing meaningful conclusions.
Historical Context
The limitations of backtesting became painfully visible during the 2007-2009 financial crisis. Numerous quantitative strategies, particularly those built on mean-reversion and credit spread models, had produced exceptional backtested Sharpe ratios through the mid-2000s. Many of those backtests, however, were constructed on data from 2000 to 2006, a period that did not include a genuine systemic liquidity crisis. When correlations across asset classes converged toward 1.0 in late 2008, strategies that appeared uncorrelated in backtesting moved in lockstep, amplifying losses rather than diversifying them.
A more recent illustration came in early 2020. Volatility-selling strategies, including short VIX futures and short variance swap positions, had backtested beautifully across the 2010-2019 period, a decade characterized by historically suppressed volatility. The VIX spike to 85.47 in March 2020 produced drawdowns that backtests anchored to the post-2010 regime had never simulated, wiping out years of accumulated gains in days.
Limitations and Caveats
Overfitting remains the most dangerous trap in backtesting. By adding enough parameters, any strategy can be engineered to fit historical data perfectly, capturing noise rather than genuine signal. The result looks exceptional in-sample but collapses on live data. Walk-forward analysis and out-of-sample testing are the primary defenses, but neither fully eliminates the risk.
Survivorship bias systematically inflates backtested returns when the universe of securities tested includes only those that survived to the present day. A backtest of S&P 500 stocks using today's index composition ignores every company that was delisted, went bankrupt, or was removed from the index over the test period.
Look-ahead bias is a subtler but equally damaging error. It occurs when a backtest inadvertently uses information that was not available at the time of the trade decision, such as using end-of-day closing prices to trigger intraday signals, or incorporating revised economic data rather than the originally released figures.
Liquidity assumptions are frequently unrealistic. A strategy that trades thinly capitalized small-cap stocks may show strong backtested returns, but the actual market impact of executing those trades at scale would erode performance substantially. Backtests rarely model market impact accurately.
Finally, regime change is a structural limitation no backtest can fully address. Historical data reflects the specific monetary policy, regulatory environment, and market microstructure of its era. A strategy optimized on pre-2008 data may be fundamentally unsuited to a post-quantitative-easing world.
Practical Application
Professional-grade backtesting follows a disciplined sequence. First, define all rules explicitly before touching the data. Second, divide the available data into an in-sample optimization period and a reserved out-of-sample validation period, typically allocating 70% and 30% respectively. Third, run the strategy on the out-of-sample data exactly once; repeated testing on the same out-of-sample set gradually contaminates it.
Use Monte Carlo simulation to stress-test the strategy by randomizing trade order and sampling return distributions, generating a range of possible outcomes rather than a single equity curve. Cross-validate across multiple asset classes and time periods where applicable. Finally, paper trade or run the strategy at minimal size in live markets before full deployment, treating the first three to six months of live trading as an additional validation layer. The goal is not to find a strategy that performed well historically; it is to find one with a plausible, persistent edge that historical data supports.
Frequently Asked Questions
▶How much historical data do you need for a reliable backtest?
▶What is the difference between in-sample and out-of-sample backtesting?
▶Can a strategy that backtests well still fail in live trading?
Backtesting is one of the signals monitored daily in the AI-driven macro analysis on Convex Trading. The platform synthesises data across monetary policy, credit, sentiment, and on-chain metrics to generate actionable trade recommendations. Create a free account to build your own signal layer and see how Backtesting is influencing current positions.
Macro briefings in your inbox
Daily analysis that explains which glossary signals are firing and why.