I'm having a brain drain today and for some reason can't figure out how get this efs to work with the current interval . This is the code
function preMAin() {
setStudyTitle("Range Vol ");
setDefaultBarFgColor(Color.yellow, 0);
setPlotType(PLOTTYPE_LINE, 0);
}
function main () {
var vH = high();
var vL = low();
var Interval = getInterval();
var vRangeVol = 0;
vRangeVol = (vH-vL)/Interval;
return vRangeVol;
}
I thought getInterval would do it but it doesn't, I know this because when I change var Interval to be 200 (since I'm using it on 200T setting) it works . Thanks.
function preMAin() {
setStudyTitle("Range Vol ");
setDefaultBarFgColor(Color.yellow, 0);
setPlotType(PLOTTYPE_LINE, 0);
}
function main () {
var vH = high();
var vL = low();
var Interval = getInterval();
var vRangeVol = 0;
vRangeVol = (vH-vL)/Interval;
return vRangeVol;
}
I thought getInterval would do it but it doesn't, I know this because when I change var Interval to be 200 (since I'm using it on 200T setting) it works . Thanks.
Comment