Investing / Trading

Does Backtesting a new strategy really get results for successful trades?

TrueData Team · 01 June 2021 · 3 Comments


Does Backtesting a new strategy really get results for successful trades?

The need for Backtesting

Backtesting is one of the most key parts of trading. It helps you to be sure of your strategies that you are implying. Mainly, backtesting relies on the historical data of the trades in the past. It helps you to make sure that you are not blindly trading but using foolproof  strategies. The question which revolves in the mind of traders is - Does Backtesting a new strategy really get results for successful trades? Go through the complete article and find out yourself! The fundamental theory is that any strategies used in the past if produced good results will work in the future. Similarly, any strategy used in the past if produced bad results will not work in the future. Backtesting takes into account the statistics of the strategies used in the past trades. The data obtained thus helps to calculate the productivity of the trading system. In a trading system, there are a set of rules which help you to decide when to buy and when to sell. In a backtest, you simply pretend to have the system before. You then use it to buy and sell stocks. If it makes money, it is a good system. If not, it is a bad system.

How is backtesting done?

How-is-backtesting-done   In a backtest, you need to pretend to have an account. You then put fake money in the account. This will help you to understand if your strategy will make you money or not. You use the past data of the strategy to see how the system works. You make a fake history and check the efficacy of the system with this fake history. More so, you can also put real money in the account while backtesting. But this might be a bit risky as you can lose money too.

Statistics used while backtesting

Statistics-used-while-backtesting   A trading strategy when backtested using the data and tools provides an analysis of and feedback about a strategy. Here are the statistics that are generally useful while backtesting:

  • The total percentage gain or loss
  • Comparing the Volatility
  • The average gain and average loss in percentage
  • The exposure to the market
  • The win to losses ratio
  • The annualized rate of return (Profitability measurement over a year in percentage)
  • The risk-adjusted return (Risk-based profitability measurement over a year)

The process of Backtesting


Backtesting is a 4 step process:

Step 1: Put together and plan all your trading strategy and the rules associated with them. For manual backtesting, there is no need for coding. But if you are using any automated backtesting software, you need to code your strategy. Step 2: Select the financial instrument(s) you want so that you can backtest your strategy on it. Step 3: Gather the historical price data for backtesting the strategy. Make sure it covers the different market conditions. Experts recommend using 5 years of data for a swing trading strategy. Step 4: The strategies obtained should be run through the historical data to see if they will work or not. Calculate important parameters like annual gross return, drawdowns and risk-reward ratio to gauge the performance of your system. Step 1 to 3 above can be done manually, but step 4 is a bit complicated and might take a longer time. At Step 4, you need to use automated software to perform backtesting.

The proper way of Backtesting

The-proper-way-of-Backtesting   The main reason to do Backtesting is to check how a certain strategy performed in the past. Thus it becomes important to consider all the data and all the trading costs. Otherwise, backtesting may show false profitability.

There are some important decisions for Backtesting:

  • Choosing the Right Market

Investor need to include all the factors while choosing a market for getting accurate profitability results. The kind of profits you want to make, the risks you are ready to take, time period of investment etc. Based on these factors, choose a segment or market for you with lower risks involved.

  • Looking into the overall market conditions

Market prices keep on varying according to the situations. Factors like inflation rates, monetary policies, annual reports of a company affects the market prices. Test your strategies in different markets under different situations to check the potential of your strategies.

  • Choosing a platform for Backtesting

You need to check for the asset classes which a backtesting platform uses before choosing one for yourself. What is the source of the market data feeds on a backtesting platform, which programming language is used should be considered.

10 Important Rules for Backtesting


The following points need to be considered while Backtesting:

  1. Using Broad market trends:

    Backtesting over a longer time frame is a safer option. This helps to get an idea of the different market conditions. Using broad market trends for a period of time to test the strategy does not produce artificial profitability. Backtesting performed for a shorter time frame, may not perform well in the bear market.
  2. Using specific genres for targeted strategies:

    Any strategy which targets for a specific genre of stocks should not be tested with a large universe. Narrowing the genre is the way. A large universe should be used for non-targeted strategies.
  3. Measuring the Volatility:

    It is very important to take into account the volatility measures especially for leveraged accounts. You should make sure to always keep your volatility low. This ensures lower risks and smooth transitions.
  4. Keeping an eye on the average number of bars:

    The Backtesting software calculates the cost of commission in the last step. But this does not mean ignoring the statistics of the average number of bars. Try to increase the average number of bars which results in lower commission costs and higher returns.
  5. Keeping the Exposure optimum:

    It is safer to keep the Exposure less than 70% to have lower risks. More exposure means more profit or more loss. Less exposure means less profit or less loss.
  6. Increasing the average gains:

    The statistics of the average gain/loss and the ratio of wins-to-loss can be very helpful for managing the money. The commission costs get reduced if the average gains and wins-to-loss ratio is increased. It also enables the traders to take larger positions
  7. Keeping an account of the Annualized returns:

    The annualized return helps to compare the investments done in different time periods. This helps in checking an investment's performance. The risk-adjusting return should be checked to look for the different risk factors involved in the trading system.
  8. Customizing Backtesting:

    Backtesting applications have different settings to add the inputs. The settings include commission accounts, round lot sizes, tick sizes, margin requirements, interest rates, slippage assumptions, position-sizing rules, same bar exit rules and others. For obtaining the most accurate results, you need to tune these with the broker you will use when the system is live.
  9. Avoiding over-optimization:

    Sometimes the efficacy results of the trading system show so high that the user is unable to understand it. This is also known as over-optimization. To avoid such situations, use the general techniques used in stocks. You can also select a target of stocks that are not over-optimized.
  10. Paper trade system:

    Paper trade does not involve real money and also helps to calculate the loss or profit. Backtesting may not always provide you with accurate results. Strategies performing well in the past may not perform well in the future.

Platforms for Backtesting

Platforms-for-Backtesting   There are special platforms for Backtesting. Some are Retail Backtesting Platforms like TradeStation, MetaTrader, NinjaTrader, Ambibroker. Some are also Web-Based like QuantConnect, Blueshift. Institutional Backtesting Softwares are Deltix, Quanthouse, AlgoTrader.

Is Backtesting worth it?

Is-Backtesting-worth-it   Does Backtesting a new strategy really get results for successful trades? Backtesting helps the traders in two major ways:

  • It helps to find out the potential and drawbacks of your strategy. Thus it helps to prevent the losses or reduce them. You can examine when the strategy performs better.
  • It helps the trader to gain confidence while trading. This is because you know what to expect while trading.

Overall, Backtesting can be a very helpful process in the trading system. It can help in the improvisation of the strategies and trade better. The techniques used can also help to look for any mistakes reducing the risk of loss of real money. It helps to give you an idea about the possibilities of your strategy. The conclusion is that if implemented well Backtesting can get results for successful trades.

TrueData Team

Welcome to our blog!

This blog is a collaborative effort and was compiled by multiple members of the TrueData Team

Comments (3)
How do Mutual Funds work? - TrueData BlogTrueData Blog
November 02, 2021

into Mutual Funds is – traders generally expect that Mutual Funds just put resources into the trade markets. In case you are a moderate financial backer, and you don’t like to take an excess of hazard,

What is backtesting in trading? Why & how should you backtest your strategy? - TrueData BlogTrueData Blog
November 23, 2021

Backtesting is the overall technique for perceiving how well a methodology or model would have done. Backtesting surveys the suitability of an exchanging methodology by finding how it would play out utilizing authentic information. In the case of backtesting works, dealers and investigators might have the certainty to utilize it going ahead.

December 01, 2021

contacts the existence of man at each level, physical, mental, and profound. It is a down-to-earth strategy for making one’s life deliberate, helpful, and respectable. It empowers all aspects of the

Leave a Comment

Related Articles

Investing / Trading
Investing / Trading
How do I download BSE and NSE stock prices in Excel in real time?

NSE Stock Prices in Excel in Real Time - Microsoft Excel is a super software cap...

Investing / Trading
Investing / Trading
How is money made in the stock market?

Buying shares from the stock market seems to be an easy task - as it can be done...

Investing / Trading
Investing / Trading
Binary Options Trading

Ask any options trader and they will tell you that options trading is a bit tric...

Investing / Trading
Investing / Trading
How to Keep an Eye on Intra Day

Market eye filters is made creatively to help you take advantage of market oppor...