Code for Stock Scanners - Printable Version +- Stage Analysis Forum - Trading & Investing using Stan Weinstein's Stocks Breakout method (https://www.stageanalysis.net/forum) +-- Forum: Main Board (https://www.stageanalysis.net/forum/Forum-Main-Board) +--- Forum: Stan Weinstein's Stage Analysis - Stock Charts, Technical Analysis, Learn to Trade, Stocks, ETF, NYSE, Nasdaq (https://www.stageanalysis.net/forum/Forum-Stan-Weinstein-s-Stage-Analysis-Stock-Charts-Technical-Analysis-Learn-to-Trade-Stocks-ETF-NYSE-Nasdaq) +--- Thread: Code for Stock Scanners (/Thread-Code-for-Stock-Scanners) |
Code for Stock Scanners - isatrader - 2014-04-21 This thread was requested by one of our members for a place to talk about and share code for the different stock screeners you use to find suitable Weinstein method candidates. LINKS: Prorealtime's Proscreener: Daily scans: 2x Volume scan: https://www.stageanalysis.net/forum/Thread-Code-for-Stock-Scanners?pid=4074#pid4074 Weekly Scans Ichimoku scan: https://www.stageanalysis.net/forum/Thread-Code-for-Stock-Scanners?pid=4075#pid4075 Touch of 10 Week MA Scan: https://www.stageanalysis.net/forum/Thread-Code-for-Stock-Scanners?pid=4076#pid4076 Strong Technical Attributes Scan: https://www.stageanalysis.net/forum/Thread-Code-for-Stock-Scanners?pid=4077#pid4077 I hope these help you and please post any of your own scans that you use and remember to include the name of the scanning software. Cheers 2x Volume Scan - isatrader - 2014-04-21 Here's a daily screen that I run in prorealtime's free screener that finds stocks with daily volume greater than two times the 200 day average; a price that's higher than the previous days; a 10 day moving average that's higher than the previous days 10 day moving average, and finally it is ranked in order of the highest percentage move compared to it's 200 day Average True Range (ATR). Below is the code: Code: indicator1 = Volume Ichimoku scan - isatrader - 2014-04-21 A weekly method that's very good at finding the early Stage 2A breakouts is to look for a cross above the weekly Ichimoku Cloud. The scan picks up a cross above the bottom or top part of the cloud, and so it gets a lot of undesirable stocks. But it does a find the odd gem. Here's the code for Prorealtime's ProScreener: Code: ignored, ignored, ignored, indicator1 = CALL Ichimoku[9, 26, 26, 52] To make the code work you need to first import the attached Ichimoku.itf file which I've placed in a zip file. So unzip it and then import it as an indicator. And then the screener code above should work. The Ichimoku screener is run on a weekly range, as you want to target the weekly cloud and not the daily cloud which is different. Touch of 10 Week MA Scan - isatrader - 2014-04-21 Another weekly screen you might find useful is a touch and then close above the 10 week MA, with a rising 30 week MA. As this mostly gives you pullbacks within Stage 2 to manually look through for the best candidates. Here's the code for prorealtime's proscreener: Code: indicator1 = Average[10](close) Strong Technical Attributes Scan - isatrader - 2014-04-22 The following weekly scan looks for stocks with strong technical attributes. You will need to load up the attached custom indicators I've created for the CumulativeForceIndex.itf and Cumulative ForceIndex Rising.itf, which I've placed in zip files. So they need to be unzipped and uploaded into prorealtime in order for the scan to function. Below is the code for the Strong Technical Attributes Scan: Code: indicator1 = CALL "Cumulative ForceIndex Rising" RE: Code for Stock Scanners - isatrader - 2014-04-22 Here's the simple scans in prorealtime's procreener to find stocks that are above their 50, 150 and 200 day moving averages. Price Above 50 Day MA Code: Condition1 = Close > Average[50](close) Price Above 150 Day MA Code: Condition1 = Close > Average[150](close) Price Above 200 Day MA Code: Condition1 = Close > Average[200](close) RE: Code for Stock Scanners - Tryst - 2014-05-29 (2014-04-21, 11:58 PM)isatrader Wrote: Touch of 10 Week MA Scan Great trader entry point/add to trade screener this one. The amount of times I've seen the 50 day MA touched on stocks where the path of least resistance is higher. Ok, here my attempt at an early stage 2 break out screener. It is the initial version of it and I already know it needs some work on. I would like to include conditions that take into account the slope of some MAs and also maybe the check against Ichimoku, as Isatrader has put in another post. I may even remove the RSI condition. Hopefully ProRealTime will include the Mansfield RS indicator in its proscreener in the near future. Code: c1a = RSI[150](Close[0]) Any comments welcome. Buyable Gap Breakout - isatrader - 2014-07-31 This scan is for stockcharts.com custom scanner and searches for US stocks that met the criteria for a potential buyable gap breakout. Here's the code: Code: [type is stock] AND [country = US] and [Daily SMA(50,Daily Close) > Yesterday's Daily SMA(50,Daily Close)] AND [Daily SMA(150,Daily Close) > Yesterday's Daily SMA(150,Daily Close)] and [volume > sma(200, volume) * 1.5] and [market cap > 50] and [exchange != OTCBB] and [exchange != OTCMKT] and [today's low > yesterday's high * 1.026] and [close - 1 day ago close / ATR(200) > 3] and [today's low > yesterday's daily max(253,high)] |