I try to write some codes as follows:
function preMain() {
setPriceStudy(false);
setStudyTitle("LL");
setCursorLabelName("LL");
setDefaultBarFgColor(Color.blue);
setPlotType(PLOTTYPE_LINE);
}
var LL = 0;
function main(){
LL = (volume() + volume(-1)) / ((hhv(2,high()) - llv(2, low())) * 100);
}
return getSeries(LL);
}
However, when I add this on my chart, from cursor window, it shows "LL <none>".
Any suggestion is appreciated.
Thx in advance
function preMain() {
setPriceStudy(false);
setStudyTitle("LL");
setCursorLabelName("LL");
setDefaultBarFgColor(Color.blue);
setPlotType(PLOTTYPE_LINE);
}
var LL = 0;
function main(){
LL = (volume() + volume(-1)) / ((hhv(2,high()) - llv(2, low())) * 100);
}
return getSeries(LL);
}
However, when I add this on my chart, from cursor window, it shows "LL <none>".
Any suggestion is appreciated.
Thx in advance
Comment