Announcement

Collapse
No announcement yet.

Is syntax correct here?

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

  • Is syntax correct here?

    Hi,

    I believe this should work but it doesn't:

    PHP Code:
    var vSymbol "IBM,3";
    var 
    sPriceSource "Close";
    var 
    nLength 20;
    var 
    aSource getValue(sPriceSource0, -nLengthsym(vSymbol)); 
    This code works but I need the sym() feature:

    PHP Code:
    var sPriceSource "Close";
    var 
    nLength 20;
    var 
    aSource getValue(sPriceSource0, -nLength); 
    Thanks in advance.

    Wayne
    Last edited by waynecd; 08-19-2009, 12:00 PM.

  • #2
    Re: Is syntax correct here?

    waynecd
    The syntax is not correct and should be
    var aSource = getValue(sPriceSource, 0, -nLength, vSymbol);
    See4 this article in the EFS KnowledgeBase for the complete syntax
    Alex


    Originally posted by waynecd
    Hi,

    I believe this should work but it doesn't:

    PHP Code:
    var vSymbol "IBM,3";
    var 
    sPriceSource "Close";
    var 
    nLength 20;
    var 
    aSource getValue(sPriceSource0, -nLengthsym(vSymbol)); 
    This code works but I need the sym() feature:

    PHP Code:
        var sPriceSource "Close";
      var 
    nLength 20;
      var 
    aSource getValue(sPriceSource0, -nLength); 
    Thanks in advance.

    Wayne

    Comment


    • #3
      Alex,

      It works,

      I originally misread it thinking the "IBM,5" implied using the sym() function.

      Thanks

      Wayne

      Comment


      • #4
        Wayne
        You are welcome
        Alex


        Originally posted by waynecd
        Alex,

        It works,

        I originally misread it thinking the "IBM,5" implied using the sym() function.

        Thanks

        Wayne

        Comment

        Working...
        X