I am trying to create a custom indicator. After my function preMain
I defined a custom function. Later in the program I get a reference error that my function has not been defined.
My code looks like this:
function myIndicator() {
if (myCriteria() > myOtherCriteria()) {
/ 3;
}
if (myCriteria() < myOtherCriteria()) {
* 3;
}
}
Has not this clearly defined the function, "myIncicator"?? Then why do I get errors when I try to write the following function main???
function main(myIndicator) {
return myIndicator.getValue(myIndicatorStudy.myIndicator) ;
}
Any help??
Thanks
I defined a custom function. Later in the program I get a reference error that my function has not been defined.
My code looks like this:
function myIndicator() {
if (myCriteria() > myOtherCriteria()) {
/ 3;
}
if (myCriteria() < myOtherCriteria()) {
* 3;
}
}
Has not this clearly defined the function, "myIncicator"?? Then why do I get errors when I try to write the following function main???
function main(myIndicator) {
return myIndicator.getValue(myIndicatorStudy.myIndicator) ;
}
Any help??
Thanks
Comment