Walking the bands – Bollinger screener

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #168004 quote
    RubberToeRubberToe
    Participant
    Average

    John Bollinger mentions in his book that candles closing outside the BBs are not a sign of reversal, but a sign of continuation – until such time as a tag of the band is correlated with another indicator or candle reversal pattern.

    I wanted to incorporate  ‘walking the bands’  into a reversal trigger on minute charts, by using a scenario where 4 out of 5 recent candles have highs outside the band, followed by a close inside the bands.

    The BB values need to be adjustable instead of 20/2.0, as JB himself states that short term traders look at values down to 15/1.5.  Myself I use 16/1.8.

    Below was my start, but I think it needs some expertise to make it work

    walkend = close < BollingerUp[16](close)
    high1 = high[1] >BollingerUp[16](1)
    high2 = high[2] >BollingerUp[16](2)
    high3 = high[3] >BollingerUp[16](3)
    high4 = high[4] >BollingerUp[16](4)
    high5 = high[5] >BollingerUp[16](5)
    if ((high1 + high2 + high3 + high4 + high5) >= 4) and walkend then
    w=1
    else
    w=0
    endif
    
    screener w
    Screenshot-2021-04-25-142005.jpg Screenshot-2021-04-25-142005.jpg
    #168151 quote
    JC_BywanJC_Bywan
    Moderator
    Master

    Hi, you forgot[] around w in last screener line, and used () where [] are needed for past 5 candles, high1 = high[1] >BollingerUp[16](1) should be:

    high1 = high[1] >BollingerUp[16](close)[1]

    You could also simply your sums with “summation”:

    walkend = close < BollingerUp[16](close)
    condition = summation[5](high[1]>BollingerUp[16](close)[1])>=4
    w = condition and walkend
    screener[w]
    RubberToe thanked this post
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

Walking the bands – Bollinger screener


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
RubberToe @rubbertoe Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by JC_BywanJC_Bywan
5 years, 4 months ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 04/25/2021
Status: Active
Attachments: 1 files
ProRealCode ProRealCode
Loading...