{"id":41,"date":"2015-07-29T13:32:59","date_gmt":"2015-07-29T13:32:59","guid":{"rendered":"https:\/\/www.stockmonitor.com\/blog\/?p=41"},"modified":"2019-04-29T12:36:05","modified_gmt":"2019-04-29T12:36:05","slug":"setting-up-a-moving-average-crossover-stock-filter-and-create-an-alert","status":"publish","type":"post","link":"https:\/\/www.stockmonitor.com\/blog\/setting-up-a-moving-average-crossover-stock-filter-and-create-an-alert\/","title":{"rendered":"Setting Up A Moving Average Crossover Stock Filter And Create An Alert"},"content":{"rendered":"<p>Many traders use a moving average crossover to indicate a point of momentum change. Long term investors may set their moving average indicators in long settings such as a 20MA crossing a 50MA. Swing traders or day traders may use shorter settings, such as 8 and 16.<\/p>\n<p>Today I&#8217;d like to show you a really quick way to get set up in <a href=\"https:\/\/www.stockmonitor.com\">StockMonitor.com<\/a> with your own moving average stock filter, and how to <strong>get an alert EVERY time it detects a stock<\/strong>.<\/p>\n<p>You&#8217;ll also see in this example how to combine multiple indicators, or price levels, to create even better candidates for trading.<\/p>\n<p><b>[2019 EDIT] Please note. Our platform has been fully redesigned inside since this post was written. All features still remain, but the layout and navigation is now improved. <\/b><\/p>\n<h2>Your First Filter Criteria<\/h2>\n<p>As I mentioned above, in this example I want to combine some price action to give me even better candidates for analysis. I like to measure increasing volume. If price is moving up, and volume is increasing, then it looks like people are buying into the move, and it&#8217;s not merely manipulation.<\/p>\n<p>In place of volume, you may like to explore a break out of 10\/20 day highs, or use other indicators.<\/p>\n<p>So first name your <a href=\"https:\/\/www.stockmonitor.com\/features\/filters\/\">stock filter<\/a>, so you can come back and edit it later. Then select volume by clicking on the instrument window and selecting from the list. In the instrument settings window I selected volume[0] which is today&#8217;s volume level. I selected &#8220;greater than&#8221; and in the 2nd instrument window I use a range of volume. Volume[-3:-1] is the level of volume over the previous 3 bars, candles, days etc. See below.<\/p>\n<p><a href=\"https:\/\/www.stockmonitor.com\/blog\/wp-content\/uploads\/2015\/07\/filter-builder1.jpg\"><img src=\"https:\/\/www.stockmonitor.com\/blog\/wp-content\/uploads\/2015\/07\/filter-builder1-1024x414.jpg\" alt=\"filter builder image 1\" width=\"600\" class=\"alignleft\" \/><\/a><\/p>\n<div style=\"clear:both;\"><\/div>\n<p>Each setting you change will be reflected in the expression text. This let&#8217;s you read in a logical way if your filter is making sense.<\/p>\n<p>Click &#8220;Add Criteria&#8221; and move on to our moving average crossover settings.<\/p>\n<h2>Moving Average Crossover Criteria<\/h2>\n<p>To build a filter that detects a crossover is really simple. The logic is, if an indicator in the current bar, is greater than the indicator in the previous bar, then it has moved up\/crossed. So let us set that now. <\/p>\n<p>Here you see I have added the MA8 is less than MA16 one bar\/candle\/period back from current bar. You set this with -1 in the offset box.<\/p>\n<p><a href=\"https:\/\/www.stockmonitor.com\/blog\/wp-content\/uploads\/2015\/07\/filter-builder2.jpg\"><img src=\"https:\/\/www.stockmonitor.com\/blog\/wp-content\/uploads\/2015\/07\/filter-builder2-1024x466.jpg\" alt=\"stock filter builder image 2\" width=\"600\" class=\"alignleft size-large wp-image-53\" srcset=\"https:\/\/www.stockmonitor.com\/blog\/wp-content\/uploads\/2015\/07\/filter-builder2-1024x466.jpg 1024w, https:\/\/www.stockmonitor.com\/blog\/wp-content\/uploads\/2015\/07\/filter-builder2-300x137.jpg 300w, https:\/\/www.stockmonitor.com\/blog\/wp-content\/uploads\/2015\/07\/filter-builder2.jpg 1083w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<div style=\"clear:both;\"><\/div>\n<p>This detects that the moving average 8 was less than moving average 16 one period back from current bar.<\/p>\n<p>In the next criteria, set the moving average 8 to be greater than moving average 16 in current bar [0]. See example.<\/p>\n<p><a href=\"https:\/\/www.stockmonitor.com\/blog\/wp-content\/uploads\/2015\/07\/filter-builder3.jpg\"><img src=\"https:\/\/www.stockmonitor.com\/blog\/wp-content\/uploads\/2015\/07\/filter-builder3-1024x623.jpg\" alt=\"filter image 3\" width=\"600\" class=\"alignleft size-large wp-image-60\" srcset=\"https:\/\/www.stockmonitor.com\/blog\/wp-content\/uploads\/2015\/07\/filter-builder3-1024x623.jpg 1024w, https:\/\/www.stockmonitor.com\/blog\/wp-content\/uploads\/2015\/07\/filter-builder3-300x182.jpg 300w, https:\/\/www.stockmonitor.com\/blog\/wp-content\/uploads\/2015\/07\/filter-builder3.jpg 1084w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<div style=\"clear:both;\"><\/div>\n<p>And that&#8217;s it!<\/p>\n<p>On a technical analysis chart, this is what a 8 and 16 moving average crossover will look like.<\/p>\n<p><a href=\"https:\/\/www.stockmonitor.com\/blog\/wp-content\/uploads\/2015\/07\/moving-average-chart.jpg\"><img src=\"https:\/\/www.stockmonitor.com\/blog\/wp-content\/uploads\/2015\/07\/moving-average-chart.jpg\" alt=\"moving average chart\" width=\"600\" class=\"alignleft size-full wp-image-61\" srcset=\"https:\/\/www.stockmonitor.com\/blog\/wp-content\/uploads\/2015\/07\/moving-average-chart.jpg 971w, https:\/\/www.stockmonitor.com\/blog\/wp-content\/uploads\/2015\/07\/moving-average-chart-300x156.jpg 300w\" sizes=\"(max-width: 971px) 100vw, 971px\" \/><\/a><\/p>\n<div style=\"clear:both;\"><\/div>\n<p>You can now test your filter. Select an exchange, index or set of stocks from a watch list you created to run this filter on. In the table below you&#8217;ll see some current candidates for analysis.<\/p>\n<p><strong>Now, save your filter!<\/strong> This is important, or your settings will be lost.<\/p>\n<h2>Set An Alert For This Filter<\/h2>\n<p>This is the easiest part. Simply click on &#8220;Build&#8221; in the main menu and select &#8220;Alert&#8221; from the drop down menu.<\/p>\n<p>Give your alert a name, select from the list which filter to send alerts for, and click &#8220;Create&#8221;. That&#8217;s it. Now you will get emails every time a stock is detected by this filter. <strong>It&#8217;s useful to know<\/strong> that you can opt out of email alerts via the manage subscription link at the bottom of every email you receive.<\/p>\n<p><a href=\"https:\/\/www.stockmonitor.com\/blog\/wp-content\/uploads\/2015\/07\/stock-alert1.jpg\"><img src=\"https:\/\/www.stockmonitor.com\/blog\/wp-content\/uploads\/2015\/07\/stock-alert1.jpg\" alt=\"stock alert\" width=\"600\" class=\"alignleft size-full wp-image-62\" srcset=\"https:\/\/www.stockmonitor.com\/blog\/wp-content\/uploads\/2015\/07\/stock-alert1.jpg 978w, https:\/\/www.stockmonitor.com\/blog\/wp-content\/uploads\/2015\/07\/stock-alert1-300x140.jpg 300w\" sizes=\"(max-width: 978px) 100vw, 978px\" \/><\/a><\/p>\n<div style=\"clear:both;\"><\/div>\n<p>It&#8217;s really quick and simple to build a filter for anything that moves in the market. Go have a play around. You may be surprised at some of the new stocks you detect.<\/p>\n<div class=\"aio-button-left\"><a target=\"_blank\" href=\"https:\/\/www.members.stockmonitor.com\/auth\/register\/\" class=\"aio-blue\" title=\"Sign Up Free For StockMonitor.com\" rel=\"nofollow\">Sign Up Free For StockMonitor.com<\/a><\/div>\n<p>Update: Inside our filter, we have now added pre-set filters to <a href=\"https:\/\/www.stockmonitor.com\/blog\/using-the-golden-cross-stock-screener-to-find-stocks-to-buy\/\">create a Golden Cross screener<\/a>, and many other MA crossovers. You can edit each one easy to set it to your preferred moving average.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Many traders use a moving average crossover to indicate a point of momentum change. Long term investors may set their moving average indicators in long settings such as a 20MA crossing a 50MA. Swing traders or day traders may use shorter settings, such as 8 and 16. Today I&#8217;d like to show you a really [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":53,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.stockmonitor.com\/blog\/wp-json\/wp\/v2\/posts\/41"}],"collection":[{"href":"https:\/\/www.stockmonitor.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.stockmonitor.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.stockmonitor.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.stockmonitor.com\/blog\/wp-json\/wp\/v2\/comments?post=41"}],"version-history":[{"count":26,"href":"https:\/\/www.stockmonitor.com\/blog\/wp-json\/wp\/v2\/posts\/41\/revisions"}],"predecessor-version":[{"id":392,"href":"https:\/\/www.stockmonitor.com\/blog\/wp-json\/wp\/v2\/posts\/41\/revisions\/392"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.stockmonitor.com\/blog\/wp-json\/wp\/v2\/media\/53"}],"wp:attachment":[{"href":"https:\/\/www.stockmonitor.com\/blog\/wp-json\/wp\/v2\/media?parent=41"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.stockmonitor.com\/blog\/wp-json\/wp\/v2\/categories?post=41"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.stockmonitor.com\/blog\/wp-json\/wp\/v2\/tags?post=41"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}