The efs below does not work after editing (with Edit Studies) from false to true. Could there be a problem with the BOOLEAN FunctionParameter?
I use version 7.3 Build 588.
function preMain() {
var fp1 = new FunctionParameter("bInput", FunctionParameter.BOOLEAN);
fp1.setName("Choose");
fp1.setDefault(false);
}
function main(bInput) {
if(getCurrentBarIndex() == 0) {
if (bInput == false) {
debugPrintln("False");
} else if (bInput == true) {
debugPrintln("True");
}
}
return null;
}
I use version 7.3 Build 588.
function preMain() {
var fp1 = new FunctionParameter("bInput", FunctionParameter.BOOLEAN);
fp1.setName("Choose");
fp1.setDefault(false);
}
function main(bInput) {
if(getCurrentBarIndex() == 0) {
if (bInput == false) {
debugPrintln("False");
} else if (bInput == true) {
debugPrintln("True");
}
}
return null;
}
Comment