MACD syntax error

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #246124 quote
    Ck
    Participant
    New

    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 quote
    JS
    Participant
    Senior

    “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)

    Ck, robertogozzi and Iván González thanked this post
    #246131 quote
    Ck
    Participant
    New
    thanks !!!
    JS thanked this post
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

MACD syntax error


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
Ck @ck Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by Ck
9 months, 3 weeks ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 04/19/2025
Status: Active
Attachments: 1 files
Logo Logo
Loading...