Backtesting: Manual Strategies for Trading (2024)

  • Home
  • Learn
  • Trading guides
  • Backtesting

Backtesting is a manual or systematic method of determining whether a trading strategy or concept has been profitable in the past. A trader can manually backtest a strategy or use backtesting software to help determine if a trading strategy is likely a waste of time and money, or if it shows promise and profitability in a variety of markets.

Since backtesting does not always require software and can be carried out by any type of trader, manual backtesting will be the focus of this article. This means that there is less risk without automated software as it can be tested using a free demo trading account, such as the one offered on our online trading platform. As always, there are no guarantees and as such, you should still consider risk management tools.

See inside our platform

Get tight spreads, no hidden fees and access to 12,000 instruments.

Start trading

Includes free demo account

Trustpilot

Backtesting: Manual Strategies for Trading (1)

Quick link to content:

What is backtesting?

Backtesting is the process of assessing how well a trading strategy or analytical method could perform, based on historical data. It is a key component in developing an effective trading strategy. There are infinite possibilities for strategies, and any slight alteration will change the results. This is why backtesting is important, as it shows whether certain parameters will work better than others.

To backtest, a trading strategy is required. At minimum, a trading strategy helps to define entry and exit points for both winning and losing trades, plus a position size. In addition, a trading strategy will often provide context, such as defining if and when trades should be taken. For example, only when the price is above or below a moving average, or during the first hour of the day.

Backtesting can be a simple or complex process, and traders may use either automated or manual testing. The former requires automated software​​ that searches for trades that meet the strategy criteria, then adds up the winning and losing trades to show if the strategy was profitable over a specified amount of time. Manual backtesting refers to a process where traders analyse past trades based on their strategies, and then add up the results themselves.

How to backtest a trading strategy

There are several steps to manually backtest a trading strategy or model. Backtesting requires historical data, which shows past price movements of a particular asset from trading charts. To backtest, a trader will typically need several weeks of historical data for strategies where the trades are short-term in nature. Many years of historical data may be required if testing a long-term strategy.

Here are some basic steps that you could take when carrying out a manual backtest:

  1. Define the strategy parameters.
  2. Specify which financial market​ and chart timeframe​ the strategy will be tested on. For example, you need to decide whether you are planning to focus on a single share or currency pair, or a variety of markets, as well as how long you will collect the results for, whether these are recorded over a one-week, one-month, one-year or 10-year historical period. Each choice will provide different results and information.
  3. Begin looking for trades based on the strategy, market and chart timeframe specified. You could go back in time and look for trades from a year, a month or a week in the past, depending on how far back you wish to look.
  4. Analyse price charts for entry and exit signals. This can be done until all trades on the chart up to the current time have been located and marked or written down.
  5. To find gross return, record all trades and tally them up. This should include both winning and losing trades.
  6. To find net return, deduct any commissions and trading costs related to the trades from the gross return. The net return is the profit or loss over the specified timeframe.
  7. To get a percentage return over the whole period, compare the net return to the capital required to make the trades, or your exposure.

The percentage return should give an indication of how successful the strategy is. If the results of a trader’s backtesting strategy are undesirable, or if a trader wanted to check another strategy or variation, you can simply repeat the steps above. A trader may wish to calculate their average risk/reward ratio over all trades to see if the strategy is worth it.

Although backtesting may show how a trading strategy performed in the past, it cannot guarantee a strategy’s future performance. For this reason, backtesting could be a useful tool but it should not be exclusively relied on. Traders can also ‘forward test’ their strategies in live market conditions to see if they work in real time, without basing them purely on historical data. We will discuss this further on in the article.

Backtesting: Manual Strategies for Trading (2)

Backtest indicators

Technical indicators​​ work well for backtesting because they provide specific readings at a given time. For example, if a trade is taken when the relative strength index (RSI) moves above 25 after being below the figure on a daily close basis, and the trade is taken at the following open, this is a very specific signal and can easily be tested, assuming that the exit is equally precise.

Backtest indicators can include the levels or signals that will trigger an entry or exit for a trade. Typically, this is an objective time, like a close or open following the signal, which helps avoid any confusion as to when the trade should be taken. There are a number of technical indicators available on our trading platform that could be used to backtest a trading strategy or model. Popular indicators for backtesting include Donchian Channels​​, Ichimoku Cloud and Heikin Ashi.

Learn more about our award-winning Next Generation online trading platform​​*.

What is the best backtest strategy?

As always, there is no definitive ‘best strategy’ when it comes to trading within the financial markets. The best backtest strategy will depend on your trading personality, overall goals and level of experience. Below are two methods that you could consider using as part of a backtesting template.

Intraday backtesting

A trader interested in day trading​​ can manually backtest intraday charts. The simplest backtest includes looking at one-minute or five-minute chart timeframes, for example, of the asset being traded. You could find prior trades based on that strategy and then add up the profits and losses, which would provide an idea of the profit produced that week.

Backtesting vs forward testing

Whereas backtesting requires finding trades based on historical data to evaluate its future performance, forward testing is the process of simulated trading, where you “paper trade” a strategy in live conditions. This requires the trader to watch the market in real-time, taking the strategy entry and exit signals as they occur.

Backtesting lets a trader know whether a strategy has profit potential, while forward testing helps to confirm or refute this. Forward testing (also known as walk forward optimisation) is also slower because it needs to be performed in real time. Each day is traded as it comes, whereas with backtesting, a trader can arrange years’ worth of historical trades in a single day, if desired.

Backtesting and forward testing can be used together to give a more complete picture of how a strategy performs, both historically and in real time.

Join a trading community committed to your success

Start with a live account

Start with a demo

Backtesting in forex

Manually backtesting in forex works the same as in other financial markets. However, as the forex market​​ is open 24-hours per day during the week, you need to be certain to only backtest during times of the day that you can actually trade. Backtesting a forex strategy over a month and using all hours over each day is unlikely to provide reliable information, unless automation is involved.

Before backtesting, consider the time of day you will be able to trade. Perhaps you can only enter trades within a three-hour window. When backtesting in forex, you only need to record entries and their resulting profits and losses that occur during the trading window.

Free backtesting software

Automated software is not required to assess the validity of a strategy using backtesting or forward testing. All that is needed is a demo or live trading account on our platform. After registering for our free backtesting software, you will have access to historical data on all chart timeframes, markets and assets, and a wide array of technical indicators to manually test nearly any trading strategy.

We also offer an inbuilt backtesting tool that relates to trading patterns. Our price projection tool is designed to help traders spot the direction of price action by measuring historical performance for each trading pattern. Learn more about this in our section on useful trading tools​​.

Manual backtesting on MT4

You can carry out both manual and automated backtesting using our MetaTrader 4 platform, using the required assets and timeframes. However, as creating an automated strategy in MT4 requires programming skills, many traders prefer to manually backtest their trading strategies, as this helps to build knowledge and skill within the financial markets.Learn more about MT4 or register for an MT4 account now.

What is automated backtesting?

Automated backtesting requires backtesting software, which may be available for free on some platforms, but it can come with a cost. Automated backtesting requires clear rules that a computer can understand. This may require some coding knowledge or software that allows you to input the strategy criteria.

Is backtesting worth the effort?

Backtesting can be a useful tool when you are hesitant to put a strategy into action straight away. However, there are still a couple of pitfalls to consider.

The first is the problem of ‘over optimisation’. This is when a trader keeps changing their strategy to find the largest profit based on the historical data, which can lead to hindsight bias. The viable strategy may be ruined because now it has become customised only for the exact conditions that were present during the backtesting period. In the future, if conditions are different, the strategy could perform poorly.

The second pitfall is the fact that the more complex a strategy becomes, the harder it is to accurately backtest. Similarly, while more backtesting is better than less, testing on more timeframes, markets, and over a longer period takes considerably more time. All this effort may be undertaken only to discover that a strategy does not work.

Considering the above points, backtesting is still an important part of developing a profitable and successful trading strategy, without the risks involved. Backtesting with a demo account works in a different way to trading with real money, where emotions can be high and you may miss trades or enter unsuccessful ones. Then, when you are confident that your trading strategy may bring success, our live account comes with many risk management tools at hand.

Read more about our execution and order types.

Backtesting: Manual Strategies for Trading (3)

Powerful trading on the go

Seamlessly open and close trades, track your progress and set up alerts

Open a demo account

Learn more

*No1 Web-Based Platform, ForexBrokers.com Awards 2020; Best Telephone & Best Email Customer Service, based on highest user satisfaction among spread betters, CFD & FX traders, Investment Trends 2020 UK Leverage Trading Report; Best Platform Features & Best Mobile/Tablet App, Investment Trends 2019 UK Leverage Trading Report.

See why serious traders choose CMC

Get tight spreads, no hidden fees, access to 12,000 instruments and more.

Backtesting: Manual Strategies for Trading (4)

FCA regulated

Backtesting: Manual Strategies for Trading (5)

Segregated funds

Learn more

Includes free demo account

Backtesting: Manual Strategies for Trading (6)

Backtesting: Manual Strategies for Trading (2024)

FAQs

Backtesting: Manual Strategies for Trading? ›

Open a Chart: Visit TradingView and open the desired chart of the financial instrument you wish to backtest. Bar Replay Tool: On the top-right side of the chart, find the Bar Replay icon. Setting Start Point: Move the cursor to where you wish to start your backtest and click to set the starting point.

How to backtest a trading strategy manually? ›

How to backtest a trading strategy
  1. Define the strategy parameters.
  2. Specify which financial market​ and chart timeframe​ the strategy will be tested on. ...
  3. Begin looking for trades based on the strategy, market and chart timeframe specified. ...
  4. Analyse price charts for entry and exit signals.

How do I backtest a trading strategy for free? ›

How to manually backtest a trading strategy?
  1. Clearly define a trading plan and in-depth strategy. A trading plan is developed based on the financial market, trading period, risk level, profit targets, general entry-exit levels, etc. ...
  2. Specify a financial market and timeframe. ...
  3. Begin the backtesting of strategy.

How to do manual backtesting on TradingView? ›

Open a Chart: Visit TradingView and open the desired chart of the financial instrument you wish to backtest. Bar Replay Tool: On the top-right side of the chart, find the Bar Replay icon. Setting Start Point: Move the cursor to where you wish to start your backtest and click to set the starting point.

How many times should I backtest my trading strategy? ›

When you are backtesting a strategy on a higher timeframe, you will have to go back 6 to 12 months. Ideally, you want to end up with 30 to 50 trades in your backtest to get a meaningful sample size. Anything below 30 trades does not have enough explanatory power.

How do you backtest a trading strategy without coding? ›

Formulate Define the parameters of your hypothesis
  1. Specify the financial assets and metrics in the hypothesis you are backtesting.
  2. Define the timeframe of historical data you plan to backtest.

How do you backtest accurately? ›

Here's an example of one of the methods:
  1. Navigate to the indicators and trading systems window.
  2. Select the trading system you want to backtest.
  3. Open the trading system and input your test parameters.
  4. Run your test and analyse the results.
  5. Optimise by testing different input parameters (eg stop-loss values and limit orders)

What is the best platform to backtest trading? ›

Top best backtesting software for stocks 2024
  1. Amibroker. Amibroker is a comprehensive and highly customizable backtesting platform that allows traders to develop, test, and optimize their trading strategies. ...
  2. TradeStation. ...
  3. MetaTrader 4/5. ...
  4. NinjaTrader. ...
  5. Backtrader. ...
  6. Quant Rocket. ...
  7. Trade Ideas. ...
  8. MultiCharts.
Apr 24, 2024

Is TradingView good for backtesting? ›

By simulating trades based on historical data, traders can assess how a strategy would have performed in the past. This provides valuable insights into its potential future performance. Among various platforms available for backtesting, TradingView stands out as a popular choice.

Does backtesting really work? ›

This is that a profitable backtest does not prove that a strategy “worked”, even in the past. This is because most backtests do not achieve any kind of “statistical significance”. As everyone knows, it's trivial to tailor a strategy that works beautifully on any given piece of historical data.

Does TradingView have a strategy tester? ›

When you add a strategy to the chart, additional information will appear in the Strategy Tester tab and can show you a report of your strategies results. There are three sections available: Overview, Performance Summary and List of Trades.

How to do deep backtesting in TradingView? ›

To start deep backtesting, add a strategy to the chart and go to the Strategy Tester. On the right, you will see a toggle to activate the Deep Backtesting mode.

What is the 2 rule in trading? ›

One popular method is the 2% Rule, which means you never put more than 2% of your account equity at risk (Table 1). For example, if you are trading a $50,000 account, and you choose a risk management stop loss of 2%, you could risk up to $1,000 on any given trade.

What is the 6% rule for pattern day traders? ›

Who Is a Pattern Day Trader? According to FINRA rules, you're considered a pattern day trader if you execute four or more "day trades" within five business days—provided that the number of day trades represents more than 6 percent of your total trades in the margin account for that same five business day period.

Is 100 trades enough for a backtest? ›

If you're backtesting a day trading strategy, 100 trades is not nearly enough to see if a strategy is reliable. Let's say that you're backtesting a day trading strategy that averages 1 trade per day. There are about 20 trading days per month. So if you have 20 trades per month, 100 trades will only represent 5 months.

How to backtest an option trading strategy? ›

Lookback Backtesting for Beginners
  1. Select Duration. Upon entering the symbol, you will be able to see the various expiration cycles populated in the “Chain” tab. ...
  2. Select Leg of Strategy. ...
  3. Sell/Buy/Clear a Contract. ...
  4. Choose Strategy. ...
  5. Remove the Outliers. ...
  6. Go Back to Backtest Page.

How to backtest a trading strategy using Excel? ›

Before you start testing any strategy, you need a data set. At minimum this is a series of date/times and prices. More realistically you need the date/time, open, high, low, close prices. You usually only need the time component of the data series if you are testing intraday trading strategies.

How do you backtest a moving average strategy? ›

The strategy as outlined here is long-only. Two separate simple moving average filters are created, with varying lookback periods, of a particular time series. Signals to purchase the asset occur when the shorter lookback moving average exceeds the longer lookback moving average.

References

Top Articles
Latest Posts
Article information

Author: Madonna Wisozk

Last Updated:

Views: 5705

Rating: 4.8 / 5 (48 voted)

Reviews: 95% of readers found this page helpful

Author information

Name: Madonna Wisozk

Birthday: 2001-02-23

Address: 656 Gerhold Summit, Sidneyberg, FL 78179-2512

Phone: +6742282696652

Job: Customer Banking Liaison

Hobby: Flower arranging, Yo-yoing, Tai chi, Rowing, Macrame, Urban exploration, Knife making

Introduction: My name is Madonna Wisozk, I am a attractive, healthy, thoughtful, faithful, open, vivacious, zany person who loves writing and wants to share my knowledge and understanding with you.