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

Re: [amibroker] Data Comparison



PureBytes Links

Trading Reference Links

My understanding is that if you want to find out if the close is equal to
the highest high that has occurred  in the last 250 days, then your code
should look like the one below, but it will only give you a result if  the
symbol closed at the high of the day. That would be a very bullish sign. I
ran this on TC2k data, with a filter of ma(v,50)>100000 and C<100, and I got
one hit.  As I suspected, it was almost touching  the top of the bollinger
band, so this would not be a good time to take a position. Some version of
this may be a good way to to find symbols of uptrending symbols that you
could save in watchlists.  You can then run scans on these watchlists of
uptrending stocks in order to find those symbols that have just strated up
again after having pulled back.  You will obvilusly get a lot more hits if
you greatly reduce the 250 day requirement.  The code is
>>>Buy=C==HHV(H,250);  Ron D

=================================================================
----- Original Message ----- 
From: "msc626" <msc626@xxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Thursday, January 01, 2004 10:32 AM
Subject: [amibroker] Re: The first new high in 250 bars


 Is this what you're looking for?
 Buy=C>Ref(HHV(H,250),-1);

 dale b

 --- In amibroker@xxxxxxxxxxxxxxx, "prophesier2002"
prophesier2002@xxxx> wrote:
Buy=Cross(C,Ref(HHV(H,250),-1))

I use this but it does not buy at the first high in 250 bars.
 What do I have to change for it to buy only at the first new high?

 Regards David



Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
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 

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/GHeqlB/TM
---------------------------------------------------------------------~->

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/