DRAWRECTANGLE j’ai du louper quelque chose

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #221986 quote
    larouedegannlarouedegann
    Participant
    Master

    Bonjour à tous,

    Voici dessous mon indicateur qui encadre le marché asiatique de 2h15 à 7H00.

    Le graphique est en 1mn et l’on remarque que des journées sont traçées d’autres ne le sont pas.

    Apparemment j’ai du du louper quelque chose. Cela fonctionne en 30 mn et 15 mn mais pas en 1mn

    Une idée merci

    IF time = 070000  THEN
    hh = highest[217](high)
    ll = lowest[217](low)
    DRAWRECTANGLE(barindex[217],hh,barindex[0],ll)coloured (128,64,0,100)bordercolor(128,64,0)
    DRAWSEGMENT(barindex,hh,barindex+135,hh) coloured (0,0,0)STYLE(line,3)
    DRAWSEGMENT(barindex,ll,barindex+135,ll) coloured (0,0,0)STYLE(line,3)
    ENDIF
    RETURN
    
    BUNDXXXX-1-minute-2023_10_03-13h29.png BUNDXXXX-1-minute-2023_10_03-13h29.png
    #222017 quote
    NicolasNicolas
    Keymaster
    Legend

    Parce qu’il n’y a pas de bougie à 7h00 pile. J’ai ajouté dans le code ci-dessous un test en continu à partir de 07h00 jusqu’à ce qu’il soit possible de tracer la boîte:

    if time<070000 then 
    plotted=0
    endif 
    IF time >= 070000 and plotted=0  THEN
    drawvline(barindex)
    plotted=1
    hh = highest[217](high)
    ll = lowest[217](low)
    DRAWRECTANGLE(barindex[217],hh,barindex[0],ll)coloured (128,64,0,100)bordercolor(128,64,0)
    DRAWSEGMENT(barindex,hh,barindex+135,hh) coloured (0,0,0)STYLE(line,3)
    DRAWSEGMENT(barindex,ll,barindex+135,ll) coloured (0,0,0)STYLE(line,3)
    ENDIF
    RETURN
    BUNDXXXX-1-minute.png BUNDXXXX-1-minute.png
    #222027 quote
    larouedegannlarouedegann
    Participant
    Master

    AHHHHHH

    il fallait la trouver cette subtilité. il n’y a que toi qui pouvait la déceler

    Un grand merci à toi NICOLAS

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

DRAWRECTANGLE j’ai du louper quelque chose


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
Summary

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

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