This is a Doji pattern adapted for Heikin Ashi candlesticks. The pattern’s body size can be adjusted in the parameter, in percent compared to the complete range of the candle. It is set to 5 percent but you could change it with the desired body size.
This Doji screener has been coded by request on Italian ProScreener forum.
A wide range of other patterns can be retrieved in another complete indicator that grouped many candlesticks patterns, you can find it here: candlesticks patterns recognition
A Doji pattern is a well known candlestick formation that symbolize a market exhaustion or an indecision of the bull or bear actual trend.
//PRC_Doji Heikin Ashi | screener
//10.01.2017
//Nicolas @ www.prorealcode.com
//Sharing ProRealTime knowledge
// --- 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)
screener [data]
You must be logged in to post a comment.
hello tout le monde , marcara ton objectif est tjrs de l'actualité?
//PRC_Doji Heikin Ashi | screener //10.01.2017 //Nicolas @ www.prorealcode.com //Sharing ProRealTime knowledge // --- 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) // Added to check if the -1 Candle is a Keiken Ashi Doji haclose1=(open[1]+close[1]+low[1]+high[1])/4 haopen1=(haopen1[2]+haclose1[2])/2 xHigh1 = Max(haOpen1[1], haClose1[1]) xLow1 = Min(haOpen1[1], haClose1[1]) hahigh1 = Max(High[1],xHigh1) halow1 = Min(Low[1],xLow1) endif data=(abs(haopen - haclose) <= (hahigh - halow) * DojiSize/100) data1=(abs(haopen1 - haclose1) <= (hahigh1 - halow1) * DojiSize/100) screener [data or data1]
Many many thanks for that Nicolas. What if i would like to screen a weekly time frame? It seems that it pull out stocks only in a daily tf. Thanks!
Bonjour, merci pour ce screener qui m'intéresse énormément. Etant nul en codage, je souhaiterai savoir s'il était possible d'adapter le screener au sujet suivant : je souhaiterai pouvoir avoir un screener me permettant d'identifier toujours le Heiken Ashi les bougies avec un tout petit corps et de longues mèches. J'avais pensé calculer la différence entre le cours d'ouverture et celui de clôture (= le corps) et la comparer (si par exemple le cours d'ouverture est supérieur au cours de cloture) aux données suivants : plus haut - cours d'ouverture (= la mèche haute) > au moins 3 fois (par exemple) au corps. J'ai tenté de coder un screener mais il ne me donne pas de bons résultats. Quelqu'un peut il m'aider SVP? Merci.
Est ce que le screener fonctionne si l'on n'est pas en visualisation Heikin-Ashi ?
Hello, I would like to limit the screener to the last 5 bars only, is this possible?