Breakout de la bougie précédente sur le Dow

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

    Bonjour à tous,

    je n’arrive pas à finaliser un indic simple de break par rapport à la bougie précédente sur le Dow (Break m5). Je devrais avoir au moins une flèche quasiment chaque jour, or ce n’est pas le cas

    Je ne comprends pas le point qui gêne, voici le code :

     

    Merci de votre aide

    Reb

    ONCE StartTime = 153500
    ONCE EndTime = 160000
    
    IF TIME = StartTime THEN
    BHigh = High[1]
    BLow = Low[1]
    ENDIF
    
    IF Time >= StartTime AND Time <= EndTime THEN
    // Long
    IF close > BHigh THEN
    c=1
    ENDIF
    elsIF close < BLow THEN
    c=-1
    else
    c=0
    ENDIF
    
    if c=-1 then
    DRAWARROWDOWN(barindex,close+100)coloured(0,127,255)
    DRAWTEXT("BreakM5 S",barindex,close+150,SansSerif,Bold,12)coloured(0,0,0)
    elsif c=1 then
    DRAWARROWUP(barindex,close-100)coloured(112,128,144)
    DRAWTEXT("BreakM5 L",barindex,close-150,SansSerif,Bold,12)coloured(0,0,0)
    
    endif
    return
    #132306 quote
    fifi743
    Participant
    Master
    ONCE StartTime = 153500
    ONCE EndTime = 160000
    
    IF TIME = StartTime THEN
    BHigh = High[1]
    BLow = Low[1]
    ENDIF
    
    IF Time >= StartTime AND Time <= EndTime THEN
    // Long
    IF close > BHigh THEN
    c=1
    
    elsIF close < BLow THEN
    c=-1
    else
    c=0
    ENDIF
    ENDIF
    if c=-1 then
    DRAWARROWDOWN(barindex,close+100)coloured(0,127,255)
    DRAWTEXT(“BreakM5 S”,barindex,close+150,SansSerif,Bold,12)coloured(0,0,0)
    elsif c=1 then
    DRAWARROWUP(barindex,close-100)coloured(112,128,144)
    DRAWTEXT(“BreakM5 L”,barindex,close-150,SansSerif,Bold,12)coloured(0,0,0)
    
     
    
     
    
    endif
    return

    comme ceci c’est pas mieux

    pas testé

    #132332 quote
    reb
    Participant
    Master

    c’est mieux effectivement merci, je vais encore avancer un peu

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

Breakout de la bougie précédente sur le Dow


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
reb @reb Participant
Summary

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

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 05/19/2020
Status: Active
Attachments: No files
Logo Logo
Loading...