Announcement

Collapse
No announcement yet.

Syntax Error? hhv()

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

  • Syntax Error? hhv()

    I put the following code in my formula:

    //{{EFSWizard_Return
    var myVar;

    myVar = hhv( 50, high() );
    return myVar;
    //return hhv(160, high());
    //}}EFSWizard_Return 4578


    and I get the following message from syntax check:

    , line 49: ReferenceError: hhv is not defined

    Although it clearly is in EFS2.

    Do I need to pre-declare EFS2 functions?

    --from knowledge base--

    hhv()
    Previous Top Next


    hhv( numBars, series )

    New in EFS2. This function will return the highest value found in a series within numBars number of bars.

    Parameters

    numBars
    the number of bars back to search

    series
    the series in which to search for the value



    Usage

    function main() {
    var myVar1;

    //find the highest-high over the last 50 bars
    myVar1 = hhv( 50, high() );

    }

    highest()

  • #2
    kztd
    As far as I can see the function hhv() as you wrote it is working properly (see enclosed image)
    You may want to post the script that is returning the syntax error
    Alex

    Comment


    • #3
      solved

      I upgraded my Esignal version and the problem went away.

      Comment

      Working...
      X