Comment afficher que la première occurrence de ce code

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #242144 quote
    artphot
    Participant
    New

    //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 quote
    robeen12
    Participant
    Veteran

    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

    artphot thanked this post
    #242151 quote
    fifi743
    Participant
    Master

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

    artphot thanked this post
    #242153 quote
    artphot
    Participant
    New

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

    #242169 quote
    robeen12
    Participant
    Veteran
    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
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.

Comment afficher que la première occurrence de ce code


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
artphot @artphot Participant
Summary

This topic contains 4 replies,
has 3 voices, and was last updated by robeen12
1 year, 1 month ago.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 01/04/2025
Status: Active
Attachments: 3 files
Logo Logo
Loading...