We are independent & ad-supported. We may earn a commission for purchases made through our links.

Advertiser Disclosure

Our website is an independent, advertising-supported platform. We provide our content free of charge to our readers, and to keep it that way, we rely on revenue generated through advertisements and affiliate partnerships. This means that when you click on certain links on our site and make a purchase, we may earn a commission. Learn more.

How We Make Money

We sustain our operations through affiliate commissions and advertising. If you click on an affiliate link and make a purchase, we may receive a commission from the merchant at no additional cost to you. We also display advertisements on our website, which help generate revenue to support our work and keep our content free for readers. Our editorial team operates independently from our advertising and affiliate partnerships to ensure that our content remains unbiased and focused on providing you with the best information and recommendations based on thorough research and honest evaluations. To remain transparent, we’ve provided a list of our current affiliate partners here.

What are the Different Types of Backtesting Strategies?

By Ron Davis
Updated May 16, 2024
Our promise to you
SmartCapitalMind is dedicated to creating trustworthy, high-quality content that always prioritizes transparency, integrity, and inclusivity above all else. Our ensure that our content creation and review process includes rigorous fact-checking, evidence-based, and continual updates to ensure accuracy and reliability.

Our Promise to you

Founded in 2002, our company has been a trusted resource for readers seeking informative and engaging content. Our dedication to quality remains unwavering—and will never change. We follow a strict editorial policy, ensuring that our content is authored by highly qualified professionals and edited by subject matter experts. This guarantees that everything we publish is objective, accurate, and trustworthy.

Over the years, we've refined our approach to cover a wide range of topics, providing readers with reliable and practical advice to enhance their knowledge and skills. That's why millions of readers turn to us each year. Join us in celebrating the joy of learning, guided by standards you can trust.

Editorial Standards

At SmartCapitalMind, we are committed to creating content that you can trust. Our editorial process is designed to ensure that every piece of content we publish is accurate, reliable, and informative.

Our team of experienced writers and editors follows a strict set of guidelines to ensure the highest quality content. We conduct thorough research, fact-check all information, and rely on credible sources to back up our claims. Our content is reviewed by subject matter experts to ensure accuracy and clarity.

We believe in transparency and maintain editorial independence from our advertisers. Our team does not receive direct compensation from advertisers, allowing us to create unbiased content that prioritizes your interests.

There are three mainstream approaches to backtesting strategies: using actual price data divided into three groups; bootstrap, which uses actual price data but resamples it; and Monte Carlo simulation. There are theoretical issues that divide system builders over which method is best. What is important for the trader is that he correctly employs at least one of the backtesting strategies to his system before trusting his trading capital to it. A critical issue in choosing a backtesting strategy is the number of trades generated; at least 1,000 trades are needed in each phase of the system builder’s work.

Using actual price data, divided into three parts, is the usual beginning point for most system builders. The system is created using the first one-third of the data. At this point, the builder has found algorithms that appear to generate enough profit with small enough risk to offer good prospects. The second one-third of the data is used to optimize the system.

After the system has been optimized, it will be applied to the remaining one-third of the data. This is called out-of-sample testing, and it is where most systems fail. If the system still has good results across at least 1,000 trades, the system builder has a viable system. If the system generates fewer than 1,000 trades in the out-of-sample testing, the builder should consider another backtesting strategy.

Bootstrapping is a method of drawing some data from the total set, testing, putting the data back in, and drawing more data, or resampling, and retesting. The ideal number of resamples is nn, or n to the nth power, where n is the number of data in the original sample. For a trader who is likely dealing with at least 2,500 data points — 250 days a year across 10 years — that is not practical. Fortunately, 100 resamples will provide a high level of confidence that the bootstrap sample will mirror the original data, making the results reliable. If taking 100 resamples does not provide the needed 1,000 trades, the trader needs to continue resampling until that goal is met if he expects the system, rather than just the resampling of the data, to be reliable.

The last method of backtesting strategies is Monte Carlo (MC) simulation. This method uses a computer to generate simulated data, and the system is then tested on that data. The advantage to MC simulation is that one can create limitless amounts of data, allowing one to generate 10,000 trades or any other number of trades. Another advantage is each new data set is out of sample. This offers the opportunity to do repeated optimization and testing runs; simply optimize on this data set, then apply those system parameters to the next data the computer generates.

A disadvantage of MC simulation is that the data may not have exactly the same probability distribution function that trading data have, which could skew the results. In the best of all possible worlds, all three backtesting strategies should be used in the process of vetting the system. Success in all three should offer a very high likelihood of success in real-world trading.

SmartCapitalMind is dedicated to providing accurate and trustworthy information. We carefully select reputable sources and employ a rigorous fact-checking process to maintain the highest standards. To learn more about our commitment to accuracy, read our editorial process.

Discussion Comments

SmartCapitalMind, in your inbox

Our latest articles, guides, and more, delivered daily.

SmartCapitalMind, in your inbox

Our latest articles, guides, and more, delivered daily.