| 
 PureBytes Links 
Trading Reference Links 
 | 
You 
could use barssince() to find the number of bars since the condition was met. 
Use that number with HHV to determine the high..
<FONT face=Arial color=#0000ff 
size=2> 
<FONT 
color=#282828 size=2> 
cond=Outside<FONT 
size=2>()AND <FONT 
face=Arial size=2>C><FONT 
size=2>Ref(<FONT face=Arial 
size=2>C,-1<FONT 
color=#282828 size=2>);
x=BarsSince<FONT 
color=#282828 size=2>(cond);
y=HHV<FONT 
size=2>(C<FONT color=#282828 
size=2>,x);<FONT face=Arial 
color=#0000ff size=2>
Plot(<FONT 
face=Arial size=2>C<FONT face=Arial 
color=#282828 size=2>,<FONT face=Arial color=#ff00ff 
size=2>"",<FONT face=Arial 
color=#ff00ff size=2>4,<FONT 
face=Arial color=#ff00ff size=2>64<FONT face=Arial color=#282828 
size=2>);
Plot(Cond,<FONT color=#ff00ff 
size=2>"",<FONT color=#ff00ff 
size=2>4,<FONT color=#ff00ff 
size=2>2|<FONT 
color=#000000>styleOwnScale<FONT color=#282828 
size=2>);
Title=<FONT face=Arial 
color=#ff00ff size=2>"Barssince Condition "<FONT face=Arial color=#282828 
size=2>+x+"\n Highest Close Value 
"+y;
 
 
Regards, 
Jayson 
<FONT face=Tahoma 
size=2>-----Original Message-----From: epintoem 
[mailto:epintoem@xxxxxxxxx]Sent: Sunday, February 22, 2004 3:17 
PMTo: amibroker@xxxxxxxxxxxxxxxSubject: [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 
appreciatedTIASend BUG REPORTS to 
bugs@xxxxxxxxxxxxxSend SUGGESTIONS to 
suggest@xxxxxxxxxxxxx-----------------------------------------Post 
AmiQuote-related messages ONLY to: 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 
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.
 
 |