Tracé des droites qui bornent l’OPR

Viewing 3 posts - 16 through 18 (of 18 total)
  • Author
    Posts
  • #235275 quote
    carlito214carlito214
    Participant
    New

    Bonjour et merci pour votre aide précieuse.

    PRT m’affiche 2 erreurs à la fin de mon code, concernant les lignes sur l’affichage de la variation de la bougie

    pourriez-vous me les corriger svp ?

     

    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)

    // Calcul de la variation de la bougie
    BougieVariation = Close – Open

    // Affichage de la variation sur le graphique
    if BougieVariation >= 0 then
    DrawText(“+” + NumToStr(BougieVariation, 2), barindex, Low – (ATR(14) * 0.5)) coloured(0,255,0)
    else
    DrawText(NumToStr(BougieVariation, 2), barindex, Low – (ATR(14) * 0.5)) coloured(255,0,0)
    endif

    return Close

    #235277 quote
    Iván GonzálezIván González
    Moderator
    Legend

    Bonjour ici:

    // Affichage de la variation sur le graphique
    if BougieVariation >= 0 then
    DrawText("+ #BougieVariation#", barindex, Low - (averagetruerange[15] * 0.5)) coloured(0,255,0)
    else
    DrawText("#BougieVariation#", barindex, Low - (averagetruerange[15] * 0.5)) coloured(255,0,0)
    endif
    #235283 quote
    carlito214carlito214
    Participant
    New

    merci bcp, mais souhaiterais que la variation s’affiche uniquement sur la bougie de l’opr (celle comprise entre 9h et 9h15)

    merci

Viewing 3 posts - 16 through 18 (of 18 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

Tracé des droites qui bornent l’OPR


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
carlito214 @carlito214 Participant
Summary

This topic contains 17 replies,
has 4 voices, and was last updated by carlito214carlito214
2 years, 2 months ago.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 07/11/2024
Status: Active
Attachments: 2 files
ProRealCode ProRealCode
Loading...