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

Re: [amibroker] AFL



PureBytes Links

Trading Reference Links


Hello,
 
It is very simple using Sum function:
 
condition = close > ma( close, 100 ); 

condoverrange = sum( condition, 50 ) == 50; // true 
only if condition was true (or 1) for all bars during 50 bar period
 
Best regards,
Tomasz Janeczko
amibroker.com
<BLOCKQUOTE 
>
----- Original Message ----- 
<DIV 
>From: 
Jaco Jonker 

To: <A title=amibroker@xxxxxxxxxx 
href="">amibroker@xxxxxxxxxxxxxxx 
Sent: 25 July, 2001 14:29
Subject: [amibroker] AFL

Hi Tomasz,
 
What is the easiest way to test a condition over 
a certain range or period. For instance: If I wanna know if in the past 50 
days the Closing price was above the 100 day EMA.
 
Regards.
 
Jaco JonkerYour useof 
Yahoo! Groups is subject to the <A 
href="">Yahoo! Terms of Service.