PureBytes Links
Trading Reference Links
|
Dimitris,
I can not see any question in your e-mail
so... I don't know what you expect me to answer to.
The picture itself looks as expected (see my previous response
about composite averages and counting
components on bar-by-bar basis).
Best regards,Tomasz Janeczkoamibroker.com
<BLOCKQUOTE
>
----- Original Message -----
<DIV
>From:
Dimitris
Tsokakis
To: <A title=amibroker@xxxxxxxxxxxxxxx
href="">amibroker@xxxxxxxxxxxxxxx
Sent: Saturday, February 28, 2004 3:06
PM
Subject: Re: [amibroker] Re: empty scan
of a watchlist (?)
Tomasz,
It seems we speak different languages, or you use another
piece of software !!
I created a WL20 with ^NDX, AAPL and AMZN, deleted the last
5 AAPL quotations , scan for WL20 the
AddToComposite(1<FONT
size=2>,"~count",<FONT
size=2>"V");Buy=0<FONT
size=2>;
and then pasted in IB y o u r c o d
e
//Count tickers in watchlist function
//For Indicator Builder
WatchlistNumber=Param(<FONT
size=2>"Watchlist",20<FONT
size=2>,0,<FONT
size=2>63,1)
;//enter watchlist number
function CountTickersInWatchList( Listnum )
{
// retrive comma-separated list of symbols in watch
list
list = GetCategorySymbols(
categoryWatchlist, listnum );
Counter=0; //
INITIALIZE COUNTER
for( i = <FONT
size=2>0; ( sym = <FONT
size=2>StrExtract( list, i ) ) != <FONT
size=2>""; i++ )
{
// TO COUNT BAR BY BAR YOU HAVE TO USE ARRAYS NOT
SCALAR AND USE FOREIGN TO FIND OUT HOLES
Counter=Counter + ( NOT IsNull(
Foreign( sym, <FONT
size=2>"C", False ) ) );
}
return Counter;
} Title="Watchlist # "+<FONT
size=2>WriteVal(watchlistnumber,<FONT
size=2>1)+" has "+
CountTickersInWatchList( WatchlistNumber) + "
Tickers";
Plot(CountTickersInWatchList( WatchlistNumber)
,"",1<FONT
size=2>,1);
Plot(Foreign<FONT
size=2>("~count",<FONT
size=2>"v"),""<FONT
size=2>,4,<FONT
size=2>2);
The result is in the att. gif.
This is my amibroker 4.50.6 graph.[My base index is ^NDX]
Dimitris Tsokakis
Send BUG REPORTS to
bugs@xxxxxxxxxxxxxSend SUGGESTIONS to
suggest@xxxxxxxxxxxxx-----------------------------------------Post
AmiQuote-related messages ONLY to: 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
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
ADVERTISEMENT
Click Here
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 the Yahoo! Terms of Service.
|