PureBytes Links
Trading Reference Links
|
Stephane,
It works correct. Please check again.
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: Sunday, March 14, 2004 11:11
PM
Subject: Re: [amibroker] AmiBroker 4.52.0
BETA released
>>fixed problem with fixup=0 and handling multiple data holes in a
row
Dear Tomasz,
I am sorry, but it seems that the problem
that Dimitri describes with data holes is not fixed...
the function CountTickersInWatchList( Listnum
) does not match the addto composite count.
stephane
//Count tickers in watchlist function
//For Indicator Builder
WatchlistNumber=3
;//enter watchlist number
function CountTickersInWatchList( Listnum )
{
// retrive comma-separated list of
symbols in watch list
list = GetCategorySymbols<FONT
size=1>( categoryWatchlist, listnum );
Counter=0;
// INITIALIZE COUNTER <FONT
size=1>
for( i =
0; ( sym = <FONT
color=#0000ff size=1>StrExtract( list, i ) ) !=
""; i++ )
{
// TO COUNT BAR BY BAR YOU HAVE TO USE
ARRAYS NOT SCALAR AND USE FOREIGN TO FIND OUT HOLES
Counter=Counter + ( NOT <FONT color=#0000ff
size=1>IsNull( <FONT color=#0000ff
size=1>Foreign( sym, <FONT color=#ff00ff
size=1>"C", False ) ) );
}
return
Counter;
}
Title="Watchlist # "<FONT
size=1>+WriteVal<FONT
size=1>(watchlistnumber,1<FONT
size=1>)+" has "+
CountTickersInWatchList( WatchlistNumber) + <FONT color=#ff00ff
size=1>" Tickers";
Plot(CountTickersInWatchList( WatchlistNumber)
,"",<FONT
color=#ff00ff size=1>1,<FONT color=#ff00ff
size=1>1);
//AddToComposite( 1, "~Count", "x");
Plot(<FONT color=#0000ff
size=1>Foreign(<FONT color=#ff00ff
size=1>"~count",<FONT color=#ff00ff
size=1>"X"),<FONT color=#ff00ff
size=1>"",4<FONT
size=1>,1);
GraphXSpace=10<FONT
size=1>;
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 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.
|