Over / Under Divergence : Part II.
Voici donc la version baissière de "l'Over / Under Divergence". Le premier article se trouve
ICI (avec les
conditions de validation).
Le screener a sorti GDI sur le NYSE, dont voici une vue :
Et le code pour Prorealtime :
x=stochastic[7,3](close)
z=stochastic[21,10](close)
if x>x[1] then
hi=max(hi,x)
hico=max(hico,max(high,high[1]))
endif
if x<x[1] and x[1]>x[2] then
zt1=zt
zt=z[1]
sto2=sto1
sto1=hi
hi=0
p3=p1
p2=max(p1,hico)
p1=max(highest[3](high),hico)
if p2=p1 then
p2=max(p3,p4)
endif
hico=0
hico1=0
endif
if x<x[1] then
p4=hico1
hico1=max(hico1,high)
endif
c1=(p1>p2 and sto1<sto2 and x<x[1] and x[1]>x[2])
c2=(c1 and sto2>zt1 and sto1<zt)
if c2 and high[1]=highest[7](high) and low<low[1] and close<open then
divi=3
else
divi=0
endif
return divi