In my code, I have defined a function to assign a number to each bar as they occur.
In the main function I have these two instructions:
var nState=getBarState();
if(nState==BARSTATE_NEWBAR) BarIndx = efsInternal("IndxBars");
I also defined the function IndxBars:
function IndxBars(){
fBarIndx = fBarIndx + 1;
return fBarIndx;
}
Back in main I use this call to get the index number:
flag=BarIndx.getValue();
This code runs fine in ver10.6, but the "flag=BarIndx.getValue();" call fails in ver11. The code won't run and returns an error saying "Undefined function call"
How do I fix this?
Thanks,
Perry
In the main function I have these two instructions:
var nState=getBarState();
if(nState==BARSTATE_NEWBAR) BarIndx = efsInternal("IndxBars");
I also defined the function IndxBars:
function IndxBars(){
fBarIndx = fBarIndx + 1;
return fBarIndx;
}
Back in main I use this call to get the index number:
flag=BarIndx.getValue();
This code runs fine in ver10.6, but the "flag=BarIndx.getValue();" call fails in ver11. The code won't run and returns an error saying "Undefined function call"
How do I fix this?
Thanks,
Perry
Comment