Close semaine/jour précédent(e)

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #253905 quote
    Philippe
    Participant
    New

    Bonsoir à tous.

    J’aimerais dessiner un segment de 1 bougie de longueur qui partirait du semaine précédente close. Idem pour jour précédent close.

    Visualisable sur toutes les UT inférieures bien sûr.

    Une idée de comment je pourrais faire cela ?

     

    Je vous remercie par avance.

    Bien Cordialement,

    #253914 quote
    Iván González
    Moderator
    Master

    Bonjour. Voici un exemple avec une période en semaine.

    if DayOfWeek<DayOfWeek[1] then
       refclose=close[1]
       idx=barindex[1]
    endif
    drawsegment(idx,refclose,barindex,refclose)
    
    return
    

    Sur une période quotidienne, cela se ferait ainsi

    if openday<>openday[1] then
       refclose=close[1]
       idx=barindex[1]
    endif
    drawsegment(idx,refclose,barindex,refclose)
    
    return
    robertogozzi and Philippe thanked this post
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Close semaine/jour précédent(e)


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
Philippe @philippe-c Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by Iván González
2 months, 1 week ago.

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