Tracer ligne plus haut de la veille jusqu’a bar en cours

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

    Bonjour Nicolas, bonjour à tous,

    Je cherche à tracer une simple ligne qui démarre du plus haut de la veille jusqu’a la cloture de la journée en cours.
    Idem pour la semaine précedente si possible.

    Voir exemple souhaité en PJ
    Quelqu’un aurait-il un code à me proposer ?
    Par avance, merci pour l’aide

    Capture-decran-du-2023-05-16-14-24-35.png Capture-decran-du-2023-05-16-14-24-35.png
    #214814 quote
    NicolasNicolas
    Keymaster
    Legend

    On peut obtenir ce type de ligne avec l’indicateur “ligne horizontal dynamique” dans la plateforme.

    #214816 quote
    rwandererrwanderer
    Participant
    New

    Merci Nicolas,

     

    Cependant je cherche à le coder car c’est une donnée que je souhaite utiliser dans mon indicateur..

    #214821 quote
    JC_BywanJC_Bywan
    Moderator
    Master

    Bjr,

    Si c’est juste pour la donnée du plus haut de la veille plutôt que pour le graphisme, la donnée est dispo avec: Dhigh(1)

    cf doc du site: https://www.prorealcode.com/documentation/dhigh/

    #214822 quote
    JSJS
    Participant
    Master

    Salut,

    Vous pouvez essayer celui-ci…
    DefParam DrawOnLastBarOnly=True
    TimeFrame(1 hour)
    Period=48
    xDHigh1 = DHigh(1)
    For p=0 to Period
    If High[p]=xDHigh1 then
    x1=BarIndex[p]
    EndIf 
    Next
    DrawSegment(x1,xDHigh1,BarIndex,xDHigh1)Style(DottedLine)Coloured("Red")
    Return
    Scherm­afbeelding-2023-05-16-om-19.47.26.png Scherm­afbeelding-2023-05-16-om-19.47.26.png
Viewing 5 posts - 1 through 5 (of 5 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

Tracer ligne plus haut de la veille jusqu’a bar en cours


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
rwanderer @rwanderer Participant
Summary

This topic contains 4 replies,
has 4 voices, and was last updated by JSJS
3 years, 4 months ago.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 05/16/2023
Status: Active
Attachments: 2 files
ProRealCode ProRealCode
Loading...