Ddemande d’information sur l’indicateur hypertrend

Forums ProRealTime forum Français Support ProScreener Ddemande d’information sur l’indicateur hypertrend

Viewing 1 post (of 1 total)
  • #239164

    Bonjour a tous les codeurs

    j’espère que tous ce passe à merveille pour vous =)

    j’ai un petit souci, j’utilise actuellement l’indicateur hypertrend et je souhaiterais afficher plusieurs conditions ,

    pour les achats ;

    1 ) début de la barre verte de l’hypertrend

    2) close en dessous de la barre verte de l’hypertrend

     

    Pour les ventes,

    1)  début de la barre rouge de l’hypertrend

    2) close au dessus de la barre rouge de l’hypertrend

     

    Si vous pouvez m’aider sur ces 4 variables a coder sa serait sympas =)

    je vous mets le code sources de l’indicateur ci dessous

    merci beaucoup pour votre aide

    code source de l’indicateurs :

    once avg = close
    once hold = 0
    once os = 1
    once rR = 220
    once gR = 20
    once bR = 60
    once rV = 60
    once gV = 179
    once bV = 113

    if barindex > 200 then
    atr = AverageTrueRange[200] * mult

    If abs(close – avg) > atr then
    avg = (close+avg)/2
    //avg = avgN
    else
    avg = avg + os*(hold/mult/slope)
    //avg = avgN
    endif

    os = sgn(avg – avg[1])

    If os <> os[1] then
    hold = atr
    else
    hold = hold[1]
    endif

    upper = avg + width*hold/100
    lower = avg – width*hold/100

    If os = 1 then
    r = rV
    g = gV
    b = bV
    else
    r = rR
    g = gR
    b = bR
    endif

    DRAWSEGMENT(barindex-1,avg[1],barindex,avg) COLOURED(r,g,b,255)style(line,3)
    DRAWSEGMENT(barindex-1,upper[1],barindex,upper) COLOURED(rR,gR,bR,100)style(line,1)
    DRAWSEGMENT(barindex-1,lower[1],barindex,lower) COLOURED(rV,gV,bV,100)style(line,1)
    ColorBetween(avg,upper,rR,gR,bR,30)
    ColorBetween(avg,lower,rV,gV,bV,30)

    endif

    Return

     

     

Viewing 1 post (of 1 total)

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