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

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

    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álezIván González
    Moderator
    Legend

    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.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

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álezIván González
9 months, 4 weeks ago.

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