{"id":253,"date":"2023-07-18T08:25:34","date_gmt":"2023-07-18T12:25:34","guid":{"rendered":"https:\/\/www.tiingo.com\/blog\/?p=253"},"modified":"2023-07-18T08:25:36","modified_gmt":"2023-07-18T12:25:36","slug":"backtesting-stocks","status":"publish","type":"post","link":"https:\/\/www.tiingo.com\/blog\/backtesting-stocks\/","title":{"rendered":"Simulate Your Investment Strategy by Backtesting Stocks"},"content":{"rendered":"<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"673\" src=\"https:\/\/www.tiingo.com\/blog\/wp-content\/uploads\/2023\/07\/entrepreneur-looking-at-a-laptop-1024x673.jpg\" alt=\"Backtesting stocks: entrepreneur looking at a laptop\" class=\"wp-image-256\" srcset=\"https:\/\/www.tiingo.com\/blog\/wp-content\/uploads\/2023\/07\/entrepreneur-looking-at-a-laptop-1024x673.jpg 1024w, https:\/\/www.tiingo.com\/blog\/wp-content\/uploads\/2023\/07\/entrepreneur-looking-at-a-laptop-300x197.jpg 300w, https:\/\/www.tiingo.com\/blog\/wp-content\/uploads\/2023\/07\/entrepreneur-looking-at-a-laptop-768x505.jpg 768w, https:\/\/www.tiingo.com\/blog\/wp-content\/uploads\/2023\/07\/entrepreneur-looking-at-a-laptop.jpg 1200w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n<p><a href=\"https:\/\/stock.adobe.com\/images\/administration-laptop-serious-and-man-reading-finance-spreadsheet-online-banking-payroll-or-financial-accounting-bookkeeping-system-user-focus-and-face-of-agent-problem-solving-budget-analysis\/579325656?prev_url=detail&amp;asset_id=579325656\"><\/a>Want to test a trading strategy before committing any of your or a client&#8217;s investment capital? Backtesting stocks and trading strategies is a smart move.<\/p>\n\n\n\n<p>Backtesting stocks is a method of simulating an investment strategy without risking any money. You\u2019re only performing paper trades without risking any capital. Historical data is the only way to backtest stocks and trading strategies.<\/p>\n\n\n\n<p>Investment professionals that use backtesting and simulations that rely on adjusting strategies and variables based on historical data could increase their confidence when it comes to live trading.<\/p>\n\n\n\n<p>In this article, we explain backtesting stocks, why investors, brokers, and analysts use this approach, the pros and cons, and the best practices for backtesting.<em>&nbsp;<\/em><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-what-is-stock-backtesting\">What Is Stock Backtesting?<\/h2>\n\n\n\n<p>Any investment strategy carries an element of risk. Traders, investors, and analysts working for brokers want to know an investment strategy has the potential to work in theory before putting it into practice. Otherwise, you increase the risk of losing your money, client funds, or both. Hence the value of backtesting stocks, instead of diving into a live investment strategy without validating your approach.<\/p>\n\n\n\n<p>Everyone knows that what goes up must, at some point, come down, and the usual investment disclaimer is that past performance doesn\u2019t guarantee future profits.<\/p>\n\n\n\n<p>However, smart investors look for ways to minimize risk and maximize gains. Backtesting stocks and trading strategies is one approach to reducing downside risks. In theory, if a strategy can be quantified and tested on historical data and \u2014 crucially \u2014 works, then it should give you more confidence to put it into practice.<\/p>\n\n\n\n<p>The idea is that a backtesting strategy that performed well in the past should perform well in the future. In most cases, the ultimate measure of success is, \u201cDid my trading strategy yield a profit from financial markets?\u201d If yes, then it could be viable for live trading. If not, then it\u2019s time to rethink and tweak your trading system.<\/p>\n\n\n\n<p>Although, it helps to backtest using a timescale when market conditions were comparable to the present to make it realistic. This means finding a time period with similar levels of volatility, whether bull or bear, depending on the different markets you want to invest in.&nbsp;<\/p>\n\n\n\n<p>If your tests prove successful, then you can test your theories further with different time periods, timeframes, datasets, and out-of-sample data.&nbsp;&nbsp;<\/p>\n\n\n\n<p>Backtesting doesn\u2019t only apply to stocks and shares. Investors and analysts can use this for anything from derivatives, commodities, currencies, <a href=\"https:\/\/www.tiingo.com\/blog\/forex-indicators\/\">forex trading<\/a>, crypto (although historical data is more limited as Bitcoin only launched in 2008), exchange-traded funds (ETFs), futures markets, and numerous other asset classes.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-why-do-investors-use-backtesting-stock-strategies\">Why Do Investors Use Backtesting Stock Strategies?\u00a0<\/h2>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/www.tiingo.com\/blog\/wp-content\/uploads\/2023\/07\/employees-using-their-computers-1024x576.jpeg\" alt=\"Employees using their computers\" class=\"wp-image-255\" srcset=\"https:\/\/www.tiingo.com\/blog\/wp-content\/uploads\/2023\/07\/employees-using-their-computers-1024x576.jpeg 1024w, https:\/\/www.tiingo.com\/blog\/wp-content\/uploads\/2023\/07\/employees-using-their-computers-300x169.jpeg 300w, https:\/\/www.tiingo.com\/blog\/wp-content\/uploads\/2023\/07\/employees-using-their-computers-768x432.jpeg 768w, https:\/\/www.tiingo.com\/blog\/wp-content\/uploads\/2023\/07\/employees-using-their-computers.jpeg 1200w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n<p><a href=\"https:\/\/stock.adobe.com\/images\/stock-trader-inspects-others-work-and-chat-with-other-busy-office-with-multi-ethnic-team-of-brokers-dealers-displays-show-numbers-and-infographics\/178115473?prev_url=detail\"><\/a>Investors deal in numbers and data \u2014 hence the value of understanding <a href=\"https:\/\/www.tiingo.com\/blog\/technical-indicators\/\">technical indicators<\/a>. Almost everything can be quantified except for useful elements of qualitative data when investors are applying <a href=\"https:\/\/www.tiingo.com\/blog\/fundamental-analysis\/\">fundamental analysis<\/a> methodologies.\u00a0<\/p>\n\n\n\n<p>Trading strategies can be quantified too, provided you\u2019ve got one that can be coded into a trading platform (e.g., using a programming language such as Python), an online simulator, or defined using backtesting tools and software settings and parameters.&nbsp;<\/p>\n\n\n\n<p>That\u2019s what backtesting stocks is all about: testing a quantifiable investment strategy or theory using historical market and price movement data over a fixed time period. As no investment strategy is risk-free, this acts as a smart approach to risk management. Once you\u2019ve evaluated trading ideas with historical data, you can implement forward testing before putting your theory into practice.&nbsp;<\/p>\n\n\n\n<p>Backtesting is used to safeguard investor funds before implementing actual trades that risk real capital. Investors that spend time drawing up trading strategies for a backtesting scenario can then implement the same strategy during live trading, perhaps manually on a small scale at first before investing more and perhaps using algorithmic trades to execute the strategy faster, provided it yields a profit.<\/p>\n\n\n\n<p>Investors or analysts backtesting any strategy need to be clear on the stocks, commodities, or other investment vehicles they include in any test.<\/p>\n\n\n\n<p>A backtesting strategy could be as simple as using candlestick charts, Bollinger bands, or a simple moving averages crossover over a fixed timescale to compare a basket of stocks in a particular sector. Or it could be more complicated, such as using <a href=\"https:\/\/www.tiingo.com\/blog\/algorithmic-trading\/\">algorithmic trading<\/a> to plot a seven-figure investment strategy spread across hundreds of funds, stock markets, and ETFs.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-pros-and-cons-of-backtesting-trading-strategies\">Pros and Cons of Backtesting Trading Strategies<\/h2>\n\n\n\n<p>Here are the pros and cons of backtesting stocks that every trader and investor needs to think about before going ahead with a simulated approach.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-advantages-of-backtesting-stocks\">Advantages of Backtesting Stocks<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Saves time and money: <\/strong>Backtesting is a time- and money-saving strategy that lets you quickly test dozens, even hundreds of theories and trading strategies, until you find one or more that works successfully.<\/li>\n\n\n\n<li><strong>Protects your investments:<\/strong> Backtesting means that you can better understand underperforming market conditions by implementing automated filters and triggers to avoid sailing into stormy waters in the future.&nbsp;&nbsp;<\/li>\n\n\n\n<li><strong>Has realistic <\/strong><strong>simulations<\/strong><strong>:<\/strong> Backtesting software is an effective way to apply technical analysis in as close to real-world conditions as possible without the risk of losing money if something goes wrong, e.g., market conditions move against your positions.<\/li>\n\n\n\n<li><strong>Helps with risk management:<\/strong> With this approach you can manage risk more easily while avoiding drawdowns and eliminating buy, sell, and hold indicators and asset classes that don\u2019t contribute to the ROI you\u2019re aiming for. Backtesting isn\u2019t a magic formula for beating the market, but it may help to reduce risk and generate higher returns when applied the right way and when you factor in the disadvantages too.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-disadvantages-of-backtesting-stocks\">Disadvantages of Backtesting<strong> <\/strong>Stocks<strong>&nbsp;<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>It\u2019s just theoretical: <\/strong>Remember that backtesting is a way to test theories using historical market data. Even if your strategy performs fantastically, real-time market conditions in the present are almost always going to be different in some way (even if only slightly) from the theory when tested over a timescale that\u2019s unchanging.<\/li>\n\n\n\n<li><strong>Experience bias can get in the way:<\/strong> Experience bias can influence investors when backtesting, even if an investor is trying a new approach. If something has worked in the past, why won\u2019t it work again? It\u2019s human nature. It\u2019s worth trying something new to get a more accurate and honest evaluation of your trading strategies before diving into the live market.<\/li>\n\n\n\n<li><strong>Actual investing costs more:<\/strong> Make sure to factor in trading costs, slippage, and micro-price movements when trying to calculate profits. Algorithm trading could help keep these factors to a minimum, but that will involve more detailed and accurate testing.<\/li>\n\n\n\n<li><strong>There is a risk of overconfidence and overfitting:<\/strong> Overfitting is almost as bad, and similar to, overconfidence. Algorithmic models are the outputs from equations. They can\u2019t panic and buy or sell too early. But investors can, if they optimize a model too well \u2014 a process known as overfitting. Once you start live trading, you risk being overconfident in a strategy that generated impressive results in backtesting simulations because it was over-optimized and doesn\u2019t reflect the real-world investment environment.&nbsp;<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-how-to-implement-stock-backtesting-software-tools-and-best-practices\">How to Implement Stock Backtesting: Software Tools and Best Practices<\/h2>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"574\" src=\"https:\/\/www.tiingo.com\/blog\/wp-content\/uploads\/2023\/07\/employee-analyzing-different-graphs-1024x574.jpg\" alt=\"Employee analyzing different graphs\" class=\"wp-image-254\" srcset=\"https:\/\/www.tiingo.com\/blog\/wp-content\/uploads\/2023\/07\/employee-analyzing-different-graphs-1024x574.jpg 1024w, https:\/\/www.tiingo.com\/blog\/wp-content\/uploads\/2023\/07\/employee-analyzing-different-graphs-300x168.jpg 300w, https:\/\/www.tiingo.com\/blog\/wp-content\/uploads\/2023\/07\/employee-analyzing-different-graphs-768x431.jpg 768w, https:\/\/www.tiingo.com\/blog\/wp-content\/uploads\/2023\/07\/employee-analyzing-different-graphs.jpg 1200w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n<p><a href=\"https:\/\/stock.adobe.com\/images\/trader-doing-analysis-and-trading-behind-multiple-screens-showing-charts-and-statistics-stock-crypto-or-forex-financial-market-generative-ai\/595631630?prev_url=detail&amp;asset_id=595631630\"><\/a>Backtesting only works well when an investment strategy (or multiple strategies that you\u2019re testing) is well-considered, quantitative, and data-driven, rather than based on gut instinct. If you can\u2019t quantify it, then it\u2019s harder to test and evaluate.<\/p>\n\n\n\n<p>It\u2019s equally important that the data you\u2019re using to test theories is truly representative of accurate market conditions. Businesses collapse or are liquidated, stocks are split, and other companies that were public go private. Make sure the sample dataset includes and takes into account these stocks. Otherwise, you\u2019ll see results that are artificially higher than they should be, producing a false positive.<\/p>\n\n\n\n<p>Integral to sample periods being representative is to avoid being too bullish or bearish. Backtesting stocks during the 2010 to 2020 period isn\u2019t going to represent current market conditions accurately. Aim to take the present into consideration when picking sample time periods, as once you start forward testing and live trading, these are the conditions you\u2019re operating in.<\/p>\n\n\n\n<p>And, of course, you then need to choose backtesting stock and trading simulation software (and the right data sources) to run the variables and validate your theories.<\/p>\n\n\n\n<p>When picking a backtesting software tool, you need one that gives you enough control and covers the right range of timescales and markets:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Markets:<\/strong> It\u2019s essential to choose a tool that covers all of the markets and stocks you want to analyze or allows you to customize the data sources using a range of stock price data APIs \u2014e.g., an <a href=\"https:\/\/www.tiingo.com\/products\/end-of-day-stock-price-data\">end-of-day stock price data API<\/a>, a <a href=\"https:\/\/www.tiingo.com\/products\/iex-api\">real-time IEX API<\/a>, a <a href=\"https:\/\/www.tiingo.com\/products\/forex-api\">forex API<\/a> \u2014 and other options that fit your investment strategy.<\/li>\n\n\n\n<li><strong>Timescales:<\/strong> How far back do you want to go: five, 10, 20 years? It depends on how much data you want to analyze and when there were market conditions that were reflective of today\u2019s conditions.<\/li>\n\n\n\n<li><strong>Control:<\/strong> You need a trading, backtesting, or simulation tool that lets you create sophisticated strategies with full control over filters, such as when to enter or exit trades. Some software platforms are more limited, and that will restrict your ability to build and test a realistic strategy accurately and then robustly validate that.<\/li>\n<\/ul>\n\n\n\n<p>With the above in mind, there are dozens of backtesting and simulation software products on the market. Some are free and require coding skills, such as <a href=\"https:\/\/www.quantconnect.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">QuantConnect<\/a>, and others are more expensive, easier to customize, and don\u2019t need coding, such as <a href=\"https:\/\/www.trade-ideas.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">Trade Ideas<\/a>.<\/p>\n\n\n\n<p>It\u2019s worth reading reviews and asking around to get a clearer idea of the tools and platforms other traders and investors use. You might already be using a trading or analytics product that includes backtesting features. But if those features aren\u2019t enough, then you\u2019re going to want a dedicated backtesting and simulation software suite.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-build-future-investment-strategies-with-good-data-and-stock-backtesting\">Build Future Investment Strategies With Good Data and Stock Backtesting<\/h2>\n\n\n\n<p>The bottom line with stock backtesting is it\u2019s a smart way to test whether trading strategies, theories, and ideas hold any weight. But results shouldn\u2019t be trusted 100%, even when the outcome is either really positive or negative.<\/p>\n\n\n\n<p>Real-world variables are going to be different from the results of testing models on historical data, even when market conditions are as close as possible to how they currently are or any predictions for the future.&nbsp;&nbsp;<\/p>\n\n\n\n<p>However, even with downsides and limitations factored in, backtesting \u23e4 when implemented well with a sensible quantifiable strategy (not relying on gut instinct) \u23e4 can be a useful way to validate and assess new approaches to investing or day trading.<\/p>\n\n\n\n<p>Searching for the best source of high-quality, clean, and cost-effective stock market trading and historical data for backtesting trading strategies? Look no further than <a href=\"https:\/\/www.tiingo.com\/blog\/stock-api\/\">Tiingo\u2019s Stock APIs<\/a>.<\/p>\n\n\n\n<p><a href=\"https:\/\/www.tiingo.com\/\">Sign up for Tiingo today<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Want to test a trading strategy before committing any of your or a client&#8217;s investment capital? Backtesting stocks and trading strategies is a smart move. Backtesting stocks is a method of simulating an investment strategy without risking any money. You\u2019re only performing paper trades without risking any capital. Historical data is the only way to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":256,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"osom_blocks_metabox":"","inline_featured_image":false,"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","footnotes":""},"categories":[1],"tags":[],"class_list":{"0":"post-253","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-uncategorized","8":"entry"},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.2 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Simulate Your Investment Strategy by Backtesting Stocks<\/title>\n<meta name=\"description\" content=\"Are you backtesting stocks before making live trades? Find out why investors use this strategy as well as its advantages and disadvantages.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.tiingo.com\/blog\/backtesting-stocks\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Simulate Your Investment Strategy by Backtesting Stocks\" \/>\n<meta property=\"og:description\" content=\"Are you backtesting stocks before making live trades? Find out why investors use this strategy as well as its advantages and disadvantages.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.tiingo.com\/blog\/backtesting-stocks\/\" \/>\n<meta property=\"og:site_name\" content=\"Tiingo Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/tiingofinance\/\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-18T12:25:34+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-07-18T12:25:36+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.tiingo.com\/blog\/wp-content\/uploads\/2023\/07\/entrepreneur-looking-at-a-laptop.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"789\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Rishi S.\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@tiingofinance\" \/>\n<meta name=\"twitter:site\" content=\"@tiingofinance\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Rishi S.\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"9 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.tiingo.com\/blog\/backtesting-stocks\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.tiingo.com\/blog\/backtesting-stocks\/\"},\"author\":{\"name\":\"Rishi S.\",\"@id\":\"https:\/\/www.tiingo.com\/blog\/#\/schema\/person\/54fc93e1626ed221a37fcfddb597c3d6\"},\"headline\":\"Simulate Your Investment Strategy by Backtesting Stocks\",\"datePublished\":\"2023-07-18T12:25:34+00:00\",\"dateModified\":\"2023-07-18T12:25:36+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.tiingo.com\/blog\/backtesting-stocks\/\"},\"wordCount\":1813,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.tiingo.com\/blog\/#organization\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.tiingo.com\/blog\/backtesting-stocks\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.tiingo.com\/blog\/backtesting-stocks\/\",\"url\":\"https:\/\/www.tiingo.com\/blog\/backtesting-stocks\/\",\"name\":\"Simulate Your Investment Strategy by Backtesting Stocks\",\"isPartOf\":{\"@id\":\"https:\/\/www.tiingo.com\/blog\/#website\"},\"datePublished\":\"2023-07-18T12:25:34+00:00\",\"dateModified\":\"2023-07-18T12:25:36+00:00\",\"description\":\"Are you backtesting stocks before making live trades? Find out why investors use this strategy as well as its advantages and disadvantages.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.tiingo.com\/blog\/backtesting-stocks\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.tiingo.com\/blog\/backtesting-stocks\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.tiingo.com\/blog\/backtesting-stocks\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.tiingo.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Simulate Your Investment Strategy by Backtesting Stocks\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.tiingo.com\/blog\/#website\",\"url\":\"https:\/\/www.tiingo.com\/blog\/\",\"name\":\"Tiingo API Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/www.tiingo.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.tiingo.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.tiingo.com\/blog\/#organization\",\"name\":\"Tiingo.com\",\"url\":\"https:\/\/www.tiingo.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.tiingo.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/api.tiingo.com\/blog\/wp-content\/uploads\/2023\/05\/purple-for-light-bg.svg\",\"contentUrl\":\"https:\/\/api.tiingo.com\/blog\/wp-content\/uploads\/2023\/05\/purple-for-light-bg.svg\",\"width\":\"1024\",\"height\":\"1024\",\"caption\":\"Tiingo.com\"},\"image\":{\"@id\":\"https:\/\/www.tiingo.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/tiingofinance\/\",\"https:\/\/twitter.com\/tiingofinance\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.tiingo.com\/blog\/#\/schema\/person\/54fc93e1626ed221a37fcfddb597c3d6\",\"name\":\"Rishi S.\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.tiingo.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/28ae16ae1fe9df62492ab4b742241b19a6a12395109570074a7b8194c6709ec4?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/28ae16ae1fe9df62492ab4b742241b19a6a12395109570074a7b8194c6709ec4?s=96&d=mm&r=g\",\"caption\":\"Rishi S.\"},\"description\":\"Rishi Singh is the CEO of Tiingo.com. A prior algorithmic and quant researcher, Rishi started Tiingo.com to modernize the financial data vertical by focusing on data acquisition, cleansing, aggregation, innovation, and distribution of data.\",\"sameAs\":[\"http:\/\/www.tiingo.com\"],\"url\":\"https:\/\/www.tiingo.com\/blog\/author\/tadmin24\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Simulate Your Investment Strategy by Backtesting Stocks","description":"Are you backtesting stocks before making live trades? Find out why investors use this strategy as well as its advantages and disadvantages.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.tiingo.com\/blog\/backtesting-stocks\/","og_locale":"en_US","og_type":"article","og_title":"Simulate Your Investment Strategy by Backtesting Stocks","og_description":"Are you backtesting stocks before making live trades? Find out why investors use this strategy as well as its advantages and disadvantages.","og_url":"https:\/\/www.tiingo.com\/blog\/backtesting-stocks\/","og_site_name":"Tiingo Blog","article_publisher":"https:\/\/www.facebook.com\/tiingofinance\/","article_published_time":"2023-07-18T12:25:34+00:00","article_modified_time":"2023-07-18T12:25:36+00:00","og_image":[{"width":1200,"height":789,"url":"https:\/\/www.tiingo.com\/blog\/wp-content\/uploads\/2023\/07\/entrepreneur-looking-at-a-laptop.jpg","type":"image\/jpeg"}],"author":"Rishi S.","twitter_card":"summary_large_image","twitter_creator":"@tiingofinance","twitter_site":"@tiingofinance","twitter_misc":{"Written by":"Rishi S.","Est. reading time":"9 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.tiingo.com\/blog\/backtesting-stocks\/#article","isPartOf":{"@id":"https:\/\/www.tiingo.com\/blog\/backtesting-stocks\/"},"author":{"name":"Rishi S.","@id":"https:\/\/www.tiingo.com\/blog\/#\/schema\/person\/54fc93e1626ed221a37fcfddb597c3d6"},"headline":"Simulate Your Investment Strategy by Backtesting Stocks","datePublished":"2023-07-18T12:25:34+00:00","dateModified":"2023-07-18T12:25:36+00:00","mainEntityOfPage":{"@id":"https:\/\/www.tiingo.com\/blog\/backtesting-stocks\/"},"wordCount":1813,"commentCount":0,"publisher":{"@id":"https:\/\/www.tiingo.com\/blog\/#organization"},"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.tiingo.com\/blog\/backtesting-stocks\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.tiingo.com\/blog\/backtesting-stocks\/","url":"https:\/\/www.tiingo.com\/blog\/backtesting-stocks\/","name":"Simulate Your Investment Strategy by Backtesting Stocks","isPartOf":{"@id":"https:\/\/www.tiingo.com\/blog\/#website"},"datePublished":"2023-07-18T12:25:34+00:00","dateModified":"2023-07-18T12:25:36+00:00","description":"Are you backtesting stocks before making live trades? Find out why investors use this strategy as well as its advantages and disadvantages.","breadcrumb":{"@id":"https:\/\/www.tiingo.com\/blog\/backtesting-stocks\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.tiingo.com\/blog\/backtesting-stocks\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.tiingo.com\/blog\/backtesting-stocks\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.tiingo.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Simulate Your Investment Strategy by Backtesting Stocks"}]},{"@type":"WebSite","@id":"https:\/\/www.tiingo.com\/blog\/#website","url":"https:\/\/www.tiingo.com\/blog\/","name":"Tiingo API Blog","description":"","publisher":{"@id":"https:\/\/www.tiingo.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.tiingo.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.tiingo.com\/blog\/#organization","name":"Tiingo.com","url":"https:\/\/www.tiingo.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.tiingo.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/api.tiingo.com\/blog\/wp-content\/uploads\/2023\/05\/purple-for-light-bg.svg","contentUrl":"https:\/\/api.tiingo.com\/blog\/wp-content\/uploads\/2023\/05\/purple-for-light-bg.svg","width":"1024","height":"1024","caption":"Tiingo.com"},"image":{"@id":"https:\/\/www.tiingo.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/tiingofinance\/","https:\/\/twitter.com\/tiingofinance"]},{"@type":"Person","@id":"https:\/\/www.tiingo.com\/blog\/#\/schema\/person\/54fc93e1626ed221a37fcfddb597c3d6","name":"Rishi S.","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.tiingo.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/28ae16ae1fe9df62492ab4b742241b19a6a12395109570074a7b8194c6709ec4?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/28ae16ae1fe9df62492ab4b742241b19a6a12395109570074a7b8194c6709ec4?s=96&d=mm&r=g","caption":"Rishi S."},"description":"Rishi Singh is the CEO of Tiingo.com. A prior algorithmic and quant researcher, Rishi started Tiingo.com to modernize the financial data vertical by focusing on data acquisition, cleansing, aggregation, innovation, and distribution of data.","sameAs":["http:\/\/www.tiingo.com"],"url":"https:\/\/www.tiingo.com\/blog\/author\/tadmin24\/"}]}},"featured_image_src":"https:\/\/www.tiingo.com\/blog\/wp-content\/uploads\/2023\/07\/entrepreneur-looking-at-a-laptop-600x400.jpg","featured_image_src_square":"https:\/\/www.tiingo.com\/blog\/wp-content\/uploads\/2023\/07\/entrepreneur-looking-at-a-laptop-600x600.jpg","author_info":{"display_name":"Rishi S.","author_link":"https:\/\/www.tiingo.com\/blog\/author\/tadmin24\/"},"_links":{"self":[{"href":"https:\/\/www.tiingo.com\/blog\/wp-json\/wp\/v2\/posts\/253","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tiingo.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tiingo.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tiingo.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tiingo.com\/blog\/wp-json\/wp\/v2\/comments?post=253"}],"version-history":[{"count":1,"href":"https:\/\/www.tiingo.com\/blog\/wp-json\/wp\/v2\/posts\/253\/revisions"}],"predecessor-version":[{"id":257,"href":"https:\/\/www.tiingo.com\/blog\/wp-json\/wp\/v2\/posts\/253\/revisions\/257"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.tiingo.com\/blog\/wp-json\/wp\/v2\/media\/256"}],"wp:attachment":[{"href":"https:\/\/www.tiingo.com\/blog\/wp-json\/wp\/v2\/media?parent=253"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tiingo.com\/blog\/wp-json\/wp\/v2\/categories?post=253"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tiingo.com\/blog\/wp-json\/wp\/v2\/tags?post=253"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}