tracer un segment sur le niveau de la résistance à droite du chandelier

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #156176 quote
    Roland57800
    Participant
    Veteran

    Bonjour,

    J’ai un petit avec un code que j’ai emprunté sur le site.

    Je cherche à tracer un segment sur le niveau de la résistance à droite du chandelier, or le segment se trace

    sur la gauche. Je sais qu’il y a [8] mais si je l’enlève, je n’ai plus rien

    Merci pour votre aide.

    Cordialement

    defparam DRAWONLASTBARONLY = true                        //  TRUE = AFFICHE SEULEMENT LA DERNIÈRE RÉSISTANCE             FALSE = AFFICHE TOUTES LES RÉSISATNCES ANTÉRIEURES
    
    
    RESISTANCE = HIGHEST[9](HIGH)
     
    IF RESISTANCE>RESISTANCE[1] AND CLOSE>RESISTANCE[1] THEN
    RES = RESISTANCE[0]
    ELSE
    RES = RESISTANCE[1]
    ENDIF
     
    
    DRAWSEGMENT (barindex,res,barindex[8], res)   coloured(255,0,255)                 style(line,1)
    
    
    DRAWTEXT("                                                                                Rés :   #res#                       ", barindex,res) COLOURED(255,0,255)
    
    
    
    
    RETURN
    SEGMENT.png SEGMENT.png
    #156192 quote
    JC_Bywan
    Moderator
    Master

    Bjr, si en v11, tu peux remplacer ton barindex[8] (8 bougies dans le passé) par barindex+8 (8 barres à droite de la dernière bougie)

    #156194 quote
    Roland57800
    Participant
    Veteran

    Oui je suis en v11, temps réel

    Je viens d’essayer c’est OK

     

    je profite de l’occasion pour te souhaiter

    une belle année 2021

    Cordialement

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

tracer un segment sur le niveau de la résistance à droite du chandelier


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by Roland57800
5 years, 2 months ago.

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