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

RE: [amibroker] Highest High or Lowest Low



PureBytes Links

Trading Reference Links




Larry,
 
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.
 
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:

H3DaysAgo = Ref( 
High, -3 )<FONT 
face="Courier New">;HHPrev10Days = 
Ref( HHV( High, 10 ), -4 
);Filter = <FONT 
face="Courier New">H3DaysAgo <SPAN 
class=031534604-31082003>>= 
HHPrev10Days;<FONT face="Courier New" 
color=#0000ff>AddColumn( H3DaysAgo<FONT 
face="Courier New">, <FONT face="Courier New" 
color=#ff00ff>"H3DaysAgo<FONT 
face="Courier New" color=#ff00ff> ", <FONT 
color=#ff00ff>1.2 
);AddColumn<FONT 
face="Courier New">( HHPrev10Days, <FONT 
face="Courier New" color=#ff00ff>"HHPrev10Days "<FONT 
face="Courier New">, <FONT face="Courier New" 
color=#ff00ff>1.2);

 
2) 
This is where the high of 3 days ago is equal too the highest high of the 
previous 10 days including today:
H3DaysAgo = <FONT 
color=#0000ff>Ref( High, -3 
);HHPrev10Days<FONT 
face="Courier New">FromToday = HHV( 
High, 1<FONT face="Courier New" 
color=#ff00ff>0 );Filter = 
H3DaysAgo == HHPrev10DaysFromToday;<FONT 
face="Courier New" color=#0000ff>AddColumn( 
H3DaysAgo, <FONT face="Courier New" 
color=#ff00ff>"H3DaysAgo<FONT 
face="Courier New" color=#ff00ff> ", <FONT 
color=#ff00ff>1.2 
);AddColumn<FONT 
face="Courier New">( HHPrev10DaysFromToday, 
"HHPrev10DaysFromToday 
", <FONT face="Courier New" 
color=#ff00ff>1.2<FONT 
size=2>);
Regards,William Peters<A 
href="">www.amitools.com
<FONT face=Tahoma 
size=2>-----Original Message-----From: larypowell 
[mailto:larypowell@xxxxxxxxxxxxx]Sent: August 30, 2003 4:21 
PMTo: amibrokerSubject: [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 
> Send 
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 
Your use of Yahoo! Groups is subject to the <A 
href="">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.