Bollinger %B does anyone have the exact code as used by prorealtime

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #218234 quote
    grantmugrantmu
    Participant
    New

    Hi

    I am having a problem creating a Bollinger%b for an indicator i want to use. i have the formula as listed by prorealtime %b = (close – lower Band)/(upperband – lowerband).

    he problem i am having is that he built in indicator does exactly waht i need it to do but i dont want to use the “call” function. The default has a few things in it that are not part of the listed formula. it seems to have some form of Standard Deviation as well as a selection of diferant methods.

    Does anyone have the code that will replicate the prorealtime indicator exactly.

    included a pic of the kind of thin I am looking for

    SAF-1-minute.png SAF-1-minute.png
    #218238 quote
    MauroProMauroPro
    Participant
    Veteran

    If it can be useful to you, I use this that I have written.

    //Bollinger %B
    
    lengthBol = 20
    multiplier = 2
    avg = average [lengthBol] (close)
    stDev = std [lengthBol] (close)
    percBolH = avg + multiplier * stDev
    percBolL = avg - multiplier* stDev
    
    percB = (close - percBolL) / (percBolH-percBolL)*100
    overbought = 80
    oversold = 20
    
    RETURN percB as"%B", overbought, oversold
    Nicolas 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

Bollinger %B does anyone have the exact code as used by prorealtime


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
grantmu @grantmu Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by MauroProMauroPro
3 years, 1 month ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 07/27/2023
Status: Active
Attachments: 1 files
ProRealCode ProRealCode
Loading...