New Members: Be sure to confirm your email address by clicking on the link that was sent to your email inbox. You will not be able to post messages until you click that link.

Scan Contribution: price crosses above Middle Bollinger Band

// Scan for use with StockCharts.com
// Run this scan daily after market closes
[type = stock] and [country = us]
//
// Volume: minimum shares traded per day
and [sma(20,volume) > 1000000]
//
// Minimum price movement per day, dollars
and [ATR(14) > 1.0]
//
// Price range, dollars
and [10 <= close] and [close <= 200]
//
// Buy Signal: price crosses above Middle Bollinger Band
and [sma(1,close) x sma(20,close)]
//
// %B: 0: Lower Bollinger Band
// %B: 0.5: Middle Bollinger Band
// %B: 1: Upper Bollinger Band
// Uncomment below to select a %B range for Buy Signal
// Hint: first run scan without %B to get total results
// and [0.5 <= %B(20,2)] and [%B(20,2) < 0.6]
// and [0.6 <= %B(20,2)] and [%B(20,2) < 0.7]
// and [0.7 <= %B(20,2)] and [%B(20,2) < 0.8]
// and [0.8 <= %B(20,2)] and [%B(20,2) < 0.9]
// and [0.9 <= %B(20,2)] and [%B(20,2) < 1.0]
// and [1.0 <= %B(20,2)]
//
// Sell Signal: price crosses under Middle Bollinger Band
//
// Results can be analyzed using candlestick or other charts,
// preferably with Bollinger Bands selected
//
// Special thanks to: Jeremy du Plessis, "21st Century
// Point and Figure", p. 51; and: John Bollinger,
// "Bollinger on Bollinger Bands", p. 60-61.

Comments

  • markdmarkd mod
    edited October 2021
    Nice scan. Thanks for sharing it!

    So what does it tell you whether %B hits .6 vs. .7 vs. .8, etc. ?
  • I find that the results are mostly near the Middle Bollinger Band with the rest scattered towards the Upper Bollinger Band or beyond.
  • lmkwinlmkwin ✭✭
    edited October 2021
    You might just want to add a Rank By as the last line for the %B. This would show all the stocks or whatever you are scanning for, to be listed in %B order.

    Rank by [%B(20,2)]

    will display your securities that pass the earlier criteria in Descending %B order and it will display the %B value in the results. So the 1's are at the top and the 0.1's are at the bottom.

    You can reverse the default display order by using Rank by [%B(20,2)] ascending
    and your results will be listed from low to high %B.

    Rank By is a great way to add additional data to the output.


    Jeremy du Plessis uses PnF chart moving averages. PnF chart moving averages are different than SharpChart moving averages. On StockCharts.com you can't scan using PnF chart moving averages. I find them extremely valuable for analysis on the PnF chart. Particularly the 1, 7, 9. I like KAMA's on the SharpChart.
  • Jeremy du Plessis was my inspiration even though the P&F style is not exactly the same. I will experiment with Rank By and likely post an update.
  • // Scan for use with StockCharts.com
    // Run this scan daily after market closes
    [type = stock] and [country = us]
    //
    // Volume: minimum shares traded per day
    and [sma(20,volume) > 1000000]
    //
    // Minimum price movement per day, dollars
    and [ATR(14) > 1.0]
    //
    // Price range, dollars
    and [10 <= close] and [close <= 200]
    //
    // Buy Signal: price crosses above Middle Bollinger Band
    and [sma(1,close) x sma(20,close)]
    //
    // Rank results by %B (see below)
    RANK BY [%B(20,2)]
    //
    // %B: 0: Lower Bollinger Band
    // %B: 0.5: Middle Bollinger Band
    // %B: 1: Upper Bollinger Band
    //
    // Sell Signal: price crosses below Middle Bollinger Band
    //
    // Results can be analyzed using candlestick or other charts,
    // preferably with Bollinger Bands selected
    //
    // Special thanks to: Jeremy du Plessis, "21st Century
    // Point and Figure", p. 51; and: John Bollinger,
    // "Bollinger on Bollinger Bands", p. 60-61.
    //
    // DISCLAIMER: This scan does not constitute investment advice.
  • Hint: Click on the SCTR column header to rank the results by SCTR!
  • Changed Rank By to SCTR:


    // Scan for use with StockCharts.com
    // Run this scan daily after market closes
    [type = stock] and [country = us]
    //
    // Volume: minimum shares traded per day
    and [sma(20,volume) > 1000000]
    //
    // Minimum price movement per day, dollars
    and [ATR(14) > 1.0]
    //
    // Price range, dollars
    and [10 <= close] and [close <= 200]
    //
    // Buy Signal: price crosses above Middle Bollinger Band
    and [sma(1,close) x sma(20,close)]
    //
    // Rank results by StockCharts Technical Rank (SCTR)
    rank by [SCTR]
    //
    // Sell Signal: price crosses below Middle Bollinger Band
    //
    // Results can be analyzed using candlestick or other charts,
    // preferably with Bollinger Bands selected
    //
    // Special thanks to: Jeremy du Plessis, "21st Century
    // Point and Figure", p. 51; and: John Bollinger,
    // "Bollinger on Bollinger Bands", p. 60-61.
    //
    // DISCLAIMER: This scan does not constitute investment advice.
  • Scan with updates to comments near bottom:

    // Scan for use with StockCharts.com
    // Run this scan daily after market closes
    [type = stock] and [country = us]
    //
    // Volume: minimum shares traded per day
    and [sma(20,volume) > 1000000]
    //
    // Minimum price movement per day, dollars
    and [ATR(14) > 1.0]
    //
    // Price range, dollars
    and [10 <= close] and [close <= 200]
    //
    // Buy Signal: price crosses above Middle Bollinger Band
    and [sma(1,close) x sma(20,close)]
    //
    // Rank results by StockCharts Technical Rank (SCTR)
    rank by [SCTR]
    //
    // Sell Signal: price crosses below Middle Bollinger Band
    //
    // Results can be analyzed using candlestick or other charts,
    // preferably with Bollinger Bands selected. Note also the SCTR.
    //
    // Special thanks to: Jeremy du Plessis, "21st Century
    // Point and Figure", p. 51; John Bollinger,
    // "Bollinger on Bollinger Bands", p. xix; and:
    // https://stockcharts.com/ > ChartSchool >
    // Technical Indicators and Overlays >
    // Technical Overlays: Bollinger Bands
    // Technical Indicators: StockCharts Technical Rank (SCTR)
    //
    // DISCLAIMER: This scan does not constitute investment advice.
  • Updates to provide many more results with
    only high SCTR values; several smaller updates.

    // Scan for use with StockCharts.com
    // Feel free to customize and share this scan virally
    // Run this scan daily after market closes
    //
    [type = stock] and [country = us]
    //
    // Minimum StockCharts Technical Rank (SCTR)
    and [80 <= SCTR]
    //
    // Volume: minimum average shares traded per day
    and [50000 < sma(20,volume)]
    //
    // Minimum price movement per day, dollars
    and [1 < ATR(14)]
    //
    // Price range, dollars
    and [10 <= close] and [close <= 200]
    //
    // Buy Signal: price crosses above Middle Bollinger Band
    and [sma(1,close) x sma(20,close)]
    //
    // Rank results by StockCharts Technical Rank (SCTR)
    rank by [SCTR]
    //
    // Sell Signal: price crosses below Middle Bollinger Band
    //
    // Results can be analyzed using candlestick or other charts,
    // preferably with Bollinger Bands selected. Note also the SCTR.
    //
    // Special thanks to: Jeremy du Plessis, "21st Century
    // Point and Figure", p. 51; John Bollinger,
    // "Bollinger on Bollinger Bands", p. xix; and:
    // https://stockcharts.com/ > ChartSchool >
    // Table of Contents: Technical Indicators & Overlays >
    // Technical Overlays: Bollinger Bands
    // Technical Indicators: StockCharts Technical Rank (SCTR)
    //
    // DISCLAIMER: This scan does not constitute investment advice.
Sign In or Register to comment.