var bInit = false;
var xIBS = null;
function preMain() {
setPriceStudy(false);
setStudyTitle("IBS");
setPlotType(PLOTTYPE_SQUAREWAVE ,0);
}
function main( ) {
if(bInit==false){
xIBS = (close()-low()) /(high()-low());
bInit = true;
}
return xIBS.getValue(0);
}
// Code END
It Says
My EFS Studies\IBS.efs, line 32: Failed to call 'xIBS.getValue': function is not defined.
var xIBS = null;
function preMain() {
setPriceStudy(false);
setStudyTitle("IBS");
setPlotType(PLOTTYPE_SQUAREWAVE ,0);
}
function main( ) {
if(bInit==false){
xIBS = (close()-low()) /(high()-low());
bInit = true;
}
return xIBS.getValue(0);
}
// Code END
It Says
My EFS Studies\IBS.efs, line 32: Failed to call 'xIBS.getValue': function is not defined.
Comment