I wanted to use the FunctionParameter to change symbols. I tried it and somehow did not get the results I expected. Any help would be appreciated.
PHP Code:
function preMain() {
var fp = new FunctionParameter("nSymb", FuntionParameter.STRING);
fp.setName("symbol");
fp.addOption("ES Z7=2");
.....
var bInit = false;
function Main (nSymb){
if (bInit == false){
dHigh = high(sym("nSymb,D"));
bInit = true;
}
varHi = dHigh.getValue(0);
varHi2 =dHigh.getValue(-1);
.....
return varHi varHi2 ...;
Comment