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

RE: [amibroker] Re: finding new highs in past days - help



PureBytes Links

Trading Reference Links




That 
is the really nice thing about AFL. One code set can work in both IB and AA. 
There is no need to split them up..
 Jayson 
<FONT face=Tahoma 
size=2>-----Original Message-----From: Rik Rasmussen 
[mailto:hrasmussen@xxxxxxxxx]Sent: Wednesday, February 05, 2003 7:16 
PMTo: amibroker@xxxxxxxxxxxxxxxSubject: RE: [amibroker] 
Re: finding new highs in past days - helpWould the code 
below be saved as two different AFL files?I saved the indicator portion 
as one file and the first portion as aseperate AFL file.I then 
applied the indicator and opened the other in AA and did a scan of 
awatchlist. When the scan completed and turned up one symbol, I clicked it 
inthe AA results list, which brought that symbol onto the chart and the 
arrowsin the price chart and indicator correctly point to the days on which 
thenew high occured.Is there any better way to implement and use 
this? It works great, but Ijust want to know if I am using it 
correctly.ThanksRik RasmussenStock Analyzer mailing list 
moderator<A 
href="">http://groups.yahoo.com/group/stockanalyzer/> 
-----Original Message-----> From: pacific5_au 
<pacific5_au@xxxxxxxxx> [mailto:pacific5_au@xxxxxxxxx]> Sent: 
Wednesday, February 05, 2003 6:57 PM> To: 
amibroker@xxxxxxxxxxxxxxx> Subject: [amibroker] Re: finding new highs in 
past days - help>>>> Try :>> Buy 
=Filter = HHV( High, 260 )== High AND Cum(1) >= 260;>> Sell= 
0;>> Filter = HHV( High, 260 )== High AND Cum(1) >= 
260;>>> AddColumn( High, "High" );> AddColumn( 
Close, "Close",1.2, IIf (Close < High,> colorRed,colorGreen 
));>> To identify recent new highs...set date range from 
ddmmyy  to> ddmmyy>> Indicator :>> 
x=IIf(C==HHV(C,260),1,0);> y=IIf(C==LLV(C,260),1,0);> 
Plot(C,"Price",2,styleCandle);>> Plot( EMA(C, 21), "EMA 21", 
colorBrightGreen );>>> 
PlotShapes(x*2,colorBrightGreen,L-(ATR(1)*2));> 
PlotShapes(y,colorRed,H+(ATR(1)*2));>> GraphXSpace = 
5;>> Title = "New 260 Day High with EMA 
21";>>> regards>> 
pacific>>> 
-----------------------------------------------------> --- In 
amibroker@xxxxxxxxxxxxxxx, "mroman59 <mroman59@xxxx>"> 
<mroman59@xxxx> wrote:> > I am using the following formular to 
find new highs, however I am> > not sure how to get AB to find stocks 
that hit new highs say two or> > three days ago.> >> 
> NewHigh=H>Ref(HHV(H,260),-1);> >> > Thank 
you>>> 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 <A 
href="">http://docs.yahoo.com/info/terms/>>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









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.