afficher le cours sur bornes de l’opr

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #235313 quote
    carlito214
    Participant
    New

    Bonjour,

    pouvez-vous svp me dire comment rajouter l’affichage du cours sur chaque borne de L’opr dans le code ci dessous.

    merci

    DEFPARAM drawonlastbaronly = true

    StartHour = 9
    StartMinute = 0
    EndHour = 9
    EndMinute = 15

    if openhour <> openhour[1] and openhour = startHour then
    OPRHigh = high
    OPRLow = low
    endif

    if openhour = StartHour and openminute < endMinute then
    if high > OPRHigh then
    OPRHigh = high
    endif
    if low < OPRLow then
    OPRLow = low
    endif
    endif

    DrawHLine(OPRHigh) coloured(0,255,0) style(line,2)
    DrawHLine(OPRLow) coloured(255,0,0) style(line,2)

    return Close

    #235323 quote
    JC_Bywan
    Moderator
    Master

    Bjr,

    DEFPARAM drawonlastbaronly = true

    once decalage= 2*pipsize

    StartHour = 9
    StartMinute = 0
    EndHour = 9
    EndMinute = 15

    if openhour <> openhour[1] and openhour = startHour then
    OPRHigh = high
    OPRLow = low
    endif

    if openhour = StartHour and openminute < endMinute then
    mabarre=barindex
    if high > OPRHigh then
    OPRHigh = high
    endif
    if low < OPRLow then
    OPRLow = low
    endif
    endif

    DrawHLine(OPRHigh) coloured(0,255,0) style(line,2)
    DrawHLine(OPRLow) coloured(255,0,0) style(line,2)

    DrawText(“#OPRHigh#”, mabarre, OPRHigh+decalage) coloured(0,255,0)
    DrawText(“#OPRLow#”, mabarre, OPRLow-decalage) coloured(255,0,0)

    return Close

    Iván González thanked this post
    #235324 quote
    carlito214
    Participant
    New

    super !

    Merci beaucoup

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

afficher le cours sur bornes de l’opr


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
carlito214 @carlito214 Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by carlito214
1 year, 6 months ago.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 07/16/2024
Status: Active
Attachments: No files
Logo Logo
Loading...