Squeeze Screener Code

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #232927 quote
    sgrech
    Participant
    Junior

    I have been searching the forums for some code without success which helps identifies assets where the Bollinger Bands are squeezing togther during the past (x) periods.  Is anyone able to help please.  Thanks in advance.

     

    Simon

    #232931 quote
    JS
    Participant
    Veteran

    Hi Simon,
    You can try the screener below…
    In this screener, the BBWidth is the “narrowest” over the last 120 (trading) days…
    (You can change the number of days)

    BBWidth=BollingerBandWidth[20](Close)
    C1=BBWidth<=Lowest[120](BBWidth) //120 trading days
    Screener[C1]
    #232934 quote
    sgrech
    Participant
    Junior

    Thank JS appreciate your reply.  On second thoughts what I think I am really looking for is a period (x) of time where the lower and upper bands are moving sideways.  Thanks.

    #232947 quote
    JS
    Participant
    Veteran

    Hi Simon,

    I don’t think Bollinger Bands are really suitable for that, Bollinger Bands is more of “inflating” and “deflating” than “sideways”…

    Maybe you can use a Dochian indicator instead of the BB…

    Might look something like this:

    xDiff=DonchianChannelUp[period]-DonchianChannelDown[period]

    C1=xDiff=Lowest[period](xDiff)

    When a Donchian Channel decreases/shrinks over time, then the probability of an outbreak is higher…?

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.

Squeeze Screener Code


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
sgrech @sgrech Participant
Summary

This topic contains 3 replies,
has 2 voices, and was last updated by JS
1 year, 9 months ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 05/22/2024
Status: Active
Attachments: No files
Logo Logo
Loading...