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

RE: [amibroker] Re: New Highs Formula



PureBytes Links

Trading Reference Links

You cold always try using timeframe functions

Timeframest( inweekly );
Weekhigh = hhv(h,52);
Timeframerestore();

Oldhigh = Timeframeexpand(weekhigh,inweekly);


Filter = h >= ref(oldhigh,-1) ;
Addcolumn( ref(oldhigh,-1), "Old High", 1.2 );
Addcolumn( H, "New High", 1.2 );


Cheers,
Graham
http://e-wire.net.au/~eb_kavan/

-----Original Message-----
From: Gerard Carey [mailto:gcfinance@xxxxxxxxxxx] 
Sent: Saturday, January 01, 2005 12:22 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Re: New Highs Formula



Hi sebre,
Insert this in IB and set chart to weekly view. New 52 wk highs are 
signalled when the plot hits 1

// Closing at New 52 Week Highs
nh_TH= 52; /* Set Time Horizon,  */ 
Plot(HHVBars(C,nh_TH)==0,"  52 Week Highs",4,1) ; 

To 'Explore' for stocks closing at 52wk Highs use the following 
formula.

// EXPLORATION for stocks closing at New 52 week Highs
// In the 'Settings' window set periodicity to weekly
nh_TH= 52; /* Set Time Horizon,  */ 
Buy=Filter=HHVBars(C,nh_TH)==0 AND V*C>50000 ; 
AddColumn(C,"Close");
AddTextColumn(FullName(),"NAME");

Regds
Gerard

--- In amibroker@xxxxxxxxxxxxxxx, "sebre" <visionary@xxxx> wrote:
> 
> 
> What formula would identify if the current close was a new 52 week 
> high?






Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at:
http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Yahoo! Groups Links



 




------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/