LjuParticipant
New
Bonjour je cherche un indicateur sur des bougies 5 minutes en Heikin Ashi qui pourrait passé sur “1” apres 4 bougies verte consecutive et sur “-1” apres 4 bougies rouge consecutive
est ce possible ?
Merci par avance
JSParticipant
Veteran
Bonjour @Lju
Voici l’indicateur:
Once xOpen=Open
xClose=(Open+Close+High+Low)/4
If BarIndex>0 then
xOpen=(xOpen[1]+xClose[1])/2
endif
If xClose>=xOpen then
Bullish=Bullish+1
Bearish=0
ElsIf xClose<xOpen then
Bearish=Bearish+1
Bullish=0
EndIf
If Bullish>=4 then
HACC=1
ElsIf Bearish>=4 then
HACC=-1
Else
HACC=0
EndIf
If HACC=1 then
R=0
G=255
B=0
ElsIf HACC=-1 then
R=255
G=0
B=0
EndIf
DrawHLine(0)Coloured("Blue")
Return HACC as "Haikin Ashi Candle Counter" Coloured(R,G,B) Style(Histogram)
LjuParticipant
New
Merci beaucoup pour le temps consacré à l’elaboration de l’indicateur
tout fonctionne tres bien, c’est top