Backtesting: Interpreting The Past
Backtesting is a key component of effective trading-system development. It is accomplished by reconstructing, with historical data, trades that would have occurred in the past using rules defined by a given strategy. The result offers statistics that can be used to gauge the effectiveness of the strategy. Using this data, traders can optimize and improve their strategies, find any technical or theoretical flaws, and gain confidence in their strategy before applying it to the real markets. The underlying theory is that any strategy that worked well in the past is likely to work well in the future, and conversely, any strategy that performed poorly in the past is likely to perform poorly in the future. This article takes a look at what applications are used to backtest, what kind of data is obtained, and how to put it to use!
Tutorial: Basics of Technical Analysis
The Data and The Tools
Backtesting can provide plenty of valuable statistical feedback about a given system. Some universal backtesting statistics include:
The second screen is the actual backtesting results report. This is where you can find all of the statistics mentioned above. Again, here is an example of this screen in AmiBroker:
In general, most trading software contains similar elements. Some high-end software programs also include additional functionality to perform automatic position sizing, optimization and other more-advanced features.
The 10 Commandments
There are many factors traders pay attention to when they are backtesting trading strategies. Here is a list of the 10 most important things to remember while backtesting:
Conclusion
Backtesting is one of the most important aspects of developing a trading system. If created and interpreted properly, it can help traders optimize and improve their strategies, find any technical or theoretical flaws, as well as gain confidence in their strategy before applying it to the real world markets.
Resources Tradecision (http://www.tradecision.com) - High-end Trading System Development AmiBroker (http://www.amibroker.com) - Budget Trading System Development.
Tutorial: Basics of Technical Analysis
Backtesting can provide plenty of valuable statistical feedback about a given system. Some universal backtesting statistics include:
- Net Profit or Loss - Net percentage gain or loss.
- Time frame - Past dates in which testing occurred.
- Universe - Stocks that were included in the backtest.
- Volatility measures - Maximum percentage upside and downside.
- Averages - Percentage average gain and average loss, average bars held.
- Exposure - Percentage of capital invested (or exposed to the market).
- Ratios - Wins-to-losses ratio.
- Annualized return - Percentage return over a year.
- Risk-adjusted return - Percentage return as a function of risk.
The second screen is the actual backtesting results report. This is where you can find all of the statistics mentioned above. Again, here is an example of this screen in AmiBroker:
In general, most trading software contains similar elements. Some high-end software programs also include additional functionality to perform automatic position sizing, optimization and other more-advanced features.
The 10 Commandments
There are many factors traders pay attention to when they are backtesting trading strategies. Here is a list of the 10 most important things to remember while backtesting:
|
Backtesting is one of the most important aspects of developing a trading system. If created and interpreted properly, it can help traders optimize and improve their strategies, find any technical or theoretical flaws, as well as gain confidence in their strategy before applying it to the real world markets.
Resources Tradecision (http://www.tradecision.com) - High-end Trading System Development AmiBroker (http://www.amibroker.com) - Budget Trading System Development.
Free Annual Reports