Doji Candle Stick Pattern

Indicator

//text colour
// white = 255,255,255 ; black = 0,0,0
r = 255
g = 255
b = 255
DojiSize = 0.05
data=(abs(open close) <= (high low) * DojiSize)
if data then
DRAWTEXT(“Doji”, barindex, high+atr, Dialog, Standard, 12) COLOURED(R,G,B)
endif

Signal

DojiSize = 0.05
If (abs(open – close) <= (high – low) * DojiSize) then
dojisignal = 1
else
dojisignal = 0
endif

Leave a Comment