AIDE A LA CREATION INDICATEUR POUR ALERTE / BASE HEIKIN ASHI

Viewing 4 posts - 16 through 19 (of 19 total)
  • Author
    Posts
  • #118071 quote
    martinr
    Participant
    New

    Bien sûr voici le code :

    xClose = (open+high+low+close)/4
    IF BarIndex=0 THEN
    xOpen = open
    xHigh = high
    xLow = low
    ELSe
    xOpen = (xOpen[1] + xClose[1])/2
    xHigh = Max(Max(high, xOpen), xClose)
    xLow = Min(Min(low, xOpen), xClose)
    ENDIF
     
    green = xClose>xOpen
    red = not green
    body = Abs(xclose-xopen)
    sup = (xhigh-max(xopen,xclose))/body*100
    inf = (min(xopen,xclose)-xlow)/body*100
    
    if green and red[1] then 
    start=barindex
    endif
    if barindex-start=2 then 
    c0 = green and inf<20 and sup<50
    c1 = green[1] and inf[1]<20 and sup[1]<50
    c2 = green[2] and inf[2]<30 and sup[1]<50
    else
    c0=0
    c1=0
    c2=0
    endif
    if red and green[1] then 
    start=barindex
    endif
    if barindex-start=2 then 
    c3 = red and inf<20 and sup<50
    c4 = red[1] and inf[1]<20 and sup[1]<50
    c5 = red[2] and inf[2]<30 and sup[1]<50
    else
    c3=0
    c4=0
    c5=0
    endif
    
    return (c0 and c1 and c2) coloured(0,255,0) style(histogram), (c3 and c4 and c5) coloured(255,0,0) style(histogram)

    Merci à vous !

    reb and Nicolas thanked this post
    #127319 quote
    DavidT
    Participant
    New

    salut à tous,

    merci pour cet outil

     

    mais j’ai un soucis. lorsque je copie colle ce texte dans pro builder et que je mets l’indicateur en place sur mes graphiques, l’indicateur est complètement vide, il n’affiche rien.

    Pourriez-vous svp m’aiguiller ?

     

    Merci d’avance et à bientôt

    #127415 quote
    Nicolas
    Keymaster
    Master

    C’est un indicateur à placer sous le prix. Il ne faut pas l’appliquer dessus comme une moyenne mobile par exemple.

    #127419 quote
    DavidT
    Participant
    New

    bonjour Nicolas,

     

    désolé je j’ai pas compris.

    J’ai copié coller le code dans proBuilder et je l’ai ajouté à mon graphique. Mais l’encadré qui apparait sous le graphique est complètement vide.

    Quelle serait la manipulation ?

    Merci

Viewing 4 posts - 16 through 19 (of 19 total)
  • You must be logged in to reply to this topic.

AIDE A LA CREATION INDICATEUR POUR ALERTE / BASE HEIKIN ASHI


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
APOLO13 @apolo13 Participant
Summary

This topic contains 18 replies,
has 4 voices, and was last updated by DavidT
5 years, 10 months ago.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 08/29/2019
Status: Active
Attachments: 2 files
Logo Logo
Loading...