a = close+spread
b = close-spread
Rge = averagetruerange[7](close)
aAdx= ADX[14]
once shifttext=Graphic
sto8=stochastic[8,5]
if Info= 1 then
if aADX > aADX[1] then
elsif aADX < aADX[1] then
endif
endif
//________________________________________________________________________________________________________________________
if aAdx crosses over 25 and sto8 < sto8[5] then
if signalvente1=-1 then
DRAWTEXT("#b#",barindex[0]+1,high[2]+1.25*rge)coloured(255,0,0)
endif
elsif aAdx crosses over 25 and sto8 > sto8[5] then
if signalachat1=1 then
DRAWTEXT("#a#",barindex[0]+1,low[2]-1.25*rge)coloured(0,0,255)
endif//--------------------------------------------------------------------------------------------------------------------------------------------------------------
p= valeur
masDM = max(high-high[1], 0)
menosDM = max(low[1]-low, 0)
if masDM > menosDM then
menosDM = 0
endif
if masDM < menosDM then
masDM = 0
endif
if masDM = menosDM then
masDM = 0
menosDM = 0
endif
masDI = wilderAverage[p](masDM)
menosDI = wilderAverage[p](menosDM)
DX = ABS(masDI - menosDI) / (masDI + menosDI) * 100
miADX = wilderAverage[p](DX)
miadx=miadx
sto76=stochastic[76,3]
if miadx>15 and sto76 > sto76[1] then
if miADX > miadx[1] and miADX[1]<miADX[2] then
elsif miADX < miadx[1] and miADX[1] > miADX[2] then
endif
endif
if miadx>15 and sto76 < sto76[1] then
if miADX > miadx[1] and miADX[1]<miADX[2] then
elsif miADX < miadx[1] and miADX[1] > miADX[2] then
Drawtext ("-", barindex,high+3*Rge/shifttext /1,SansSerif,bold,10) coloured (153,255,255)
endif
endif
endif
return