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

[amibroker] Re: 250 Day New Highs



PureBytes Links

Trading Reference Links

Gee I should post my questions more often because as soon as I do I
find the answer somewhere. 

In this case I found the answers in the Yahoo Amibroker TS group.

Graham posted this:
c >= ref( highest(h), -1 )

and 

Rakesh posted this:
aa=lastvalue(barindex());//total number of bars in database
bb=hhv(h,-1*aa);//highestvalue in database
bb=ref(bb,-1);//highestvalue in database up until yesterday
cc=cross(c,bb);//today's close greater than highest high
buy=cc;
filter=buy;
addcolumn(c,"close",1.2);
HTH

I would still welcome any comments.

Regards,

Dave

--- In amibroker@xxxxxxxxxxxxxxx, "marketmonk777" <dlittner@xxxx> wrote:
>
> Hi folks,
> 
> I noticed something interesting while scanning for 250 day new highs.
>  It seems that my scan does not capture any new highs for which the
> stock has not traded a full 250 days.   Take for example a recent IPO
> STP.  It did not show up on my list.
> 
> My line for looking for a new closing high is:
> NH = C >= HHV( Close, 250);	
> 
> How can I modify the code to capture these stocks that have not yet
> traded a full 250 days?
> 
> Also, I was thinking about creating a scan that would locate "All
> Time" new highs. 
> 
> Regards,
> 
> Dave
> MarketMonk777
> a.k.a. RedEyes
>







------------------------ 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/