Here is one way
Search = barssince(buy)<=5 and barssince(buy)<barssince(sell);
Another was answered yesterday I think in another thread.
--
Cheers
Graham
AB-Write >< Professional AFL Writing Service
Yes, I write AFL code to your requirements
http://www.aflwriting.com
On 09/01/07, softnews2003 <[EMAIL PROTECTED]> wrote:
Hi,
How we can scan for buy signal for last five days that doesn't have
sell signal after it.
For example I need to scan for buy MACD cross signal for last five
days, this will give me all signals (Buy and sell). What I need only to
have the buy signal that doesn't have sell signal after it. If it has
sell signal I don't need it to be showing in scan result.
Thanks for feedback
Best Regards.
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