Bonjour,
J'essaye de screener sans succés .
 . 
Voici le code de l'indicateur darvas:
Pas moyen d'avoir le résultat attendu malgrés mes essaies  . Ou est mon erreur?
 . Ou est mon erreur?
 
                
                
                
                                
                            J'essaye de screener sans succés
 .
 . Voici le code de l'indicateur darvas:
Voici le code de mon screener:k=49
once tth=undefined
once ttl=undefined
n=(k*2)-4
p=(n/2)-1
h1=dpo[n](high)
moyh=high-h1
hi=(moyh-moyh[1]+(high[p])/n)*n
hi=(round(hi*100))/100
l1=dpo[n](low)
moyl=low-l1
lo=(moyl-moyl[1]+(low[p])/n)*n
lo=(round(lo*100))/100
low1=(round(low*100))/100
high1=(round(high*100))/100
if barindex > 100 then
if box=1 and (high1>tth or low1<ttl) then
box=0
flag=0
endif
if box=0 and flag=0 and high1>=hi[47] and high1>=hi[46] and high1>=hi[45] and high1>=hi[44] then
th=high1
flag=1
endif
if box=0 and flag=1 then
for zz=0 to 44
if hi[48-zz-1]>th or hi[48-zz-2]>th or hi[48-zz-3]>th or hi[48-zz-4]>th then
flag=0
break
endif
if lo[48-zz]<lo[48-zz-1] and lo[48-zz]<lo[48-zz-2] and lo[48-zz]<lo[48-zz-3] and lo[48-zz]<lo[48-zz-4]then
box=1
tth=th
ttl=lo[48-zz]
break
endif
next
endif
else
tth=undefined
ttl=undefined
endif
if box=1 then
ba=ttl
else
ba=tth
endif
return ba coloured by box-1 AS "BA", tth coloured by box-1 AS "TTH", ttl coloured by box-1 AS "TTL"
Code : #
//INDIC DARVAS
ignored, myTTH, ignored = CALL "darvas h4"
closeCASS=OPEN<myTTH AND CLOSE>myTTH
closeH=OPEN>myTTH AND CLOSE>myTTH
TIMEFRAME(WEEKly)
//condition screen
IF ( closeH) then
Criteria=3
ELSIF ( closeCASS) then
Criteria=2
else
Criteria=0
ENDIF
SCREENER[  ( closeCASS ) OR  (   closeH )   ]      (Criteria AS "max") . Ou est mon erreur?
 . Ou est mon erreur?

 J'ai beau tourner ca dans tout les sens, y'a rien qui fonctionne en screener avec cette indicateur.
 J'ai beau tourner ca dans tout les sens, y'a rien qui fonctionne en screener avec cette indicateur. 