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

[amibroker] Re: How to count the number "1"



PureBytes Links

Trading Reference Links

Thanks Anthony.  I'll give it a go.

I wonder how big of a program nightmare it would be to be able to
perform a count using the column' name?  

I was thinking if I wanted to perform a bottom up analysis of the
market, I would enter the condition to obtain a true or false then
count them by saying something like Cum(columnname("Highs"));

BTW.  How are you making out on the Pattern stats? :))

Dominick



--- In amibroker@xxxxxxxxxxxxxxx, "Anthony Faragasso" <ajf1111@xxxx>
wrote:
> dom,
> 
> You could try this:
> 
> load into AA window....and Run **Scan** First, this sets up your
> AddtoComposite ticker....Then run explore....you should see the
count of how
> many tickers in your watchlist meet the NewHigh Criteria....
> 
> newhigh=H>Ref(HHV(C,250),-1) AND Close < 20 AND Volume > 200000;
> 
> Buy=0;
> 
> AddToComposite(NEWHIGH,"~NEWhIGH","X");
> 
> Filter=newhigh > 0;
> 
> AddColumn(ValueWhen(newhigh,C),"Close");
> 
> AddColumn(Foreign("~NEWhIGH","X"),"NEWhIGHS",1);
> 
> Anthony
> 
> 
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.511 / Virus Database: 308 - Release Date: 8/18/2003


------------------------ 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/l.m7sD/LIdGAA/qnsNAA/GHeqlB/TM
---------------------------------------------------------------------~->

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 

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