Tracer Segment entre 2 horaires

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #173126 quote
    fred631fred631
    Participant
    Junior

    Bonjour,

     

    Après quelques recherches infructueuses, je viens demander de l’aide ici =)

    Je cherche à pouvoir tracer un segment (sur le CAC par exemple) entre le cours de fermeture :18h et d’ouverture 9h

     

    J’aimerai donc utiliser DRAWSEGMENT (X1,Y1,X2,Y2)

    Avec X1 close de 18h et que ce segment avance doucement (X2, avec le X courant de la bougie en cours) et s’arrête à 9h. Car si il est 8h30 je veux qu’il continue d’avancer.

    Y1 et Y2 seront donc le close de 18h.

     

    J’espère que c’est assez clair =)

     

    Merci pour votre aide

    #173273 quote
    JC_BywanJC_Bywan
    Moderator
    Master

    Bonjour, version respectant la demande de faire avancer le segment “doucement” au lieu de le tracer d’un seul coup, à tester:

    start=180000
    finish=090000
    
    if time=start then
     y1=close
    endif
    if opentime>start or opentime<=finish then
     DRAWSEGMENT(barindex, y1, barindex[1], y1)
    endif
    
    return
    #173274 quote
    fred631fred631
    Participant
    Junior

    Top merci, ça fonctionne parfaitement =)

    JC_Bywan thanked this post
Viewing 3 posts - 1 through 3 (of 3 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 Segment entre 2 horaires


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
fred631 @fred631 Participant
Summary

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

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 07/05/2021
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...