PureBytes Links
Trading Reference Links
|
Stephane,
I don't think I am deaf. I really do not understand where do
you see the problem.
In the code below you iterate (using for loop) through SYMBOLS
in the watch list.
Though SYMBOLS not through bars. There are 3
symbols in the list and the count is three.
I don't see any problem here.
AddToComposite is completely different. This is not even like
comparing apples and oranges.
This is like comparing apples with car CD-player.
Best regards,Tomasz
Janeczkoamibroker.com
<BLOCKQUOTE
>
----- Original Message -----
<DIV
>From:
<A title=s.carrasset@xxxxxxxxxxx
href="">Stephane Carrasset
To: <A title=amibroker@xxxxxxxxxxxxxxx
href="">amibroker@xxxxxxxxxxxxxxx
Sent: Saturday, February 28, 2004 11:10
AM
Subject: Re: [amibroker] Re: empty scan
of a watchlist (?)
yes totally agrre with Dimitri and tomasz is
still deaf to this problem
stephane
<BLOCKQUOTE
>
----- Original Message -----
<DIV
>From:
DIMITRIS
TSOKAKIS
To: <A title=amibroker@xxxxxxxxxxxxxxx
href="">amibroker@xxxxxxxxxxxxxxx
Sent: Saturday, February 28, 2004 9:45
AM
Subject: [amibroker] Re: empty scan of
a watchlist (?)
Anthony,One important detail !The code counts the
symbols of WLxx, it DOES NOT give the population of WLxx in daily
basis.If you have 3 tickers in WL20 and there are some missing data, the
result will still be 3.The only safe way to count [and use it as a
daily function] is through AddToComposite() function.Try to delete
some quotations in WL20 stocks, run
theAddToComposite(1,"~count","v");Buy=0;for WL20 and then plot
the//Count tickers in watchlist function//For Indicator
BuilderWatchlistNumber=Param("Watchlist",20,0,63,1) ;//enter watchlist
numberfunction CountTickersInWatchList( Listnum ){// retrive
comma-separated list of symbols in watch listlist = GetCategorySymbols(
categoryWatchlist, listnum );for( i = 0; ( sym = StrExtract( list, i ) )
!= ""; i++ ){Count1=i;}return i;}Title="Watchlist #
"+WriteVal(watchlistnumber,1)+" has "+CountTickersInWatchList(
WatchlistNumber) + " Tickers";Plot(CountTickersInWatchList(
WatchlistNumber) ,"",1,1);Plot(Foreign("~count","v"),"",4,2); and
you will see.[We have a recent discussion with Stephane on the same
subject.]The reason should be simple: If WL20 includes IBM, INTC and
MSFT, then there should be somewhere an inside syntax
WL20="IBM,INTC,MSFT", in other words WL20 should be nothing but a
comma separated string. This fact does not include any info about
missing [or excessive] bars.Dimitris Tsokakis--- In
amibroker@xxxxxxxxxxxxxxx, "Anthony Faragasso" <ajf1111@xxxx>
wrote:> 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@xxxx>> 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@xxxx> > Send
SUGGESTIONS to suggest@xxxx> >
-----------------------------------------> > 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>
> Yahoo! Groups Links> >> >> >>
>> >> > > ---> Outgoing mail is
certified Virus Free.> Checked by AVG anti-virus system (<A
href="">http://www.grisoft.com).>
Version: 6.0.583 / Virus Database: 369 - Release Date:
2/10/2004Send 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
__________ NOD32 1.637 (20040228) Information
__________This message was checked by NOD32 antivirus system.<A
href="">http://www.nod32.comSend
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 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.
|