Bollinger Bands – Shift feature

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #89570 quote
    JozoJozo
    Participant
    Junior

    Hi All, could you advise me how I can get the horizontal SHIFT feature/ability on Bollinger Bands settings?

    Thanks

    #89608 quote
    VonasiVonasi
    Moderator
    Master
    Period = 20
    Shift = 1
    
    upper = bollingerup[Period](close[shift])
    lower = bollingerdown[Period](close[shift])
    middle = average[Period](close[shift])
    return upper as "Upper Bollinger", lower as "Lower Bollinger" , middle style(dottedline, 1) as "Middle Bollinger"
    

    You can shift it right by increasing the value of ‘Shift’.

    Jozo and Nicolas thanked this post
    #89610 quote
    JozoJozo
    Participant
    Junior

    Thank you very much.

    #89611 quote
    VonasiVonasi
    Moderator
    Master

    Sorry – I just noticed that the mid line wasn’t shifted in the code I provided so I have edited it in the original post.

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

Bollinger Bands – Shift feature


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
Jozo @jozo Participant
Summary

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

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 01/24/2019
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...