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

Re: [amibroker] number of stocks in each WL



PureBytes Links

Trading Reference Links

load into AA

select current ticker

n last quotations

n=1

click explore

 

//Count tickers in watchlist function

//Anthony Faragasso

//July 4, 2003

//Multiple watchlist output

//Add watchlist here

WatchlistNumber0=0;//enter watchlist number

WatchlistNumber1=1;

WatchlistNumber2=2;

WatchlistNumber3=3;

 

/*********************************************/

function CountTickersInWatchList( Listnum )

{

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

list = GetCategorySymbols( categoryWatchlist, listnum );

 

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

{

if( i == 0 ) i = 0;

else i = i ;

}

return i;

}

//Sample header output for watchlist number with text read out.

/*text0=WriteIf(watchlistnumber0==0,"NDX","");

text1=WriteIf(watchlistnumber1==1,"DJI","");

text2=WriteIf(watchlistnumber2==2,"DJT","");

text3=WriteIf(watchlistnumber3==3,"DJU","");*/

Filter=1;

//Columns used for text read out

/*AddColumn(CountTickersInWatchList( WatchlistNumber0),text0,1);

AddColumn(CountTickersInWatchList( WatchlistNumber1),text1,1);

AddColumn(CountTickersInWatchList( WatchlistNumber2),text2,1);

AddColumn(CountTickersInWatchList( WatchlistNumber3),text3,1);*/

//Columns used for watchlist Number read out

AddColumn(CountTickersInWatchList( WatchlistNumber0),"Watchlist #"+WriteVal(watchlistnumber0,1),1);

AddColumn(CountTickersInWatchList( WatchlistNumber1),"Watchlist #"+WriteVal(watchlistnumber1,1),1);

AddColumn(CountTickersInWatchList( WatchlistNumber2),"Watchlist #"+WriteVal(watchlistnumber2,1),1);

AddColumn(CountTickersInWatchList( WatchlistNumber3),"Watchlist #"+WriteVal(watchlistnumber3,1),1);

 

----- Original Message -----
From: nickt75
Sent: Saturday, August 06, 2005 3:59 PM
Subject: [amibroker] number of stocks in each WL

Hi,

I would like to know the number of stocks in each watchlist.  Is there
a way to find it without doing a manual count?

thanks in advance for any help.

NickT



No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.338 / Virus Database: 267.10.1/64 - Release Date: 8/4/2005


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




No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.338 / Virus Database: 267.10.1/64 - Release Date: 8/4/2005