PureBytes Links
Trading Reference Links
|
Not sure what you want but this might help you on the way:
//How would I find the Highest value since a condition was met?
//I would like to find the High value since the condition was met for the
next five days?
P = Param("P",5,1,10,1);
cond=Outside() AND C>Ref(C,-1);
Answer1 = HighestSince(Cond, High, 5 );
Answer2 = HighestSince(Sum(Cond,5)>=P, High);
Plot(Answer1,"Answer1",1,1);
Plot(Answer2,"Answer2",4,1);
herman
-----Original Message-----
From: epintoem [mailto:epintoem@xxxxxxxxx]
Sent: Sunday, February 22, 2004 3:17 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Afl question:
How would I find the highest value since a condition was met?
cond=outside()and c>ref(c,-1);
I would like to find the high value since the condition was met for
the next five days?
any help would be appreciated
TIA
Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at:
http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Links
To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|