Add this snippet to the bottom of whatever study, you want to add standard deviation bands to:
change your_indicator to whatever your indicator plot name is:
change your_indicator to whatever your indicator plot name is:
Ruby:
input data = your_indicator ;
input std = 1.0 ;
def sDev = StDev(data = your_indicator, 20);
plot Hdev1 = data+ std * sDev;
plot Ldev1 = data+ -std * sDev;
Last edited: