Dual Band BB

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #132360 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    @xFelipe

    I’m so sorry, but I mistakingly deleted your last post can you please re-post it?

    Thank you 🙂

    #132366 quote
    xFelipexFelipe
    Participant
    New

    Ciao Roberto! No problem.

    I am looking for to have a bb with 2 offset settings at the same indicator. Let me try to explain. I would like to have the bb upper and lower positioned in 2 difference values at the same time frame. let´s say: one value at a – position and the other value at the current price position. Would it be possible to create a rule showing offset “position view” -5 and another one saying offset “current position” +1? I know it sound strange but this would show me what i want to see.

    For reference, the overall settings can be something like this: Length: 0 to 30, Source: close, Stddev: 0 to 5, Offset “position view”: -5 to +5, Offset “current position”: -5 to +5.

    Please feel free to share your ideas. Thank you Roberto!

    #132525 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    I don’t know if this is exactly what you meant, if it isn’t please attach a screenshot of what you want:

    //BBp     = 20                                  //20   periods
    //BBdev1  = 1.0                                 //1.0  deviation
    //BBdev2  = 2.0                                 //2.0  deviation
    BBavg   = average[BBp,0](close)                 //BB mean (middle line)
    BollUp1 = BBavg + ((std[BBp](close)) * BBdev1)  //BB Upper Band 1
    BollDn1 = BBavg - ((std[BBp](close)) * BBdev1)  //BB Lower Band 1
    BollUp2 = BBavg + ((std[BBp](close)) * BBdev2)  //BB Upper Band 2
    BollDn2 = BBavg - ((std[BBp](close)) * BBdev2)  //BB Lower Band 2
    RETURN BollUp1 AS "UpperBand1",BollDn1 AS "LowerBand1",BollUp2 AS "UpperBand2",BollDn2 AS "LowerBand2"
    Dual-band-BB.itf x-13.jpg x-13.jpg
    #132531 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    I created a new topic, to keep it separate from the other one.
    I might change the title if you prefer a different one.

Viewing 4 posts - 1 through 4 (of 4 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

Dual Band BB


ProBuilder: Indicators & Custom Tools

New Reply
Author
Summary

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

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 05/20/2020
Status: Active
Attachments: 2 files
ProRealCode ProRealCode
Loading...