Bonjour,
Pouvez-vous modifier dans ce sens :ajouter à la condition TroisRouge sans aucune ombre supérieur
Merci par avance
Domi
//PRC_Doji Heikin Ashi | screener
// — parameters
DojiSize = 5 //x% percent of body size compared to the complete range of the candlestick
// —
if barindex>1 then
haclose=(open+close+low+high)/4
haopen=(haopen[1]+haclose[1])/2
xHigh = Max(haOpen, haClose)
xLow = Min(haOpen, haClose)
hahigh = Max(High,xHigh)
halow = Min(Low,xLow)
endif
data=(abs(haopen – haclose) <= (hahigh – halow) * DojiSize/100)
TroisRouge= summation[3](haclose<haopen)=3 // série de 3 rouge en bougies HA = vrai ou faux
myVOL = volume * close
VOLcond = myVOL > 150000
condition= data AND TroisRouge[1] AND VOLcond // data du code fourni ET TroisRouge vraie en bougie précédente
screener [condition](myVOL as “capitalisation”) // screener désormais sur la condition combinée et pas seulement sur data
Voici le code modifié :
//PRC_Doji Heikin Ashi | screener
// — parameters
DojiSize = 5 //x% percent of body size compared to the complete range of the candlestick
// —
if barindex>1 then
haclose=(open+close+low+high)/4
haopen=(haopen[1]+haclose[1])/2
xHigh = Max(haOpen, haClose)
xLow = Min(haOpen, haClose)
hahigh = Max(High,xHigh)
halow = Min(Low,xLow)
endif
Baissier = haopen > haclose
sansOmbreSuperieur = ((hahigh - max(haopen,haclose)) = 0)
Cond = Baissier AND sansOmbreSuperieur
TroisRouge = (summation[3](Cond) = 3)
data=(abs(haopen - haclose) <= (hahigh - halow) * DojiSize/100)
//TroisRouge= summation[3](haclose<haopen)=3 // série de 3 rouge en bougies HA = vrai ou faux
myVOL = volume * close
VOLcond = myVOL > 150000
condition= data AND TroisRouge[1] AND VOLcond // data du code fourni ET TroisRouge vraie en bougie précédente
screener [condition](myVOL as "capitalisation") // screener désormais sur la condition combinée et pas seulement sur data