JozoParticipant
Junior
Hi All, could you advise me how I can get the horizontal SHIFT feature/ability on Bollinger Bands settings?
Thanks
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’.
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.