[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [amibroker] Another AFL question



PureBytes Links

Trading Reference Links


Try:
 
buy=Condition AND Barssince(Cond 
True)==X;
 
Actually, If the condition was true X days ago and not true 
now, the above won't work unless it is shortened to:
 

buy=Barssince(Cond True)==X;
 
-CS
 
<BLOCKQUOTE 
>
----- Original Message ----- 
<DIV 
>From: 
Harold 
Harper 
To: <A title=amibroker@xxxxxxxxxx 
href="">amibroker@xxxxxxxxxxxxxxx 
Sent: Friday, October 04, 2002 8:05 
PM
Subject: [amibroker] Another AFL 
question
How would I write this in AFL:If a particular 
condition is true AND X number of bars have gone by, 
buy???Thanks in advance.Harold Harper<A 
href="">harold@xxxxPost 
AmiQuote-related messages ONLY to: <A 
href="">amiquote@xxxxxxxxxxxxxxx (Web 
page: <A 
href="">http://groups.yahoo.com/group/amiquote/messages/)Check 
group FAQ at: <A 
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Your use of Yahoo! Groups is subject to the <A 
href="">Yahoo! Terms of Service.