Page 1 of 1

HA Turn

PostPosted: Sun Nov 24, 2019 8:47 am
by DanPhi74
Hi Guys

Could you code this :
HAturn = 0

IF BarIndex = 0 THEN
XClose = TotalPrice
XOpen = (Open + Close) / 2
ELSE
XClose = TotalPrice
XOpen = (XOpen[1] + Xclose[1]) / 2
ENDIF

if xclose>xopen and xclose[1]<xopen[1] then
HAturn = 1
elsif xclose<xopen and xclose[1]>xopen[1] then
HAturn = -1
endif

return HAturn

in order to have attached screen ;

Re: HA Turn

PostPosted: Sun Nov 24, 2019 9:09 am
by Apprentice
Your request is added to the development list.
Development reference 351.

Re: HA Turn

PostPosted: Mon Nov 25, 2019 5:58 am
by Apprentice