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

RE: [amibroker] Volume Data Field



PureBytes Links

Trading Reference Links





>>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 <FONT 
color=#800000 size=1>
function CountTickersInWatchList( Listnum ) 
{ 
// retrive comma-separated list of symbols 
in watch list 
list = GetCategorySymbols<FONT 
size=1>( categoryWatchlist, listnum ); 
Counter=0; <FONT 
color=#008000 size=1>// INITIALIZE COUNTER 
for( i = 
0; ( sym = <FONT 
color=#0000ff size=1>StrExtract( list, i ) ) != <FONT 
color=#ff00ff size=1>""; 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 
size=1>,4,<FONT 
color=#ff00ff size=1>1); 
GraphXSpace=10<FONT 
size=1>;
 


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 












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.