Try this
DaysDown =  barssince(c>ref(c,-1));

-- 
Cheers
Graham Kav
AFL Writing Service
http://www.aflwriting.com



2008/6/12 droskill <[EMAIL PROTECTED]>:
> Hey all - I'm trying to get the number of days down for each stock in
> an exploration - can't figure out how to do it.  Anybody have any
> pointers?
>
> Thanks!
>
>
> ------------------------------------
>
> Please note that this group is for discussion between users only.
>
> To get support from AmiBroker please send an e-mail directly to
> SUPPORT {at} amibroker.com
>
> For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> http://www.amibroker.com/devlog/
>
> For other support material please check also:
> http://www.amibroker.com/support.html
> Yahoo! Groups Links
>
>
>
>

Reply via email to