Announcement

Collapse
No announcement yet.

Silly Mistake Probably

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

  • Silly Mistake Probably

    Hello,

    Could somebody please tell me what stupid mistake I have made with the attached. It won't return a value for f or s, and in fact just gets stuck there.

    Thanks in anticipation.
    Attached Files

  • #2
    rogerha
    The FunctionParameter "MA" returns a string so in lines 46 and 47 you are actually writing
    "sma"(Slow,inv(Interval))
    "sma"(Fast,inv(Interval))

    You need to use the eval() function to evaluate that string in other words to read it as if it were not enclosed in "" quotes (see the link for more information on eval()).
    eval(MA)(Fast,inv(Interval))
    Also you have a syntax error in line 49 where array should be Array
    Alex

    Comment


    • #3
      Hi Alex, I read the article and understand fully. Never came across the 'eval()' command before.

      Many Thanks.

      Comment


      • #4
        rogerha
        You are most welcome.
        Alex

        Comment

        Working...
        X