Comment afficher que la première occurrence de ce code

Forums ProRealTime forum Français Support ProBuilder Comment afficher que la première occurrence de ce code

Viewing 5 posts - 1 through 5 (of 5 total)
  • #242144

    //base hull 15, Apitradeguru protégé
    //MMS5=Average[1]
    //MMS35=Average[35]
    //condition1= MMS5 crosses over MMS35
    //condition2= MMS35 crosses over MMS5
    Condition1= Hullaverage[15] [1]> Hullaverage [15][2]
    Condition2= Hullaverage[15] [1]< Hullaverage [15][2] IF condition1 THEN ACHAT1 = 1 else ACHAT1 = 0 ENDIF IF condition2 THEN VENTE1 = -1 ELSE vente1 = 0 ENDIF if ACHAT1<>0 then
    drawarrowup(barindex,low-averagetruerange[14]*1.5) coloured(102, 204, 0)
    elsif vente1<>0 then
    drawarrowdown(barindex,high+averagetruerange[14]*1.5) coloured(255, 87, 51)
    endif

    // Couleur du fond du graphique
    //le A
    IF (condition1) THEN//vert
    r=144
    v=238
    b=144
    A=100
    ELSIF(condition2) THEN //rouge
    r=255
    v=182
    b=193
    A=100
    else
    r=undefined
    v=undefined
    b=undefined
    A=0
    endif
    BACKGROUNDCOLOR(r,v,b,A)

    return

    #242146

    Bonjour,

    voici ma solution :

    //base hull 15, Apitradeguru protégé
    //MMS5=Average[1]
    //MMS35=Average[35]
    //condition1= MMS5 crosses over MMS35
    //condition2= MMS35 crosses over MMS5
    Condition1= Hullaverage[15] [1]> Hullaverage [15][2]
    Condition2= Hullaverage[15] [1]< Hullaverage [15][2]

    if Condition1 AND NOT CONDITION1[1] then
    drawarrowup(barindex,low-averagetruerange[14]*1.5) coloured(102, 204, 0)
    else
    if Condition2 AND NOT Condition2[1] then
    drawarrowdown(barindex,high+averagetruerange[14]*1.5) coloured(255, 87, 51)
    endif

    // Couleur du fond du graphique
    //le A
    IF (condition1) THEN//vert
    r=144
    v=238
    b=144
    A=100
    ELSIF(condition2) THEN //rouge
    r=255
    v=182
    b=193
    A=100
    else
    r=undefined
    v=undefined
    b=undefined
    A=0
    endif
    BACKGROUNDCOLOR(r,v,b,A)
    ENDIF
    return

     

    1 user thanked author for this post.
    #242151

    vous pourriez mettre votre code dans add prt code SVP
    voir screen

    1 user thanked author for this post.
    #242153

    Merci une fois vu, çà parait simple! ah ah! bravo et encore merci

     

    #242169
Viewing 5 posts - 1 through 5 (of 5 total)

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