| 
 PureBytes Links 
Trading Reference Links 
 | 
Trend2trader
> does anyone know how to programm an indicator which counts the # of 
> consecutive down days?
> 
> thanks in advance
Try this
  {Signal Counter} 
a:=C<Ref(C,-1); {signal}
b:=C>=Ref(C,-1) AND Alert((C>=Ref(C,-1))=0,2); {reset}
i:=Cum(a+b>-1)=1;
f:=BarsSince(i OR a)<BarsSince(i OR b);
g:=Cum(a OR Cross(a,0.5))-ValueWhen(1,i OR (f AND 
Alert(f=0,2)) OR (f=0 AND 
Alert(f,2)),Cum(a OR Cross(a,0.5)));
If(f,g+1,g);
Roy
To unsubscribe from this group, send an email to:
Metastockusers-unsubscribe@xxxxxxxxxxx
 
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
 |