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

RE: [amibroker] Highest High or Lowest Low



PureBytes Links

Trading Reference Links










William,  Thanks very much.  I
was looking for 1).  This has really helped me get beyond where I was
stumped.  The help is much appreciated.





<span
>Larry M. Powell

<span
> 





<span
>-----Original Message-----
From: William Peters
[mailto:williampeters@xxxxxxxxxxxx] 
Sent: Saturday, August 30, 2003
10:06 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: RE: [amibroker] Highest
High or Lowest Low

<span
> 



<span
>Larry,





<span
> 





<span
>I was not sure about your wording so here are two
answers, if they are not exactly what your after they should help you to get
there.





<span
> 





<span
>1) This is where the high of 3 days ago is greater
than or equal too the highest high of 10 days prior to those 3 days:





<span
>H3DaysAgo<span
> = <font
size=2>Ref( High,
-3 );
HHPrev10Days<font
size=2 face="Courier New">
= Ref( HHV( <span
>High, 1<font size=2
face="Courier New">0<font
size=2> ), -4 )<font size=2
face="Courier New">;
Filter<font
size=2> = <font size=2
face="Courier New">H3DaysAgo >=
HHPrev10Days;
<span
>AddColumn<font
size=2 face="Courier New">(
H3DaysAgo<font
size=2 face="Courier New">,
"H3<font
size=2 color=fuchsia>DaysAgo<font
size=2 color=fuchsia face="Courier New"> <font size=2
color=fuchsia>"<font
size=2>, <span
>1.<font size=2 color=fuchsia
face="Courier New">2 );
<span
>AddColumn<font
size=2 face="Courier New">(
HHPrev10Days<font
size=2 face="Courier New">,
"HHPrev10Days ",
1.2);





<span
> 

<span
>2) This is where the high of 3 days ago is equal
too the highest high of the previous 10 days including today:

<span
>H3DaysAgo<span
> = <font
size=2 color=blue>Ref<font
size=2>( High,
-3 )<font
size=2 face="Courier New">;
HHPrev10Days<font
size=2 face="Courier New">FromToday
= HHV( <span
>High, <span
>1<font size=2 color=fuchsia
face="Courier New">0 )<font
size=2 face="Courier New">;
Filter<font
size=2> = <font size=2
face="Courier New">H3DaysAgo
== HHPrev10DaysFromToday;
<span
>AddColumn<font
size=2 face="Courier New">(
H3DaysAgo<font
size=2 face="Courier New">,
"H3<font
size=2 color=fuchsia>DaysAgo<font
size=2 color=fuchsia face="Courier New"> <font size=2
color=fuchsia>"<font
size=2>, <span
>1.<font size=2 color=fuchsia
face="Courier New">2 );
<span
>AddColumn<font
size=2 face="Courier New">(
HHPrev10DaysFromToday<font
size=2 face="Courier New">,
"HHPrev10DaysFromToday
", 1.2);

<span
>
Regards,
William Peters
www.amitools.com



-----Original
Message-----
From: larypowell
[mailto:larypowell@xxxxxxxxxxxxx]
Sent: August 30, 2003 4:21 PM
To: amibroker
Subject: [amibroker] Highest High
or Lowest Low

<span
>I am trying to write a scan that
will test to see if the high 3 days ago was the highest high during the prior
10 days.

<span
> 

<span
>Any help would be appreciated. 

<span
> 

<span
>Larry M. Powell

<span
> 

<span
>

Send
BUG REPORTS to bugs@xxxxxxxxxxxxx<font size=2
face="Courier New">
Send 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


Your use of
Yahoo! Groups is subject to the Yahoo!
Terms of Service. 




<font size=2
face="Courier New">Send BUG REPORTS to
bugs@xxxxxxxxxxxxx<span
>
Send 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


Your use of
Yahoo! Groups is subject to the Yahoo!
Terms of Service. 










Yahoo! Groups Sponsor


  ADVERTISEMENT 









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



Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.