| 
 PureBytes Links 
Trading Reference Links 
 | 
Thank everyone for reply
The following code is doing what I need, but it lacks of flexibility 
for adjusting the length of periods if I need to count a hundred of 
periods, that is the reason for searching another coding approach, 
If(C > Ref(C,-1),1,0)+
If(C > Ref(C,-2),1,0)+
If(C > Ref(C,-3),1,0)+
If(C > Ref(C,-4),1,0)+
If(C > Ref(C,-5),1,0)+ ...
Thank everyone for suggestions
Eric
 
Yahoo! Groups Links
<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/equismetastock/
<*> To unsubscribe from this group, send an email to:
    equismetastock-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 
 |