Correcting wrong syntax from chatgpt

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #223897 quote
    aldahisabaldahisab
    Participant
    New

    hello guys

    i hope all of you are ok

    I am not good on coding and just use Chatgpt4 to help me making codes, when I was trying to test one I have problem with one mistake that I could not fix it about Macd indicator

    the mistake on this line (MACDLine = MACD[12,26,9](close))

    anyone has experience to help me to fix that?

    thank you all

    1111.png 1111.png
    #223899 quote
    AlainAlain
    Participant
    Senior

    Hello,

    MACDLINE is a reserved word (indicator). It cannot be used as variable.

    You can change your code like this, for example :

    myMACD = MACD[12,26,9](close)
Viewing 2 posts - 1 through 2 (of 2 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

Correcting wrong syntax from chatgpt


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
aldahisab @aldahisab Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by AlainAlain
2 years, 10 months ago.

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