Main Page > Articles > Change Of Character > Backtesting Break of Structure and Change of Character Strategies

Backtesting Break of Structure and Change of Character Strategies

From TradingHabits, the trading encyclopedia · 5 min read · February 28, 2026
The Black Book of Day Trading Strategies
Free Book

The Black Book of Day Trading Strategies

1,000 complete strategies · 31 chapters · Full trade plans

Introduction

Backtesting is the process of testing a trading strategy on historical data to determine its potential profitability. It is an essential step in the development of any systematic trading strategy, including those based on Breaks of Structure (BOS) and Changes of Character (CHoCH). This article provides a practical guide to the art and science of backtesting.

The Backtesting Process: A Step-by-Step Guide

The backtesting process can be broken down into the following steps:

  1. Formulate a clear and unambiguous trading strategy: The rules of the strategy must be defined in a precise and objective manner.
  2. Obtain high-quality historical data: The accuracy of the backtest is highly dependent on the quality of the data used.
  3. Code the strategy: The strategy must be coded in a programming language such as Python or MQL4.
  4. Run the backtest: The strategy is then run on the historical data.
  5. Analyze the results: The results of the backtest are analyzed to determine the strategy's performance.

Key Performance Metrics

The following table lists some of the key metrics used to evaluate the performance of a backtested strategy:

MetricDescription
Total Net ProfitThe total profit or loss generated by the strategy.
Sharpe RatioA measure of risk-adjusted return.
Max DrawdownThe largest peak-to-trough decline in the equity curve.
Profit FactorThe ratio of gross profits to gross losses.

Common Pitfalls to Avoid

Backtesting is a effective tool, but it is also fraught with potential pitfalls. Some of the most common pitfalls to avoid include:

  • Overfitting: This occurs when a strategy is too closely tailored to the historical data and is unlikely to perform well in the future.
  • Look-ahead bias: This occurs when the backtest uses information that would not have been available in real-time.
  • Survivorship bias: This occurs when the backtest only includes the assets that have survived to the present day, ignoring those that have failed.

Conclusion

Backtesting is an essential tool for any serious trader. By following a disciplined and systematic approach to backtesting, and by being aware of the common pitfalls, traders can develop robust and profitable trading strategies based on Breaks of Structure and Changes of Character.