I've have an EFS, say Bobby.efs that I acquired on the net but it is locked. It is an oscillator in which I compare the current value (bob) and the (-1) value (bob1) as in previous efs discussions here.
I've updated it per our recent discussions to make bob1 global and I've included the null checks. But as the series is created within Bobby.efs (i.e. it is not an eSignal series), I can't define a global series variable or null-check it. Assuming the Bobby.efs calcs are of equivalent complexity to a stochastic calc, will this efs be more likely to be a resource hog because I can't define its series globally? Or does the efsExternal() command define the series equally as well?
Thanks
shaeffer
I've updated it per our recent discussions to make bob1 global and I've included the null checks. But as the series is created within Bobby.efs (i.e. it is not an eSignal series), I can't define a global series variable or null-check it. Assuming the Bobby.efs calcs are of equivalent complexity to a stochastic calc, will this efs be more likely to be a resource hog because I can't define its series globally? Or does the efsExternal() command define the series equally as well?
Thanks
shaeffer
PHP Code:
var bob1 = null;
function main() {
var bob = efsExternal( "/My Formulas/Bobby.efs" );
if (getBarState() == BARSTATE_NEWBAR) {
bob1 = bob.getValue(-1);
}
if (bob == null || bob1 == null) return;
..........
--------
return bob;
}
Comment