Graph fontion not working

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #212268 quote
    ZeroCafeine
    Participant
    Senior

    hi,

    I don’t know why this fontion (same code) work for me only in Demo account ? :

     

    myMACD = MACD[12,26,9](close)
    long = myMACD crosses over 0
     
    if(MACD>0) THEN 
       signals = 1
    ELSE
       signals = -1
    ENDIF
     
    IF long THEN
       BUY 1 LOT AT close+10 LIMIT
    ENDIF
     
    SET STOP %TRAILING 0.5
     
    GRAPH signals coloured(255,0,0) AS "MACD signals" 

    there is below a screen shot of my real account with an error

    #212270 quote
    Nicolas
    Keymaster
    Master

    It's not GRAPH that is the problem, the code is correct. I'm thinking of a copy/paste that introduced an invisible character and bugged the interpreter. Try with a new code and retype everything by hand to see 🙂

    ZeroCafeine thanked this post
    #212271 quote
    JC_Bywan
    Moderator
    Master

    You have put your backtest code in the indicator code editor, not the probacktest/proorder editor (hint 1: the editor doesn’t like the word “buy” just like the indicator editor would not like it; and hint 2: error window title is “erreur dans la programmation de l’indicateur”, while probacktest error window title would just be “erreur”)

    PS: it’s a double post but we’ll leave it here… it would have been better to wait for an answer in the topic where the question was already asked, thank you

    ZeroCafeine thanked this post
    #212275 quote
    Nicolas
    Keymaster
    Master

    Good spot JC_Bywan!

    #212279 quote
    ZeroCafeine
    Participant
    Senior

    Thank you very much 🙂, I’m going to test this later today

    PS : The purpose of this new topic about Graph fonction is not to pollute the other topic here which talks exclusively about Forex strategy 😉

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.

Graph fontion not working


ProOrder support

New Reply
Author
Summary

This topic contains 4 replies,
has 3 voices, and was last updated by ZeroCafeine
2 years, 10 months ago.

Topic Details
Forum: ProOrder support
Language: English
Started: 03/28/2023
Status: Active
Attachments: 1 files
Logo Logo
Loading...