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

Re: [amibroker] NUMBER OF SYMBOLS IN WATCHLIST ( single )



PureBytes Links

Trading Reference Links





//Count tickers in watchlist function
//Anthony Faragasso
//July 4, 2003<FONT 
color=#ff0000 size=2>
//Single watchlist output
WatchlistNumber=<FONT face="Times New Roman" color=#ff00ff 
size=2>0;<FONT color=#ff0000 
size=2>//enter watchlist 
number<FONT face="Courier New" 
color=#800000 size=2>
function CountTickersInWatchList( 
Listnum )
{
// retrive comma-separated list of symbols in watch list<FONT 
face="Courier New" size=2>
list = <FONT face="Courier New" color=#0000ff 
size=2>GetCategorySymbols( 
categoryWatchlist, listnum );
 
for( i = <FONT 
face="Courier New" color=#ff00ff size=2>0<FONT face="Courier New" 
size=2>; ( sym = <FONT face="Courier New" color=#0000ff 
size=2>StrExtract( list, i ) ) != 
""<FONT 
face="Courier New" size=2>; i++ )
{
if( i == <FONT 
face="Courier New" color=#ff00ff size=2>0<FONT face="Courier New" 
size=2> ) i = <FONT face="Courier New" color=#ff00ff 
size=2>0;<FONT 
face="Courier New" color=#800000 size=2>
else i = i ;
}
return i; 
}
 
Filter=<FONT face="Courier New" color=#ff00ff 
size=2>1;<FONT 
face="Courier New" color=#0000ff size=2>
AddColumn(CountTickersInWatchList( 
WatchlistNumber),<FONT face="Courier New" color=#ff00ff 
size=2>"<FONT face="Times New Roman" color=#ff00ff 
size=2>",<FONT 
face="Courier New" color=#ff00ff size=2>1<FONT face="Courier New" 
size=2>);
 
 
 
<BLOCKQUOTE 
>
  ----- Original Message ----- 
  <DIV 
  >From: 
  mrdavis9 
  
  To: <A title=amibroker@xxxxxxxxxxxxxxx 
  href="">amibrokeryahoogroups 
  Sent: Friday, July 04, 2003 2:58 PM
  Subject: [amibroker] NUMBER OF SYMBOLS IN 
  WATCHLIST
  
  How can I  find  the number 
  of symbols  in a watch list?  Thanks in advance.  Ron 
  D
  Send BUG REPORTS to <A 
  href="">bugs@xxxxxxxxxxxxxSend SUGGESTIONS to 
  <A 
  href="">suggest@xxxxxxxxxxxxx-----------------------------------------Post 
  AmiQuote-related messages ONLY to: <A 
  href="">amiquote@xxxxxxxxxxxxxxx (Web 
  page: <A 
  href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check 
  group FAQ at: <A 
  href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
  Your use of Yahoo! Groups is subject to the <A 
  href="">Yahoo! Terms of Service. 
  
<BLOCKQUOTE 
><FONT 
  face="Courier New">---Outgoing mail is certified Virus 
  Free.Checked by AVG anti-virus system (<A 
  href="">http://www.grisoft.com).Version: 6.0.495 
  / Virus Database: 294 - Release Date: 
6/30/2003






Yahoo! Groups Sponsor


  ADVERTISEMENT 









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 the Yahoo! Terms of Service.