you could try using Cum

Buy = whatever;
Cbuy = cum(Buy);
First = valuewhen(buy and Cbuy==1,datenum());

-- 
Cheers
Graham
AB-Write >< Professional AFL Writing Service
Yes, I write AFL code to your requirements
http://www.aflwriting.com



On 29/05/07, fblackes <[EMAIL PROTECTED]> wrote:
> Has anyone used either Barssince or something similar to test for the
> first signal of a stock's existence.  I'm testing IPOs to see when
> it's first signal was produced. For example stock came public June 12,
> 2005, but it's first signal in my system was June 30, 2005, any idea
> of how to  test this.
>
> Thanks
> AB

Reply via email to