{"id":6340,"date":"2023-02-07T17:11:25","date_gmt":"2023-02-07T09:11:25","guid":{"rendered":"https:\/\/www.investagrams.com\/daily\/?p=6340"},"modified":"2023-02-07T17:11:28","modified_gmt":"2023-02-07T09:11:28","slug":"backtesting-the-macd","status":"publish","type":"post","link":"https:\/\/www.investagrams.com\/daily\/2023\/02\/backtesting-the-macd\/","title":{"rendered":"Backtesting the MACD"},"content":{"rendered":"\n<p>MACD can help gauge whether a stock is overbought or oversold.\u00a0 Traders are alerted to the directional move&#8217;s strength and warning of a potential price reversal.<\/p>\n\n\n\n<p>But what is a MACD? How should it be used? When is it best utilized? Let\u2019s find out!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">WHAT IS THE MACD<\/h2>\n\n\n\n<p>The moving average convergence divergence (also known as the MACD) is one of traders&#8217; most often used indicators. It is simply a trend-following indicator that displays the connection between two <a href=\"https:\/\/www.investagrams.com\/daily\/2018\/12\/moving-averages-for-beginners\/\">moving averages<\/a>.<br><br>Traders use MACD to detect changes in the direction or strength of a stock&#8217;s price trend. At first look, MACD may appear sophisticated since it is based on supplementary statistical ideas such as the exponential moving average (EMA). But fundamentally, MACD helps traders detect when the recent momentum in a stock\u2019s price may signal a change in its underlying trend.\u00a0<\/p>\n\n\n\n<p>This can help traders decide when to enter, add to, or exit a position.<br><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">COMPONENTS OF MACD<\/h2>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"623\" height=\"313\" src=\"https:\/\/dailymedia.investagrams.com\/investadaily\/2023\/02\/image.jpg\" alt=\"Components of the MACD\" class=\"wp-image-6341\" srcset=\"https:\/\/dailymedia.investagrams.com\/investadaily\/2023\/02\/image.jpg 623w, https:\/\/dailymedia.investagrams.com\/investadaily\/2023\/02\/image-300x151.jpg 300w, https:\/\/dailymedia.investagrams.com\/investadaily\/2023\/02\/image-610x306.jpg 610w, https:\/\/dailymedia.investagrams.com\/investadaily\/2023\/02\/image-400x201.jpg 400w\" sizes=\"auto, (max-width: 623px) 100vw, 623px\" \/><\/figure>\n\n\n\n<p>A MACD chart is made up of three components: the MACD line, a signal line, and a histogram, all of which are shown on a horizontal axis known as the baseline. The indicator is typically shown right below the price chart of the stocks. This allows price movements to be compared to changes in the MACD chart.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">MACD BACKTEST APPROACH<\/h2>\n\n\n\n<p>For this backtest, the indicators we used are the EMA 100 and the default MACD. The EMA 100 is used in order to assess the trend of the market. The stocks covered were <a href=\"https:\/\/www.investagrams.com\/Stock\/NYSE:SPX\">U.S<\/a>. and <a href=\"https:\/\/www.investagrams.com\/Stock\/PSE:PSEI\">PH<\/a> stocks. Random liquid stocks were chosen, with historical data starting from January 1, 2020.\u00a0<\/p>\n\n\n\n<p>The trades&#8217; framework will be as follows:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"899\" height=\"756\" src=\"https:\/\/dailymedia.investagrams.com\/investadaily\/2023\/02\/image-63e213cde1182.png\" alt=\"MACD buy signal\" class=\"wp-image-6342\" srcset=\"https:\/\/dailymedia.investagrams.com\/investadaily\/2023\/02\/image-63e213cde1182.png 899w, https:\/\/dailymedia.investagrams.com\/investadaily\/2023\/02\/image-63e213cde1182-300x252.png 300w, https:\/\/dailymedia.investagrams.com\/investadaily\/2023\/02\/image-63e213cde1182-768x646.png 768w, https:\/\/dailymedia.investagrams.com\/investadaily\/2023\/02\/image-63e213cde1182-610x513.png 610w, https:\/\/dailymedia.investagrams.com\/investadaily\/2023\/02\/image-63e213cde1182-640x538.png 640w, https:\/\/dailymedia.investagrams.com\/investadaily\/2023\/02\/image-63e213cde1182-400x336.png 400w\" sizes=\"auto, (max-width: 899px) 100vw, 899px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>Long positions are entered once the MACD line crosses over the Signal line.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"829\" height=\"579\" src=\"https:\/\/dailymedia.investagrams.com\/investadaily\/2023\/02\/image-63e213d0d726a.png\" alt=\"MACD sell signal\" class=\"wp-image-6343\" srcset=\"https:\/\/dailymedia.investagrams.com\/investadaily\/2023\/02\/image-63e213d0d726a.png 829w, https:\/\/dailymedia.investagrams.com\/investadaily\/2023\/02\/image-63e213d0d726a-300x210.png 300w, https:\/\/dailymedia.investagrams.com\/investadaily\/2023\/02\/image-63e213d0d726a-768x536.png 768w, https:\/\/dailymedia.investagrams.com\/investadaily\/2023\/02\/image-63e213d0d726a-610x426.png 610w, https:\/\/dailymedia.investagrams.com\/investadaily\/2023\/02\/image-63e213d0d726a-640x447.png 640w, https:\/\/dailymedia.investagrams.com\/investadaily\/2023\/02\/image-63e213d0d726a-400x279.png 400w\" sizes=\"auto, (max-width: 829px) 100vw, 829px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>Positions are then sold once a decrease in momentum is signaled by the MACD line crossing under the Signal line. Positions are also sold if there is a big change in market sentiment; hence, we must cut losses to prevent further deficits.&nbsp;<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">RESULTS USING THE MACD STRATEGY<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"470\" src=\"https:\/\/dailymedia.investagrams.com\/investadaily\/2023\/02\/image-63e213d41d1cb-1024x470.png\" alt=\"Backtest results\" class=\"wp-image-6344\" srcset=\"https:\/\/dailymedia.investagrams.com\/investadaily\/2023\/02\/image-63e213d41d1cb-1024x470.png 1024w, https:\/\/dailymedia.investagrams.com\/investadaily\/2023\/02\/image-63e213d41d1cb-300x138.png 300w, https:\/\/dailymedia.investagrams.com\/investadaily\/2023\/02\/image-63e213d41d1cb-768x353.png 768w, https:\/\/dailymedia.investagrams.com\/investadaily\/2023\/02\/image-63e213d41d1cb-1536x706.png 1536w, https:\/\/dailymedia.investagrams.com\/investadaily\/2023\/02\/image-63e213d41d1cb-610x280.png 610w, https:\/\/dailymedia.investagrams.com\/investadaily\/2023\/02\/image-63e213d41d1cb-640x294.png 640w, https:\/\/dailymedia.investagrams.com\/investadaily\/2023\/02\/image-63e213d41d1cb-400x184.png 400w, https:\/\/dailymedia.investagrams.com\/investadaily\/2023\/02\/image-63e213d41d1cb.png 1600w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>The strategy had a hit rate of 54% and an edge ratio of 1.80 over about 100 trades. It is important to take into account that trends play a substantial role in determining the success of each trade. That is why we also took into account if prices were above the EMA 100, which serves as an additional indicator to determine if the MACD signals were only portraying false positives. The majority of the significant gains were positions executed in above the EMA 100.\u00a0<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">INSIGHTS<\/h2>\n\n\n\n<p>Here are some key insights that can be taken from the test done:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>The trend is your best friend.<\/li><\/ol>\n\n\n\n<p>False positive divergences frequently occur when an asset&#8217;s price goes sideways in a consolidation. Being able to determine where the stock\u2019s trend is going would be essential in verifying the signals given by the MACD. Buy signals that are against the trend are most often retracements which leads to the risk of buying even if there is a chance that the price would continue to go lower.<\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"2\"><li>False moves are common, so it is better to confirm first&nbsp;<\/li><\/ol>\n\n\n\n<p>It is advisable to wait three or four days after a signal line crossing to ensure that it is not a fake move.<\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"3\"><li>Be sensitive to the momentum<\/li><\/ol>\n\n\n\n<p>Even in the absence of a clear reversal, a slowing in price momentum (sideways movement or stagnant trending movement) will lead MACD to pull away from its prior extremes and gravitate toward the zero lines. This could be used to warn traders of the shift in momentum and allows traders to reassess their positions according to their risk levels.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">LAST THOUGHTS<\/h2>\n\n\n\n<p>The MACD technical indicator is best used to identify changes in momentum and trend direction. This means that it is most efficient in spotting trend strength, assessing its momentum, and identifying changes in its trend.<br><br>This indicator should not be utilized in isolation but rather in combination with other technical and fundamental analysis techniques. Trading against the trend would give a lot of false signals, this is why excellent risk management must be observed when doing so.\u00a0<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>Got no time analyzing hundreds of stocks or cryptocurrencies in chart one at a time? We&#8217;ll make it easier for you with ProScreener!<\/p>\n\n\n\n<p>Access your FREE 14-Day Free Trial today.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"http:\/\/invs.st\/IVGWScreenerDaily\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"562\" src=\"https:\/\/dailymedia.investagrams.com\/investadaily\/2023\/02\/Vtrade-Mobile-3-1024x562.jpg\" alt=\"\" class=\"wp-image-6345\" srcset=\"https:\/\/dailymedia.investagrams.com\/investadaily\/2023\/02\/Vtrade-Mobile-3-1024x562.jpg 1024w, https:\/\/dailymedia.investagrams.com\/investadaily\/2023\/02\/Vtrade-Mobile-3-300x165.jpg 300w, https:\/\/dailymedia.investagrams.com\/investadaily\/2023\/02\/Vtrade-Mobile-3-768x422.jpg 768w, https:\/\/dailymedia.investagrams.com\/investadaily\/2023\/02\/Vtrade-Mobile-3-1536x843.jpg 1536w, https:\/\/dailymedia.investagrams.com\/investadaily\/2023\/02\/Vtrade-Mobile-3-2048x1124.jpg 2048w, https:\/\/dailymedia.investagrams.com\/investadaily\/2023\/02\/Vtrade-Mobile-3-610x335.jpg 610w, https:\/\/dailymedia.investagrams.com\/investadaily\/2023\/02\/Vtrade-Mobile-3-640x351.jpg 640w, https:\/\/dailymedia.investagrams.com\/investadaily\/2023\/02\/Vtrade-Mobile-3-400x220.jpg 400w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n<div style=\"margin-top: 0px; margin-bottom: 0px;\" class=\"sharethis-inline-reaction-buttons\" ><\/div><div style=\"margin-top: 30px; margin-bottom: 50px;\" class=\"sharethis-inline-share-buttons\" ><\/div><span class=\"et_bloom_bottom_trigger\"><\/span>","protected":false},"excerpt":{"rendered":"<p>MACD can help gauge whether a stock is overbought or oversold.\u00a0 Traders are alerted to the directional move&#8217;s strength and warning of a potential price reversal. But what is a MACD? How should it be used? When is it best utilized? Let\u2019s find out! WHAT IS THE MACD The moving average convergence divergence (also known [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":6347,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"cybocfi_hide_featured_image":"","footnotes":""},"categories":[34],"tags":[],"class_list":["post-6340","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-latest-posts"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.investagrams.com\/daily\/wp-json\/wp\/v2\/posts\/6340","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.investagrams.com\/daily\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.investagrams.com\/daily\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.investagrams.com\/daily\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.investagrams.com\/daily\/wp-json\/wp\/v2\/comments?post=6340"}],"version-history":[{"count":2,"href":"https:\/\/www.investagrams.com\/daily\/wp-json\/wp\/v2\/posts\/6340\/revisions"}],"predecessor-version":[{"id":6348,"href":"https:\/\/www.investagrams.com\/daily\/wp-json\/wp\/v2\/posts\/6340\/revisions\/6348"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.investagrams.com\/daily\/wp-json\/wp\/v2\/media\/6347"}],"wp:attachment":[{"href":"https:\/\/www.investagrams.com\/daily\/wp-json\/wp\/v2\/media?parent=6340"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.investagrams.com\/daily\/wp-json\/wp\/v2\/categories?post=6340"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.investagrams.com\/daily\/wp-json\/wp\/v2\/tags?post=6340"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}