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 !
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
C’est un indicateur à placer sous le prix. Il ne faut pas l’appliquer dessus comme une moyenne mobile par exemple.
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