MACD syntax error

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #246124 quote
    CkCk
    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
    download.png download.png
    #246126 quote
    JSJS
    Participant
    Master

    “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
    CkCk
    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.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

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 CkCk
1 year, 5 months ago.

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