Announcement

Collapse
No announcement yet.

Functions

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Functions

    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

  • #2
    xoprofittaker
    The example you posted does not provide any indication as to what the problem is.
    Please post a complete code example of what you are trying to do
    Alex

    Comment

    Working...
    X