[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

Would the code below be saved as two different AFL files?

I saved the indicator portion as one file and the first portion as a
seperate AFL file.

I then applied the indicator and opened the other in AA and did a scan of a
watchlist. When the scan completed and turned up one symbol, I clicked it in
the AA results list, which brought that symbol onto the chart and the arrows
in the price chart and indicator correctly point to the days on which the
new high occured.

Is there any better way to implement and use this? It works great, but I
just want to know if I am using it correctly.

Thanks

Rik Rasmussen
Stock Analyzer mailing list moderator
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: 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 http://docs.yahoo.com/info/terms/
>
>


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 http://docs.yahoo.com/info/terms/