PureBytes Links
Trading Reference Links
|
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/
|