PureBytes Links
Trading Reference Links
|
Hey Terry thanks for the help. That worked great, exactly what I was
looking for.
--- In amibroker@xxxxxxxxxxxxxxx, "Terry" <MagicTH@xxxx> wrote:
>
> The Filter variable control what shows up in an Explore. Try this:
>
> //Stocks at 52 week high
> Filter = C == HHV(C,252); //252 is ~ one year of data
>
> //Stocks within 10% of 52 week high
> Filter = C >= HHV(C,252) * .9;
>
> Then you need at least 1 AddColumn statement following this. Use
these:
>
> AddColumn(HHV(C,252),"52 week High");
> AddColumn(C,"Close");
>
> The above are two separate explores since combining them into one
> Explore will give the same results at just the second one. Here's
the
> entire code:
>
> //Stocks within 10% of 52 week high
> Filter = C >= HHV(C,252) * .9;
> AddColumn(HHV(C,252),"52 week High");
> AddColumn(C,"Close");
>
> Be sure to choose "all symbols" and "n last days" = 1 (so you just
get
> today's results)
> --
> Terry
>
> -----Original Message-----
> From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx]
On
> Behalf Of imresident2001
> Sent: Friday, December 02, 2005 23:35
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] 52 week highs
>
> Hey everyone. could some one tell me how to write the code for an
> exploration to find all stocks at 52 week highs, and also stocks
> within 10% of 52 week high.Thanks
>
------------------------ Yahoo! Groups Sponsor --------------------~-->
Try Online Currency Trading with GFT. Free 50K Demo. Trade
24 Hours. Commission-Free.
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/GHeqlB/TM
--------------------------------------------------------------------~->
Please note that this group is for discussion between users only.
To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
For other support material please check also:
http://www.amibroker.com/support.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/
|