Bollinger Bands (John Bollinger 50/2.1 settings)

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #69604 quote
    Marcel van Vliet
    Participant
    Veteran

    Hi,

    I have tried to code the settings recomended by John Bollinger for the Bollinger bands around the 50 SMA with  the standard deviation of 2.1.

    The intention for the simple screener is to scan for stocks which are crossing, or trading above, the upper or lower band .

    Unfortunately the screener does not work. (circle on attachement)

    Does anybody have an idea how to fix this?

    //Bollinger Bands (John Bollinger 50/2.1  settings)
    //Marcel van Vliet
    //Date: 05/01/2018
    
    //Bollinger Bands
    BBUp = Average[50](close) + (2.1 * STD[50](close))
    BBDown = Average[50](close) - (2.1 * STD[50](close))
    
    //Raken BBbandUp
    C1= High crosses over BBUp or High > BBUp
    
    //Raken BBbandDown
    C2= low crosses under BBDown or low < BBDown
    
    SCREENER [ (C1) or (C2) ]
    

    Thank you ………..

    #69911 quote
    Marcel van Vliet
    Participant
    Veteran

    Please, @Nicolas, @Despair, @Juanj, @Lolo, @Somatolysis, @Bolsatrilera, will you take a look at my coding problem and respond to me?

    #69914 quote
    Nicolas
    Keymaster
    New

    Your code is working perfectly on my platform.

    Be sure to add the same settings on the Bollinger bands indicator attached on your price chart than the ones from the code.

    Marcel van Vliet thanked this post
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Bollinger Bands (John Bollinger 50/2.1 settings)


ProScreener support

New Reply
Author
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by Nicolas
7 years, 8 months ago.

Topic Details
Forum: ProScreener support
Language: English
Started: 05/01/2018
Status: Active
Attachments: 2 files
Logo Logo
Loading...