I wish to plot the standard deviation of price with bollinger band of the standard deviation above and below the standard deviation line. I am very simply using two external efs studies in the simple script below.
What I am confused about is that the bollinger study returns three parameters. This formula works but how to I get all three of the bollinger parameters to draw seperate lines?
Mike Scott, Tarzana, CA
function preMain() {
setStudyTitle("BB of Std Deviation");
setCursorLabelName("StdDev", 0);
setCursorLabelName("BBofStd", 1);
setDefaultBarFgColor(Color.blue, 0);
setDefaultBarFgColor(Color.red, 1);
}
function main() {
var Std = efsExternal("/Downloads/StandardDeviation.efs");
var BBStd = efsExternal("/Bollinger/BollingerBands.efs");
return new Array (Std,BBStd);
}
What I am confused about is that the bollinger study returns three parameters. This formula works but how to I get all three of the bollinger parameters to draw seperate lines?
Mike Scott, Tarzana, CA
function preMain() {
setStudyTitle("BB of Std Deviation");
setCursorLabelName("StdDev", 0);
setCursorLabelName("BBofStd", 1);
setDefaultBarFgColor(Color.blue, 0);
setDefaultBarFgColor(Color.red, 1);
}
function main() {
var Std = efsExternal("/Downloads/StandardDeviation.efs");
var BBStd = efsExternal("/Bollinger/BollingerBands.efs");
return new Array (Std,BBStd);
}
Comment