Bollinger Bands – Shift feature

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

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

    Thanks

    #89608 quote
    Vonasi
    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
    Jozo
    Participant
    Junior

    Thank you very much.

    #89611 quote
    Vonasi
    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.

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 Vonasi
7 years ago.

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