//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 and barindex > average[50])
screener [data]
Hi, I was wondering how to adjust the HA Doji screener by @Nicolas into a screener which scans for multiple consecutive HA Dojo/spinning top candles in a row. Does anyone has a clue?
There you go, you only need to replace 2 (in both palces, last line) with another value of your choice:
//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 and barindex > average[50])
screener [(summation[2](data) = 2)]