Décaler un texte à la verticale de la bougie en cours

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #45826 quote
    Barichini
    Participant
    Average

    Bonjour,

    J’ai tenté de coder un indicateur de breakout du range du matin, faisant apparaître les objectifs de TP (extension de fibo).

    Pas de pbs pour faire ça en tatonnant, mais le texte et les segments correspondants restent scotchés de la fin de la période que j’ai définie le matin (8h à 8h30) .

    Je ne réussis pas à trouver le code qui me permettrait de décaler le texte des TP et les segments correspondants, à la verticale de la bougie en cours ou à droite du graphe.

    Si quelqu’un pouvait m’aider, merci par avance!

    Bien cordialement

    Voila le code!

    IF TIME =083000 THEN
    dh=highest[30](high)
    dl = lowest[30](low)
    
    //Objectifs
    P = (dh - dl)
    TP1 = dh +1.5 * P
    TP2 = dh +1.648 * P
    TP3 = dh +2 * P
    TP4 = dh +2.5 * P
    TP5 = dh +2.618 * P
    TP6 = dh +3.618 * P
    TP7 = dh +4.236 * P
    TP8 = dh +5.854 * P
    TP9 = dh +7.472 * P
    TP10 = dh +9.09 * P
    TP11 = dh +14.32 * P
    
    
    
    //Segments
    DRAWSEGMENT(barindex-5,TP1,barindex,TP1) coloured(0,204,0)
    DRAWSEGMENT(barindex-5,TP2,barindex,TP2) coloured(0,204,0)
    DRAWSEGMENT(barindex-5,TP3,barindex,TP3) coloured(0,204,0)
    DRAWSEGMENT(barindex-5,TP4,barindex,TP4) coloured(0,204,0)
    DRAWSEGMENT(barindex-5,TP5,barindex,TP5) coloured(0,204,0)
    DRAWSEGMENT(barindex-5,TP6,barindex,TP6) coloured(0,204,0)
    DRAWSEGMENT(barindex-5,TP7,barindex,TP7) coloured(0,204,0)
    DRAWSEGMENT(barindex-5,TP8,barindex,TP8) coloured(0,204,0)
    DRAWSEGMENT(barindex-5,TP9,barindex,TP9) coloured(0,204,0)
    DRAWSEGMENT(barindex-5,TP10,barindex,TP10) coloured(0,204,0)
    DRAWSEGMENT(barindex-5,TP11,barindex,TP11) coloured(0,204,0)
    
    //Texte
    
    
    
    DRAWTEXT("TP1",barindex-10,TP1,SansSerif,Bold,16)coloured(0,204,0)
    DRAWTEXT("TP2",barindex-10,TP2,SansSerif,Bold,16)coloured(0,204,0)
    DRAWTEXT("TP3",barindex-10,TP3,SansSerif,Bold,16)coloured(0,204,0)
    DRAWTEXT("TP4",barindex-10,TP4,SansSerif,Bold,16)coloured(0,204,0)
    DRAWTEXT("TP5",barindex-10,TP5,SansSerif,Bold,16)coloured(0,204,0)
    DRAWTEXT("TP6",barindex-10,TP6,SansSerif,Bold,16)coloured(0,204,0)
    DRAWTEXT("TP7",barindex-10,TP7,SansSerif,Bold,16)coloured(0,204,0)
    DRAWTEXT("TP8",barindex-10,TP8,SansSerif,Bold,16)coloured(0,204,0)
    DRAWTEXT("TP9",barindex-10,TP9,SansSerif,Bold,16)coloured(0,204,0)
    DRAWTEXT("TP10",barindex-10,TP10,SansSerif,Bold,16)coloured(0,204,0)
    DRAWTEXT("TP11",barindex-10,TP11,SansSerif,Bold,16)coloured(0,204,0)
    endif
    
    RETURN
Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.

Décaler un texte à la verticale de la bougie en cours


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
Barichini @barichini Participant
Summary

This topic contains 1 voice and has 0 replies.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 09/09/2017
Status: Active
Attachments: No files
Logo Logo
Loading...