MACD syntax error

  • This topic has 2 replies, 2 voices, and was last updated 9 hours ago by avatarCk.

Tagged: ,

Viewing 3 posts - 1 through 3 (of 3 total)
  • #246124
    Ck

    macdLine = MACD[12,26,9](close)
    signal = MACDSignal[12,26,9](close)

     

    Hello, the system insists that the first line is wrong! Just the first line, not the second! Somebody has an idea how to correct it??

    Thanks!!!

     

    Thanks

    #246126
    JS

    “macdLine” is a reserved keyword and cannot be used as the name of a variable…

    If you still want to use this word as a variable you can put, for example, the letter “x” in front of it…

    xMACDline=MACD[12,26,9](Close)

    1 user thanked author for this post.
    avatar Ck
    #246131
    Ck

    thanks !!!

    1 user thanked author for this post.
    avatar JS
Viewing 3 posts - 1 through 3 (of 3 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login