Backtesting

Contributor Image
Written By
Contributor Image
Written By
James Barra
James is an investment writer with a background in financial services. He has worked as a management consultant, where he delivered large-scale operational transformational programmes at some of Europe's biggest banks. James authors, edits and fact-checks content for a series of investing websites.
Contributor Image
Edited By
Contributor Image
Edited By
Tobias Robinson
Tobias is a partner at DayTrading.com, director of a UK limited company and active trader. He has over 25 years of experience in the financial industry and contributed via CySec to the regulatory response to digital options and CFD trading in Europe. Toby’s expertise and dedication to financial education make him a trusted voice in the industry, including a BBC investigation into digital options.
Contributor Image
Fact Checked By
Contributor Image
Fact Checked By
William Berg
William contributes to several investment websites, leveraging his experience as a consultant for IPOs in the Nordic market and background providing localization for forex trading software. William has worked as a writer and fact-checker for a long row of financial publications.
Updated

Backtesting is a method for assessing the validity of a trading strategy by using historical data to see how an asset (or portfolio of assets) would have performed in past periods. If results were successful, it might encourage traders to use that strategy going forward.

Top Brokers For Strategy Backtesting

Click a broker for details
  1. 1
    FOREX.com
    Active Trader Program With A 15% Reduction In Costs

    Ratings
    4.9 / 5
    4 / 5
    4.3 / 5
    4.6 / 5
    4.6 / 5
    4.3 / 5
    4.8 / 5
    4.5 / 5
    3.6 / 5
    3.8 / 5

    $100
    0.01 Lots
    1:50
    NFA, CFTC
    Forex, Stocks, Futures, Futures Options
    MT4, MT5, TradingView, eSignal, AutoChartist, TradingCentral
    Wire Transfer, Credit Card, Debit Card, Visa, Mastercard, Skrill, Neteller, ACH Transfer
    USD, EUR, GBP, CAD, AUD, JPY, CHF, PLN
  2. 2
    DNA Markets

    Ratings
    3 / 5
    4 / 5
    4 / 5
    3.9 / 5
    3.5 / 5
    3.6 / 5
    1.8 / 5
    1.6 / 5
    4.8 / 5
    4.4 / 5

    $100
    0.01 Lots
    1:500
    ASIC
    CFDs, Forex, Indices, Commodities, Stocks, Crypto
    MT4, MT5
    Credit Card, Debit Card, Wire Transfer, BPAY, Skrill, Neteller, Bitcoin Payments, Bitwallet, AstroPay, Mastercard
    USD, EUR, GBP, CAD, AUD, NZD, SGD
  3. 3
    Pocket Option
    50% Deposit Bonus

    Ratings
    2 / 5
    3.5 / 5
    2.5 / 5
    3.5 / 5
    3.3 / 5
    3.3 / 5
    3 / 5
    3.5 / 5
    4 / 5
    4.2 / 5

    $50
    $1
    MISA
    Binary Options, Currencies, Commodities, Stocks, Indices, Cryptos
    Web, MT4, MT5
    Wire Transfer, Credit Card, Bitcoin Payments, Volet, Perfect Money, Visa, Mastercard, Debit Card, WebMoney, FasaPay, Ethereum Payments, Maestro, JetonCash
    USD
  4. 4
    xChief
    $100 No Deposit Bonus

    $10
    0.01 Lots
    1:1000
    VFSC
    CFDs, Forex, Metals, Commodities, Stocks, Indices
    MT4, MT5
    Wire Transfer, Bitcoin Payments, Credit Card, UnionPay, Skrill, Neteller, WebMoney, Perfect Money, Debit Card, Ethereum Payments, FasaPay, Volet
    USD, EUR, GBP, JPY, CHF

Backtesting Theory

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.

But is this true?

In many cases, back-tested strategies fail once applied to the real world, as the sudden collapse of LTCM graphically illustrated. This could be due a number of factors, but the most common are dependence on correlations that disappear or biases in the back-testing process.

Examples of the pitfalls of back-testing include;

These problems do not make back-testing useless, but like many things related to markets, they should not be relied on exclusively.

Market risk cannot be measured in an objective way as it is not directly observable, being only inferred from variables that can be directly measured (Value-at-Risk, Probabilities e.g. confidence intervals etc.) Ultimately, there is no substitute for “live” trading, as it incorporates the real-world pressures and biases involved in actual trading.

[1] That is, those investment horizons not originally used to generate the strategy. A 10-year dataset might be used to construct a trading system, but to be useful it would need to have demonstrated its viability in periods other than that 10-year horizon. The data outside of that 10-year period would be out-of-sample data.