I can pass a parameter to a function within an efs fine.
However, I'm having a problem with the parameter to main().
I followed some examples but I guess I'm missing something.
I loaded the efs below and did "edit studies" on it but the parameter caclType doesn't show up in the parameter list.
Do I need something else?
Thank you in advance.
function main(calcType) {
var nState = getBarState();
var indcurr = getCurrentBarIndex();
f((nState == BARSTATE_NEWBAR) ||
(calcType = "now" && indcurr == 0))
{ ... }
}
However, I'm having a problem with the parameter to main().
I followed some examples but I guess I'm missing something.
I loaded the efs below and did "edit studies" on it but the parameter caclType doesn't show up in the parameter list.
Do I need something else?
Thank you in advance.
function main(calcType) {
var nState = getBarState();
var indcurr = getCurrentBarIndex();
f((nState == BARSTATE_NEWBAR) ||
(calcType = "now" && indcurr == 0))
{ ... }
}
Comment