Correcting wrong syntax from chatgpt

Forums ProRealTime English forum ProBuilder support Correcting wrong syntax from chatgpt

Viewing 2 posts - 1 through 2 (of 2 total)
  • #223897

    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

    Hello,

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

    You can change your code like this, for example :

Viewing 2 posts - 1 through 2 (of 2 total)

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