Also, I am puzzled by the following code that returns an error message saying "The Symbol Limit(7) for a formula has been exceeded.'
function main() {
var x = null;
x= efsExternal("calc_x.efs", smybol, sInterval);
return x;
}
in calc_x.efs:
var xma = null;
var bInit = false;
function main(vSym, vInterval) {
if (vSym == null) vSym = getSymbol();
if (vInterval == null) vInterval = 15;
if (bInit == false) {
xma = ema(20, sym(vSym+","+vInterval);
}
return xma.getValue(0);
}
function main() {
var x = null;
x= efsExternal("calc_x.efs", smybol, sInterval);
return x;
}
in calc_x.efs:
var xma = null;
var bInit = false;
function main(vSym, vInterval) {
if (vSym == null) vSym = getSymbol();
if (vInterval == null) vInterval = 15;
if (bInit == false) {
xma = ema(20, sym(vSym+","+vInterval);
}
return xma.getValue(0);
}
Comment