Correcting wrong syntax from chatgpt

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #223897 quote
    aldahisab
    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

    #223899 quote
    Alain
    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.

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 Alain
2 years, 2 months ago.

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