afficher le cours sur bornes de l’opr

Forums ProRealTime forum Français Support ProBuilder afficher le cours sur bornes de l’opr

Viewing 3 posts - 1 through 3 (of 3 total)
  • #235313

    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

    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

    1 user thanked author for this post.
    #235324

    super !

    Merci beaucoup

Viewing 3 posts - 1 through 3 (of 3 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login