B% modified code with custom period and deviation multiplier

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #51937 quote
    PEDRAM.JOKARPEDRAM.JOKAR
    Participant
    Average
    Hi everyone!   as Bollinger B% codes provided in library, is there anybody to help how can i modify parameters like b%(50 , 3)?
    #51988 quote
    NicolasNicolas
    Keymaster
    Legend
    You can try with this code. You can modify yourself the period and the standard deviation multiplier the way you want:
    REM Calculation of Bollinger oscillator
    
    period = 50
    dev = 3
    
    dn = average[period]-std[period]*dev
    
    delta = CLOSE - dn
    width = dev * STD
    
    BBO = delta * 100 / width
    
    RETURN BBO AS"Bollinger Band Oscillator"
    bollinger-bandwidth-percent.png bollinger-bandwidth-percent.png
    #52147 quote
    PEDRAM.JOKARPEDRAM.JOKAR
    Participant
    Average
    this code indicates something different than the PRT B%. also i need to have the 80-20 lines as the original one. Please advise.
    #53071 quote
    PEDRAM.JOKARPEDRAM.JOKAR
    Participant
    Average
    is there anybody to help with PRT similar code code? what is the reason of difference?
    #53249 quote
    NicolasNicolas
    Keymaster
    Legend

    Because I don’t think that this is the same indicator. Will update it next week, please up the topic if I don’t.

    #99000 quote
    robertogozzirobertogozzi
    Moderator
    Legend
    This was the indicator PEDRAM.JOKAR was looking for: https://www.prorealcode.com/prorealtime-trading-strategies/bollinger-trend-strategy/. (it’s been a long time, though, he did not use the search box, since it already existed).
Viewing 6 posts - 1 through 6 (of 6 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

B% modified code with custom period and deviation multiplier


ProBuilder: Indicators & Custom Tools

New Reply
Author
Summary

This topic contains 5 replies,
has 3 voices, and was last updated by robertogozzirobertogozzi
7 years, 4 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 11/08/2017
Status: Active
Attachments: 1 files
ProRealCode ProRealCode
Loading...