Announcement

Collapse
No announcement yet.

Problem with inv (t/v)

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

  • Problem with inv (t/v)

    Hello,
    I try something simple
    with efs2 ema formula
    If I use
    return (ema(10) , inv(5));
    its working find
    but if I replace inv(5) by inv(200t)
    I have this syntax error

    SyntaxError: missing ) after argument lists:
    return (ema(10) , inv(200t));
    ...................................^

    Could you help me ?
    Thank you

  • #2
    Jeanmark
    The correct syntax is return (ema(10, inv(5))); or return (ema(10, inv("200t")));
    In the second example you need to set the interval as a string (ie with quotes) because it contains a character that is not a number.
    Alex

    Comment


    • #3
      Thank you for your answer (I havn't syntax error),
      But If I test for example
      a sma (10) with a 240t chart
      the value of this sma is different
      with a sma (10) , inv ("240t") with a 80t chart
      thank you
      Attached Files

      Comment


      • #4
        I have sent a Wrong png
        This one is the good one (I hope)
        Attached Files

        Comment


        • #5
          Jeanmark
          The syntax is still incorrect regardless of whether you are getting an error or not.
          You must use sma(10,inv("240T")); instead of sma(10) , inv ("240t")
          Once you use the appropriate syntax you will see that the SMA will plot correctly as can be seen in the following image in which the same efs is plotted on a 240T and an 80T chart
          Alex


          Comment


          • #6
            Thank you...

            Comment

            Working...
            X