One more try:

3DayDrops = Sum(Close < Ref(Close , -1), 3) >= 3;

Whew! Time for a big nap.

d

-----Original Message-----
From: dingo [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 04, 2007 8:05 PM
To: '[email protected]'
Subject: RE: [amibroker] 3 day consecutive drops

Oooops!  Backwards! You said drops:

3DayDrops = Sum(Close < Ref(Close , -1), 3);

d

> -----Original Message-----
> From: [email protected] 
> [mailto:[EMAIL PROTECTED] On Behalf Of dingo
> Sent: Friday, May 04, 2007 8:03 PM
> To: [email protected]
> Subject: RE: [amibroker] 3 day consecutive drops
> 
> 3DayDrop = Sum(High > Ref(High, -1), 3); 
> 
> d
> 
> > -----Original Message-----
> > From: [email protected] 
> > [mailto:[EMAIL PROTECTED] On Behalf Of WaldemarRooijer
> > Sent: Wednesday, May 02, 2007 3:15 PM
> > To: [email protected]
> > Subject: [amibroker] 3 day consecutive drops
> > 
> > Dear Ami buddies,
> > 
> > I hope this question is not too simple.
> > 
> > Anyone can help me out with the code how do I specify 3 consecutive 
> > lower closes or 3 day drops?
> > 
> > thx in advance.
> > 
> > 
> > 
> > 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
> > 
> > 
> > 
> > 
> 
> 
> 
> 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