{"id":5521,"date":"2024-04-29T05:49:05","date_gmt":"2024-04-29T05:49:05","guid":{"rendered":"https:\/\/eodhd.com\/financial-academy\/?p=5521"},"modified":"2024-07-24T16:11:46","modified_gmt":"2024-07-24T16:11:46","slug":"backtesting-technical-analysis-strategies-with-excel","status":"publish","type":"post","link":"https:\/\/eodhd.com\/financial-academy\/backtesting-strategies-examples\/backtesting-technical-analysis-strategies-with-excel","title":{"rendered":"Backtesting Technical Analysis Strategies with Excel(SMA, RSI, MACD)"},"content":{"rendered":"\n<p><a href=\"https:\/\/www.investopedia.com\/terms\/b\/backtesting.asp\" target=\"_blank\" rel=\"noreferrer noopener\">Backtesting <\/a>Technical Analysis Strategies is an essential process for evaluating the effectiveness of a trading strategy before deploying it in live markets. By using historical data, you can simulate the performance of your strategies and assess risk and potential returns. In this article, we&#8217;ll walk through how to build an Excel template that pulls key financial statement data from EODHD&#8217;s APIs using cell formulas, allowing you to analyze any public company&#8217;s financials. <\/p>\n\n\n\n<p><a href=\"https:\/\/eodhd.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">EODHD <\/a>provides simple JSON APIs covering fundamentals, stock prices, and more for 150,000+ tickers across 70+ worldwide exchanges.<\/p>\n\n\n\n<p class=\"has-text-align-center\"><a class=\"maxbutton-1 maxbutton maxbutton-subscribe-to-api external-css btn\" href=\"https:\/\/eodhd.com\/register\"><span class='mb-text'>Register &amp; Get Data<\/span><\/a><\/p>\n\n\n\n<p>You can also check our guides for <a href=\"https:\/\/eodhd.com\/financial-academy\/portfolio-performance-examples\/excel-stock-portfolio-spreadsheet-how-to-build\/\" target=\"_blank\" rel=\"noreferrer noopener\">Excel Stock Portfolio Tracker<\/a> and <a href=\"https:\/\/eodhd.com\/financial-academy\/stocks-data-processing-examples\/microsoft-excel-stock-market-dashboard\/\" target=\"_blank\" rel=\"noreferrer noopener\">Market Dashboard<\/a>. Here you&#8217;ll find more information on our <a href=\"https:\/\/eodhd.com\/financial-apis\/category\/stock-prices-solutions\/\" target=\"_blank\" rel=\"noreferrer noopener\">Ready-to-Go<\/a> solutions.<\/p>\n\n\n\n<p>Download our Backtesting Tool Template to follow the article:<\/p>\n\n\n\n<div class=\"wp-block-file\"><a id=\"wp-block-file--media-c81c25be-2fd4-4b98-b4a8-556880cc6824\" href=\"https:\/\/eodhd.com\/financial-academy\/wp-content\/uploads\/2024\/04\/EODHD_Stratagy_Sim_Spreadsheet.xlsx\">EODHD_Stratagy_Sim_Spreadsheet<\/a><a href=\"https:\/\/eodhd.com\/financial-academy\/wp-content\/uploads\/2024\/04\/EODHD_Stratagy_Sim_Spreadsheet.xlsx\" class=\"wp-block-file__button wp-element-button\" download aria-describedby=\"wp-block-file--media-c81c25be-2fd4-4b98-b4a8-556880cc6824\">Download<\/a><\/div>\n\n\n\n<p class=\"has-text-align-left\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-sign-up-for-eodhd-and-get-your-api-key\">Sign up for EODHD and get your API key<\/h2>\n\n\n\n<p>Register for a free EODHD account at&nbsp;<a href=\"https:\/\/eodhd.com\/register\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/eodhd.com\/register<\/a>&nbsp;to receive your API key. The free plan allows 20 API requests\/day and 1 year of EOD historical data. Paid plans starting at <a href=\"https:\/\/eodhd.com\/pricing\" target=\"_blank\" rel=\"noreferrer noopener\">$19.99\/month<\/a> enable more API calls and access to 30+ years of data.<\/p>\n\n\n\n<p class=\"has-text-align-center\"><a class=\"maxbutton-1 maxbutton maxbutton-subscribe-to-api external-css btn\" href=\"https:\/\/eodhd.com\/register\"><span class='mb-text'>Register &amp; Get Data<\/span><\/a><\/p>\n\n\n\n<p>To follow the article and test the basic <a href=\"https:\/\/eodhd.com\/financial-apis\/quick-start-with-our-financial-data-apis\/\" target=\"_blank\" rel=\"noreferrer noopener\">functionality <\/a>of our APIs you can use our &#8220;demo&#8221; key. The key gives you access to the Fundamentals and Historical data for AAPL, TSLA, MSFT, and MCD tickers.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-pull-in-data-from-eodhd-api\">Pull in data from EODHD API <\/h2>\n\n\n\n<p>The main tool to retrieve data into the spreadsheet cell from an API is a &#8220;=WEBSERVICE()&#8221; Excel formula. By using the formula you can get access to all our Fundamental And Historical APIs. Thus, It is important to check the official <a href=\"https:\/\/support.microsoft.com\/en-us\/office\/webservice-function-0546a35a-ecc6-4739-aed7-c0b7ce1562c4\" target=\"_blank\" rel=\"noreferrer noopener\">documentation from Microsoft<\/a>.<\/p>\n\n\n\n<p>Backtesting Technical Analysis Strategies Requires price time series. Use the <a href=\"https:\/\/eodhd.com\/financial-apis\/api-for-historical-data-and-volumes\/\" target=\"_blank\" rel=\"noreferrer noopener\">End-of-Day API<\/a> to retrieve the EOD OHLC data for your chosen stock:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">=LET(raw_data,WEBSERVICE(\"https:\/\/eodhd.com\/api\/eod\/\"&amp;$C$3&amp;\"?api_token=\"&amp;$B$2&amp;\"&amp;order=a&amp;fmt=json&amp;from=\"&amp;TEXT($C$4,\"YYYY-MM-DD\")&amp;\"&amp;to=\"&amp;TEXT($C$5,\"YYYY-MM-DD\")&amp;\"&amp;filter=\"&amp;C11),\nfiltered_data,FILTERXML(\"&lt;t&gt;&lt;s&gt;\"&amp;SUBSTITUTE(MID(raw_data,2,LEN(raw_data)-2),\",\",\"&lt;\/s&gt;&lt;s&gt;\")&amp;\"&lt;\/s&gt;&lt;\/t&gt;\",\"\/\/s\"),\nVALUE(SUBSTITUTE(filtered_data,\"\"\"\",\"\")))\n<\/pre>\n\n\n\n<p>The formula&#8217;s <strong><a href=\"https:\/\/support.microsoft.com\/en-us\/office\/webservice-function-0546a35a-ecc6-4739-aed7-c0b7ce1562c4\" target=\"_blank\" rel=\"noreferrer noopener\">WEBSERVICE <\/a>Function<\/strong> sends a web request to the EODHD&#8217;s <a href=\"https:\/\/eodhd.com\/financial-apis\/api-for-historical-data-and-volumes\/\" target=\"_blank\" rel=\"noreferrer noopener\">End-of-Day data API<\/a> and retrieves the data from it. Where $B$2 is an API token, $C$3 is a ticker symbol,$C$4 and $C$5 is a date range, and C11 is a filter (date, open, high, low, close). <strong><a href=\"https:\/\/support.microsoft.com\/en-us\/office\/let-function-34842dd8-b92b-4d3f-b325-b8b8f9908999#:~:text=The%20LET%20function%20assigns%20names,through%20Excel's%20native%20formula%20syntax.\" target=\"_blank\" rel=\"noreferrer noopener\">LET <\/a>Function<\/strong> is used to define variables within a formula. <strong>raw_data<\/strong> stores the raw data fetched from the web service. <strong>filtered_data<\/strong> uses <strong><a href=\"https:\/\/support.microsoft.com\/en-us\/office\/filterxml-function-4df72efc-11ec-4951-86f5-c1374812f5b7\" target=\"_blank\" rel=\"noreferrer noopener\">FILTERXML<\/a> <\/strong>to parse XML content and returns the data based on an XPath query. <strong><a href=\"https:\/\/support.microsoft.com\/en-us\/office\/value-function-257d0108-07dc-437d-ae1c-bc2d3953d8c2\" target=\"_blank\" rel=\"noreferrer noopener\">VALUE <\/a>Function<\/strong> converts text into the number format. The <strong><a href=\"https:\/\/support.microsoft.com\/en-us\/office\/substitute-function-6434944e-a904-4336-a9b0-1e58df3bc332\" target=\"_blank\" rel=\"noreferrer noopener\">SUBSTITUTE <\/a>Function<\/strong> is used to clean up the format before converting it into numerical values.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-defining-the-technical-analysis-strategy\">Defining the Technical Analysis Strategy <\/h2>\n\n\n\n<p>Next, define the technical analysis strategy you wish to backtest. For this example, we will use three commonly used technical analysis strategies: the Simple Moving Average (SMA) crossover, the Relative Strength Index (RSI) Strategy, and the Moving Average Convergence Divergence (MACD) Crossover Strategy.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-simple-moving-average-sma-crossover-strategy\">Simple moving average (SMA) crossover strategy<\/h3>\n\n\n\n<p><a href=\"https:\/\/www.investopedia.com\/articles\/active-trading\/052014\/how-use-moving-average-buy-stocks.asp\" target=\"_blank\" rel=\"noreferrer noopener\">SMA crossover<\/a> strategy is defined in the following way:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Buy signal: When the 50-day simple moving average (SMA) crosses above the 200-day SMA.<\/li>\n\n\n\n<li>Sell signal: When the 50-day SMA crosses below the 200-day SMA.<\/li>\n<\/ul>\n\n\n\n<p>For the strategy to work, we need to calculate 50 and 200-day SMA for the price time series To get SMA for the period we could use the Excel&#8217;s &#8220;=AVERAGE(range)&#8221; cell formula.<\/p>\n\n\n\n<p>For an SMA indicator, you can also use EODHD&#8217;s <a href=\"https:\/\/eodhd.com\/financial-apis\/technical-indicators-api\" target=\"_blank\" rel=\"noreferrer noopener\">Technical API<\/a>, the cell function will look like this:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">=LET(raw_data,WEBSERVICE(\"https:\/\/eodhd.com\/api\/technical\/AAPL.US?order=d&amp;from=2017-08-01&amp;to=2020-01-01&amp;function=sma&amp;period=50&amp;api_token=demo&amp;fmt=json\"),\r\nfiltered_data,FILTERXML(\"&lt;t&gt;&lt;s&gt;\"&amp;SUBSTITUTE(MID(raw_data,2,LEN(raw_data)-2),\",\",\"&lt;\/s&gt;&lt;s&gt;\")&amp;\"&lt;\/s&gt;&lt;\/t&gt;\",\"\/\/s\"),\r\nSUBSTITUTE(filtered_data,\"\"\"\",\"\"))\r\n<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-relative-strength-index-rsi-strategy\">Relative Strength Index (RSI) Strategy<\/h3>\n\n\n\n<p><a href=\"https:\/\/www.investopedia.com\/terms\/r\/rsi.asp\" target=\"_blank\" rel=\"noreferrer noopener\">RSI<\/a> strategies could be explained as:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Buy signal: When the RSI crosses above 30 (oversold threshold)<\/li>\n\n\n\n<li>Sell signal: When the RSI crosses below 70 (overbought threshold)<\/li>\n<\/ul>\n\n\n\n<p>The formula for RSI is defined as:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"683\" height=\"177\" src=\"https:\/\/eodhd.com\/financial-academy\/wp-content\/uploads\/2024\/04\/image.png\" alt=\"Backtesting a Technical Analysis Strategy using Excel and EODHD's API\" class=\"wp-image-5540\" style=\"width:369px;height:auto\" \/><\/figure>\n<\/div>\n\n\n<p>An Excel cell function for the formula would look like the following:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">=LET(\nperiod, 14,\n    prices, F12:F110,\n    changes, prices - INDEX(prices,1),\n    gains, IF(changes &gt; 0, changes, 0),\n    losses, IF(changes &lt; 0, ABS(changes), 0),\n    avg_gain, AVERAGE(IF(ROW(prices) &gt; (ROW(prices)-period), gains)),\n    avg_loss, AVERAGE(IF(ROW(prices) &gt; (ROW(prices)-period), losses)),\n    rs, IF(avg_loss = 0, 0, avg_gain \/ avg_loss),\n    100 - (100 \/ (1 + rs)))\n<\/pre>\n\n\n\n<p>This formula calculates the SMAs and generates buy and sell signals based on the crossover strategy using the price data in the range F9:F825.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-moving-average-convergence-divergence-macd-crossover-strategy\">Moving Average Convergence Divergence (MACD) Crossover Strategy<\/h3>\n\n\n\n<p><a href=\"https:\/\/www.britannica.com\/money\/macd-moving-average-convergence-divergence\" target=\"_blank\" rel=\"noreferrer noopener\">MACD <\/a>crossover strategy is:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Buy signal: When the MACD line crosses above the signal line<\/li>\n\n\n\n<li>Sell signal: When the MACD line crosses below the signal line<\/li>\n<\/ul>\n\n\n\n<p>For MACD and MACD(signal) values, we need to calculate EMA12 and EMA26. Formulas for MACD are the following:<\/p>\n\n\n\n<p class=\"has-text-align-center\">MACD=EMA12(close)-EMA26(close)<\/p>\n\n\n\n<p class=\"has-text-align-center\">MACDsignal=EMA9(MACD)<\/p>\n\n\n\n<p>The formula for EMA:<\/p>\n\n\n\n<p class=\"has-text-align-center\">EMA=PriviousEMA+(1\/period+1)*(close-PriviousEMA)<\/p>\n\n\n\n<p>For the first PriviousEMA, we use AVERAGE(previous range).<\/p>\n\n\n\n<p>For an SEMA indicator, you can also use EODHD&#8217;s <a href=\"https:\/\/eodhd.com\/financial-apis\/technical-indicators-api\" target=\"_blank\" rel=\"noreferrer noopener\">Technical API<\/a>, the cell function will look like this:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">=LET(raw_data,WEBSERVICE(\"https:\/\/eodhd.com\/api\/technical\/AAPL.US?order=d&amp;from=2017-08-01&amp;to=2020-01-01&amp;function=ema&amp;period=50&amp;api_token=demo&amp;fmt=json\"),\nfiltered_data,FILTERXML(\"&lt;t&gt;&lt;s&gt;\"&amp;SUBSTITUTE(MID(raw_data,2,LEN(raw_data)-2),\",\",\"&lt;\/s&gt;&lt;s&gt;\")&amp;\"&lt;\/s&gt;&lt;\/t&gt;\",\"\/\/s\"),\nSUBSTITUTE(filtered_data,\"\"\"\",\"\"))<\/pre>\n\n\n\n<p>The cell function will return the list of EMA values. To get access to the technical API you need to <a href=\"https:\/\/eodhd.com\/pricing\" target=\"_blank\" rel=\"noreferrer noopener\">register <\/a>and use your API key.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-generating-trading-signals-and-trades\">Generating Trading Signals and Trades<\/h2>\n\n\n\n<p>Create a new column in your spreadsheet to generate trading signals based on the defined strategies. Use Excel&#8217;s IF function to check whether the signal criterion is meat for the specific strategy. <\/p>\n\n\n\n<p>An example of the crossover cell formula:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">=IF(AND((L215-M215)&gt;0,(L216-M216)&lt;0),-F216,IF(AND((L215-M215)&lt;0,(L216-M216)&gt;0),F216,))<\/pre>\n\n\n\n<p>Formula meeting RSI criterion:<\/p>\n\n\n\n<p>=IF(AND(I216&gt;30,I215&lt;30),F216,IF(AND(I215&lt;70,I216&gt;70),-F216,))<\/p>\n\n\n\n<p>The formulas above will result in trades SELL or Buy depending on the criterion of the strategy. The sum of all trades per strategy provides us with the total return of a specific strategy.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1265\" height=\"652\" src=\"https:\/\/eodhd.com\/financial-academy\/wp-content\/uploads\/2024\/04\/Perofrmance_Sim.gif\" alt=\"\" class=\"wp-image-5541\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-conclusion\">Conclusion<\/h2>\n\n\n\n<p>Backtesting Technical Analysis Strategies is a crucial step in evaluating the potential of a specific path. By leveraging EODHD&#8217;s API and Excel, traders can efficiently retrieve historical data, simulate trades, and analyze the performance of their technical analysis-based strategies. However, it is essential to remember that past performance does not guarantee future results. Traders should use backtesting as one of many tools in their decision-making process and always consider the limitations and assumptions involved in the backtesting process. <\/p>\n\n\n\n<p><\/p>\n\n\n\n<p class=\"has-text-align-center\"><a class=\"maxbutton-1 maxbutton maxbutton-subscribe-to-api external-css btn\" href=\"https:\/\/eodhd.com\/register\"><span class='mb-text'>Register &amp; Get Data<\/span><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Backtesting Technical Analysis Strategies is an essential process for evaluating the effectiveness of a trading strategy before deploying it in live markets. By using historical data, you can simulate the performance of your strategies and assess risk and potential returns. In this article, we&#8217;ll walk through how to build an Excel template that pulls key [&hellip;]<\/p>\n","protected":false},"author":12,"featured_media":5526,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[65,43,42,48,62,59,61],"tags":[91,85,90],"coding-language":[],"ready-to-go-solution":[45],"qualification":[33],"financial-apis-category":[34,36],"financial-apis-manuals":[39,40],"class_list":["post-5521","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-backtesting-strategies-examples","category-how-to-get-stocks-data-examples","category-stocks-data-analysis-examples","category-stocks-data-processing-examples","category-stocks-price-prediction-examples","category-technical-analysis-examples","category-trading-indicators-implimentations","tag-best-financial-api","tag-financial-data-spreadsheets","tag-trading-strategy","ready-to-go-solution-excel-add-in","qualification-newbie","financial-apis-category-crypto-market-prices","financial-apis-category-stock-market-prices","financial-apis-manuals-end-of-day","financial-apis-manuals-technical-indicators","has_thumb"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.9 (Yoast SEO v26.7) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Backtesting Technical Analysis Strategies with Excel(SMA, RSI, MACD) | EODHD APIs Academy<\/title>\n<meta name=\"description\" content=\"Step-by-step guide for Backtesting Technical Analysis Strategies using Excel and Financial APIs. Download your free template\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/eodhd.com\/financial-academy\/backtesting-strategies-examples\/backtesting-technical-analysis-strategies-with-excel\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Backtesting Technical Analysis Strategies with Excel(SMA, RSI, MACD)\" \/>\n<meta property=\"og:description\" content=\"Step-by-step guide for Backtesting Technical Analysis Strategies using Excel and Financial APIs. Download your free template\" \/>\n<meta property=\"og:url\" content=\"https:\/\/eodhd.com\/financial-academy\/backtesting-strategies-examples\/backtesting-technical-analysis-strategies-with-excel\" \/>\n<meta property=\"og:site_name\" content=\"Financial Academy\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/eodhistoricaldata\" \/>\n<meta property=\"article:published_time\" content=\"2024-04-29T05:49:05+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-07-24T16:11:46+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/eodhd.com\/financial-academy\/wp-content\/uploads\/2024\/04\/Testing_Strategies.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1918\" \/>\n\t<meta property=\"og:image:height\" content=\"973\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Andrei Paulavets\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@EOD_data\" \/>\n<meta name=\"twitter:site\" content=\"@EOD_data\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Andrei Paulavets\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/eodhd.com\/financial-academy\/backtesting-strategies-examples\/backtesting-technical-analysis-strategies-with-excel#article\",\"isPartOf\":{\"@id\":\"https:\/\/eodhd.com\/financial-academy\/backtesting-strategies-examples\/backtesting-technical-analysis-strategies-with-excel\"},\"author\":{\"name\":\"Andrei Paulavets\",\"@id\":\"https:\/\/eodhd.com\/financial-academy\/#\/schema\/person\/beb3cf1cd77acbb7720cda8c63e5565e\"},\"headline\":\"Backtesting Technical Analysis Strategies with Excel(SMA, RSI, MACD)\",\"datePublished\":\"2024-04-29T05:49:05+00:00\",\"dateModified\":\"2024-07-24T16:11:46+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/eodhd.com\/financial-academy\/backtesting-strategies-examples\/backtesting-technical-analysis-strategies-with-excel\"},\"wordCount\":941,\"publisher\":{\"@id\":\"https:\/\/eodhd.com\/financial-academy\/#organization\"},\"image\":{\"@id\":\"https:\/\/eodhd.com\/financial-academy\/backtesting-strategies-examples\/backtesting-technical-analysis-strategies-with-excel#primaryimage\"},\"thumbnailUrl\":\"https:\/\/eodhd.com\/financial-academy\/wp-content\/uploads\/2024\/04\/Testing_Strategies.png\",\"keywords\":[\"Best Financial API\",\"financial data spreadsheets\",\"Trading strategy\"],\"articleSection\":[\"Backtesting Strategies Examples\",\"How to Get Stocks Data Examples\",\"Stocks Data Analysis Examples\",\"Stocks Data Processing Examples\",\"Stocks Price Predictions Examples\",\"Technical Analysis Examples\",\"Trading Indicators Implimentations\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/eodhd.com\/financial-academy\/backtesting-strategies-examples\/backtesting-technical-analysis-strategies-with-excel\",\"url\":\"https:\/\/eodhd.com\/financial-academy\/backtesting-strategies-examples\/backtesting-technical-analysis-strategies-with-excel\",\"name\":\"Backtesting Technical Analysis Strategies with Excel(SMA, RSI, MACD) | EODHD APIs Academy\",\"isPartOf\":{\"@id\":\"https:\/\/eodhd.com\/financial-academy\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/eodhd.com\/financial-academy\/backtesting-strategies-examples\/backtesting-technical-analysis-strategies-with-excel#primaryimage\"},\"image\":{\"@id\":\"https:\/\/eodhd.com\/financial-academy\/backtesting-strategies-examples\/backtesting-technical-analysis-strategies-with-excel#primaryimage\"},\"thumbnailUrl\":\"https:\/\/eodhd.com\/financial-academy\/wp-content\/uploads\/2024\/04\/Testing_Strategies.png\",\"datePublished\":\"2024-04-29T05:49:05+00:00\",\"dateModified\":\"2024-07-24T16:11:46+00:00\",\"description\":\"Step-by-step guide for Backtesting Technical Analysis Strategies using Excel and Financial APIs. Download your free template\",\"breadcrumb\":{\"@id\":\"https:\/\/eodhd.com\/financial-academy\/backtesting-strategies-examples\/backtesting-technical-analysis-strategies-with-excel#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/eodhd.com\/financial-academy\/backtesting-strategies-examples\/backtesting-technical-analysis-strategies-with-excel\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/eodhd.com\/financial-academy\/backtesting-strategies-examples\/backtesting-technical-analysis-strategies-with-excel#primaryimage\",\"url\":\"https:\/\/eodhd.com\/financial-academy\/wp-content\/uploads\/2024\/04\/Testing_Strategies.png\",\"contentUrl\":\"https:\/\/eodhd.com\/financial-academy\/wp-content\/uploads\/2024\/04\/Testing_Strategies.png\",\"width\":1918,\"height\":973},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/eodhd.com\/financial-academy\/backtesting-strategies-examples\/backtesting-technical-analysis-strategies-with-excel#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/eodhd.com\/financial-academy\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Backtesting Technical Analysis Strategies with Excel(SMA, RSI, MACD)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/eodhd.com\/financial-academy\/#website\",\"url\":\"https:\/\/eodhd.com\/financial-academy\/\",\"name\":\"Financial APIs Academy | EODHD\",\"description\":\"Financial Stock Market Academy\",\"publisher\":{\"@id\":\"https:\/\/eodhd.com\/financial-academy\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/eodhd.com\/financial-academy\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/eodhd.com\/financial-academy\/#organization\",\"name\":\"EODHD (EOD Historical Data)\",\"url\":\"https:\/\/eodhd.com\/financial-academy\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/eodhd.com\/financial-academy\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/eodhd.com\/financial-academy\/wp-content\/uploads\/2023\/12\/EODHD-Logo.png\",\"contentUrl\":\"https:\/\/eodhd.com\/financial-academy\/wp-content\/uploads\/2023\/12\/EODHD-Logo.png\",\"width\":159,\"height\":82,\"caption\":\"EODHD (EOD Historical Data)\"},\"image\":{\"@id\":\"https:\/\/eodhd.com\/financial-academy\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/eodhistoricaldata\",\"https:\/\/x.com\/EOD_data\",\"https:\/\/www.reddit.com\/r\/EODHistoricalData\/\",\"https:\/\/eod-historical-data.medium.com\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/eodhd.com\/financial-academy\/#\/schema\/person\/beb3cf1cd77acbb7720cda8c63e5565e\",\"name\":\"Andrei Paulavets\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/eodhd.com\/financial-academy\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/7ac21633a5988e5054e9edbe412f1f07957970ee6e9f6dbada15224224cdd2c9?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/7ac21633a5988e5054e9edbe412f1f07957970ee6e9f6dbada15224224cdd2c9?s=96&d=mm&r=g\",\"caption\":\"Andrei Paulavets\"},\"description\":\"Investment professional with a strong engineering background, leveraging diverse background and risk managment experience to enhance investor financial analysis and data-driven decision-making in financial markets.\",\"sameAs\":[\"https:\/\/www.linkedin.com\/in\/andreipaulavets\"],\"url\":\"https:\/\/eodhd.com\/financial-academy\/author\/andrew-eodhd\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Backtesting Technical Analysis Strategies with Excel(SMA, RSI, MACD) | EODHD APIs Academy","description":"Step-by-step guide for Backtesting Technical Analysis Strategies using Excel and Financial APIs. Download your free template","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:\/\/eodhd.com\/financial-academy\/backtesting-strategies-examples\/backtesting-technical-analysis-strategies-with-excel","og_locale":"en_US","og_type":"article","og_title":"Backtesting Technical Analysis Strategies with Excel(SMA, RSI, MACD)","og_description":"Step-by-step guide for Backtesting Technical Analysis Strategies using Excel and Financial APIs. Download your free template","og_url":"https:\/\/eodhd.com\/financial-academy\/backtesting-strategies-examples\/backtesting-technical-analysis-strategies-with-excel","og_site_name":"Financial Academy","article_publisher":"https:\/\/www.facebook.com\/eodhistoricaldata","article_published_time":"2024-04-29T05:49:05+00:00","article_modified_time":"2024-07-24T16:11:46+00:00","og_image":[{"width":1918,"height":973,"url":"https:\/\/eodhd.com\/financial-academy\/wp-content\/uploads\/2024\/04\/Testing_Strategies.png","type":"image\/png"}],"author":"Andrei Paulavets","twitter_card":"summary_large_image","twitter_creator":"@EOD_data","twitter_site":"@EOD_data","twitter_misc":{"Written by":"Andrei Paulavets","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/eodhd.com\/financial-academy\/backtesting-strategies-examples\/backtesting-technical-analysis-strategies-with-excel#article","isPartOf":{"@id":"https:\/\/eodhd.com\/financial-academy\/backtesting-strategies-examples\/backtesting-technical-analysis-strategies-with-excel"},"author":{"name":"Andrei Paulavets","@id":"https:\/\/eodhd.com\/financial-academy\/#\/schema\/person\/beb3cf1cd77acbb7720cda8c63e5565e"},"headline":"Backtesting Technical Analysis Strategies with Excel(SMA, RSI, MACD)","datePublished":"2024-04-29T05:49:05+00:00","dateModified":"2024-07-24T16:11:46+00:00","mainEntityOfPage":{"@id":"https:\/\/eodhd.com\/financial-academy\/backtesting-strategies-examples\/backtesting-technical-analysis-strategies-with-excel"},"wordCount":941,"publisher":{"@id":"https:\/\/eodhd.com\/financial-academy\/#organization"},"image":{"@id":"https:\/\/eodhd.com\/financial-academy\/backtesting-strategies-examples\/backtesting-technical-analysis-strategies-with-excel#primaryimage"},"thumbnailUrl":"https:\/\/eodhd.com\/financial-academy\/wp-content\/uploads\/2024\/04\/Testing_Strategies.png","keywords":["Best Financial API","financial data spreadsheets","Trading strategy"],"articleSection":["Backtesting Strategies Examples","How to Get Stocks Data Examples","Stocks Data Analysis Examples","Stocks Data Processing Examples","Stocks Price Predictions Examples","Technical Analysis Examples","Trading Indicators Implimentations"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/eodhd.com\/financial-academy\/backtesting-strategies-examples\/backtesting-technical-analysis-strategies-with-excel","url":"https:\/\/eodhd.com\/financial-academy\/backtesting-strategies-examples\/backtesting-technical-analysis-strategies-with-excel","name":"Backtesting Technical Analysis Strategies with Excel(SMA, RSI, MACD) | EODHD APIs Academy","isPartOf":{"@id":"https:\/\/eodhd.com\/financial-academy\/#website"},"primaryImageOfPage":{"@id":"https:\/\/eodhd.com\/financial-academy\/backtesting-strategies-examples\/backtesting-technical-analysis-strategies-with-excel#primaryimage"},"image":{"@id":"https:\/\/eodhd.com\/financial-academy\/backtesting-strategies-examples\/backtesting-technical-analysis-strategies-with-excel#primaryimage"},"thumbnailUrl":"https:\/\/eodhd.com\/financial-academy\/wp-content\/uploads\/2024\/04\/Testing_Strategies.png","datePublished":"2024-04-29T05:49:05+00:00","dateModified":"2024-07-24T16:11:46+00:00","description":"Step-by-step guide for Backtesting Technical Analysis Strategies using Excel and Financial APIs. Download your free template","breadcrumb":{"@id":"https:\/\/eodhd.com\/financial-academy\/backtesting-strategies-examples\/backtesting-technical-analysis-strategies-with-excel#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/eodhd.com\/financial-academy\/backtesting-strategies-examples\/backtesting-technical-analysis-strategies-with-excel"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/eodhd.com\/financial-academy\/backtesting-strategies-examples\/backtesting-technical-analysis-strategies-with-excel#primaryimage","url":"https:\/\/eodhd.com\/financial-academy\/wp-content\/uploads\/2024\/04\/Testing_Strategies.png","contentUrl":"https:\/\/eodhd.com\/financial-academy\/wp-content\/uploads\/2024\/04\/Testing_Strategies.png","width":1918,"height":973},{"@type":"BreadcrumbList","@id":"https:\/\/eodhd.com\/financial-academy\/backtesting-strategies-examples\/backtesting-technical-analysis-strategies-with-excel#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/eodhd.com\/financial-academy\/"},{"@type":"ListItem","position":2,"name":"Backtesting Technical Analysis Strategies with Excel(SMA, RSI, MACD)"}]},{"@type":"WebSite","@id":"https:\/\/eodhd.com\/financial-academy\/#website","url":"https:\/\/eodhd.com\/financial-academy\/","name":"Financial APIs Academy | EODHD","description":"Financial Stock Market Academy","publisher":{"@id":"https:\/\/eodhd.com\/financial-academy\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/eodhd.com\/financial-academy\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/eodhd.com\/financial-academy\/#organization","name":"EODHD (EOD Historical Data)","url":"https:\/\/eodhd.com\/financial-academy\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/eodhd.com\/financial-academy\/#\/schema\/logo\/image\/","url":"https:\/\/eodhd.com\/financial-academy\/wp-content\/uploads\/2023\/12\/EODHD-Logo.png","contentUrl":"https:\/\/eodhd.com\/financial-academy\/wp-content\/uploads\/2023\/12\/EODHD-Logo.png","width":159,"height":82,"caption":"EODHD (EOD Historical Data)"},"image":{"@id":"https:\/\/eodhd.com\/financial-academy\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/eodhistoricaldata","https:\/\/x.com\/EOD_data","https:\/\/www.reddit.com\/r\/EODHistoricalData\/","https:\/\/eod-historical-data.medium.com\/"]},{"@type":"Person","@id":"https:\/\/eodhd.com\/financial-academy\/#\/schema\/person\/beb3cf1cd77acbb7720cda8c63e5565e","name":"Andrei Paulavets","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/eodhd.com\/financial-academy\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/7ac21633a5988e5054e9edbe412f1f07957970ee6e9f6dbada15224224cdd2c9?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/7ac21633a5988e5054e9edbe412f1f07957970ee6e9f6dbada15224224cdd2c9?s=96&d=mm&r=g","caption":"Andrei Paulavets"},"description":"Investment professional with a strong engineering background, leveraging diverse background and risk managment experience to enhance investor financial analysis and data-driven decision-making in financial markets.","sameAs":["https:\/\/www.linkedin.com\/in\/andreipaulavets"],"url":"https:\/\/eodhd.com\/financial-academy\/author\/andrew-eodhd"}]}},"jetpack_featured_media_url":"https:\/\/eodhd.com\/financial-academy\/wp-content\/uploads\/2024\/04\/Testing_Strategies.png","jetpack_shortlink":"https:\/\/wp.me\/pdOdVT-1r3","jetpack_sharing_enabled":true,"acf":[],"_links":{"self":[{"href":"https:\/\/eodhd.com\/financial-academy\/wp-json\/wp\/v2\/posts\/5521","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/eodhd.com\/financial-academy\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/eodhd.com\/financial-academy\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/eodhd.com\/financial-academy\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/eodhd.com\/financial-academy\/wp-json\/wp\/v2\/comments?post=5521"}],"version-history":[{"count":9,"href":"https:\/\/eodhd.com\/financial-academy\/wp-json\/wp\/v2\/posts\/5521\/revisions"}],"predecessor-version":[{"id":5544,"href":"https:\/\/eodhd.com\/financial-academy\/wp-json\/wp\/v2\/posts\/5521\/revisions\/5544"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/eodhd.com\/financial-academy\/wp-json\/wp\/v2\/media\/5526"}],"wp:attachment":[{"href":"https:\/\/eodhd.com\/financial-academy\/wp-json\/wp\/v2\/media?parent=5521"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/eodhd.com\/financial-academy\/wp-json\/wp\/v2\/categories?post=5521"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/eodhd.com\/financial-academy\/wp-json\/wp\/v2\/tags?post=5521"},{"taxonomy":"coding-language","embeddable":true,"href":"https:\/\/eodhd.com\/financial-academy\/wp-json\/wp\/v2\/coding-language?post=5521"},{"taxonomy":"ready-to-go-solution","embeddable":true,"href":"https:\/\/eodhd.com\/financial-academy\/wp-json\/wp\/v2\/ready-to-go-solution?post=5521"},{"taxonomy":"qualification","embeddable":true,"href":"https:\/\/eodhd.com\/financial-academy\/wp-json\/wp\/v2\/qualification?post=5521"},{"taxonomy":"financial-apis-category","embeddable":true,"href":"https:\/\/eodhd.com\/financial-academy\/wp-json\/wp\/v2\/financial-apis-category?post=5521"},{"taxonomy":"financial-apis-manuals","embeddable":true,"href":"https:\/\/eodhd.com\/financial-academy\/wp-json\/wp\/v2\/financial-apis-manuals?post=5521"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}