Stage Analysis Forum - Trading & Investing using Stan Weinstein's Stocks Breakout method
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)

Pages: 1 2 3 4 5 6 7


New 50 Day high and rising MA - Stockcharts - isatrader - 2021-09-04

Code:
[type is stock]
and [country = US]
and [Daily Close > Yesterdays Daily Close]
and [Daily SMA(10,Daily Close) > Yesterdays Daily SMA(10,Daily Close)]
and [volume > sma(50, volume) * 1.4]
and [close > yesterdays daily max(50,high)]
and [Close > 5]
and [Volume > 500000]
and [exchange != PINK]
and [group is not ETF]



ATR % Big Movers 1 Day US - Stockcharts - isatrader - 2021-09-04

Code:
[type = stock]
and [country is US]
and [close - 1 day ago close / ATR(200) > 3]
and [Daily SMA(200,Daily Volume) > 400000]
and [SMA(150) > yesterdays SMA(150)]
and [SMA(200) > yesterdays SMA(200)]
and [SMA(150) > SMA(200)]
and [group is not ETF]
and [Close > SMA(50)]
and [Close > SMA(150)]
and [Close > SMA(200)]
and [Close > 5]



Cross Above The 30 Week MA (S&P 500) - Stockcharts - isatrader - 2021-09-04

Code:
[type = stock] AND [country = US]
and [Weekly Close > Weekly SMA(30,Weekly Close)]
and [1 week ago Close < 1 week ago SMA(30,Weekly Close)]
and [group is SP500]



Total Stocks Above Their 30 Week MA (S&P 500) - Stockcharts - isatrader - 2021-09-04

This code gives you all of the stocks above their 30 week MA in the S&P 500. So can be useful for quick market breadth calculations.

Code:
[type = stock]
and [country = US]
and [Weekly Close > Weekly SMA(30,Weekly Close)]
and [group is SP500]

It's easy to modify if you want to look at another group or index. For example if you want to see the amount of stocks above their 30 week MA in the Nasdaq 100, just change the and [group is SP500] line to:

Code:
and [group is NASDAQ100]



Significant Bar - isatrader - 2021-09-29

This code looks for what I call Significant Bars on the daily chart, which are bars with a big price spread / range and volume at least 50% above average that are making new near term highs and in an uptrend.

The best use of the scan imo, is not on the actual day of the bar, but looking back over the previous days, as most often after the Significant Bar the stock will consolidate for a few days or more, and sometimes even form a short term trading range. So looking back over the prior days can help find stocks in more actionable positions depending on how they've acted around the Significant Bar and haven't fallen below it.

Code:
[type = stock]
and [country is US]
and [close - 1 day ago close / 1 day ago ATR(50) > 1.5]
and [volume > sma(50, volume) * 1.5]
and [Daily SMA(200,Daily Volume) > 400000]
and [close > Upper Price Chan(20)]
and [SMA(150) > yesterdays SMA(150)]
and [SMA(200) > yesterdays SMA(200)]
and [SMA(150) > SMA(200)]
and [group is not ETF]
and [Close > SMA(50)]
and [Close > SMA(150)]
and [Close > SMA(200)]
and [Close > 5]

You can filter it further by only looking at certain groups. For example if you only want to look at Tech or Internet stocks or Cyclicals you would add the following:

Code:
and [[group is TechnologySector] or [group is Internet] or [group is CyclicalsSector]]



RE: Volume Daily 2x Minimum - US Stocks 2020 - Stockcharts - ElToroLoco - 2021-11-05

(2021-09-04, 03:28 PM)isatrader Wrote:
Code:
[type is stock]
and [country = US]
and [Daily Close > Yesterdays Daily Close]
and [Daily SMA(10,Daily Close) > Yesterdays Daily SMA(10,Daily Close)]
and [volume > sma(200, volume) * 2]
and [exchange != PINK]
and [Daily SMA(200,Daily Volume) > 400000]
and [group is not ETF]
and [Close > 5]

Hey Do we have to change the Daily Volume for 2021 and other years? If I understand right, we have to change the 400,000 number? Can you share where to get this number from? Thank you!


RE: Volume Daily 2x Minimum - US Stocks 2020 - Stockcharts - isatrader - 2021-11-05

(2021-11-05, 07:42 AM)ElToroLoco Wrote: Hey Do we have to change the Daily Volume for 2021 and other years? If I understand right, we have to change the 400,000 number? Can you share where to get this number from? Thank you!

The 400,000 number is just a generic volume amount, to weed out the smaller illiquid stocks from the scans. You can use whatever figure you prefer for this either up or down.


RE: Custom Scans - jv_investments - 2022-01-31

Hi, how do we write the scan you did in stock charts for %change since Jan24 swing low?

Thanks!