Heikin-Ashi Doji candle

Category: Indicators By: Zigo Created: July 27, 2020, 9:41 AM
July 27, 2020, 9:41 AM
Indicators
2 Comments

Heikin-Ashi Candle in combination with “for example” Stochastic Indicator. The code of the doji on Heikin-Ashi candles gives three possibilities.

  1. A doji to go up (Green)
  2. A doji to go down (Red)
  3. A doji undecided, then we use a second indicator for the direction (WhitCode
//Zigo 24/07/2020

IF BarIndex = 0 THEN
XClose = TotalPrice
XOpen = (Open + Close) / 2
ELSE
XClose = TotalPrice
XOpen = (XOpen[1] + Xclose[1]) / 2
ENDIF
 
if xclose>xopen then
DRAWCANDLE(XOpen,high,low,XClose) COLOURED(0,100,170,125)
elsif xclose<xopen then
DRAWCANDLE(XOpen,high,low,XClose) COLOURED(250,150,0,125)
endif

Ho=high
L=Low
HAR=(xopen -xclose)

R=Ho-L
if ABS(xopen- xclose)<= 0.15*R then
if har >0 and (open < close)then
DRAWTEXT("H-A Doji Up", barindex, low-0.75*AverageTrueRange[14](close), dialog,standard, 15)coloured(0,250,0,255)
DRAWARROWUP(barindex, low-0.125*AverageTrueRange[14](close))coloured(0,250,0,255)
elsif har <0 and (open>close) then
DRAWTEXT("H-A Doji Dn", barindex, High+0.75*AverageTrueRange[14](close), dialog,standard, 15)coloured(255,150,0,255)
DRAWARROWDOWN(barindex, High +0.125*AverageTrueRange[14](close))coloured(255,150,0,255)
else
DRAWARROW(barindex, close)
endif
endif
return

Download
Filename: Heikin-Ashi-Doji.itf
Downloads: 826
Zigo Master
Developer by day, aspiring writer by night. Still compiling my bio... Error 404: presentation not found.
Author’s Profile

Comments

Logo Logo
Loading...