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

Re: [amibroker] Re: empty scan of a watchlist (?)



PureBytes Links

Trading Reference Links

Dalengo,

Put this into Indicator builder, you can use  Parameter to select different
watchlist....the total count will be in the title.


//Count tickers in watchlist function

//For Indicator Builder

WatchlistNumber=Param("Watchlist",0,0,63,1) ;//enter watchlist number

function CountTickersInWatchList( Listnum )

{

// retrive comma-separated list of symbols in watch list

list = GetCategorySymbols( categoryWatchlist, listnum );

for( i = 0; ( sym = StrExtract( list, i ) ) != ""; i++ )

{

Count1=i;

}

return i;

}

Title="Watchlist # "+WriteVal(watchlistnumber,1)+" has "+

CountTickersInWatchList( WatchlistNumber) + " Tickers";



Anthony

----- Original Message ----- 
From: "dalengo" <dalengo@xxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Friday, February 27, 2004 12:29 PM
Subject: [amibroker] empty scan of a watchlist (?)


> Hi,
> Can someone help with the scan of a watchlist function?
> I am trying a trivial counting of entries in N100 watchlist
> by scanning the AFL AB 4.51.1:
>
> AddToComposite(1,"~COUNT","V");
> Buy=0;
>
> N100 is in List0, and all entries in List0 are valid (display
> properly).
> I use filter:list0 in AA to aim AA at list0 per User Guide,
> run the Scan and get nothing.
> Run for CURRENT stock, get ~COUNT=1, run for ALL STOCKS, get
> (in US-Stocks) ~COUNT=6592 on 2/23/04, again for one stock, get 1.
> Run again on List0 using Filter: get nothing (old result remains
> unchanged).
>
> What's wrong?
>
> Many thanks for your suggestions,
> -Dalengo
>
>
>
> 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 Links
>
>
>
>
>


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.583 / Virus Database: 369 - Release Date: 2/10/2004



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