| 
 PureBytes Links 
Trading Reference Links 
 | 
Tomasz, 
I noticed that the 
EXAMPLE
/* note: if given watch list contains lots of symbols 
** performance may be poor 
*/ 
function CreateAverageForWatchList( listnum ) 
{ 
   // retrive comma-separated list of symbols in watch list 
   list = CategoryGetSymbols( categoryWatchlist, listnum ); 
   Average = 0; // just in case there are no watch list members 
   for( i = 0; ( sym = StrExtract( list, i ) ) != ""; i++ ) 
   { 
      f = Foreign( sym, "C" ); 
      if( i == 0 ) Average = f; 
      else Average = Average + f; 
   } 
   return Average / i; // divide by number of components 
} 
Plot( CreateAverageForWatchList( 6 ), "Avg of WL 1", colorGreen ); 
does not give accurate results when some members of the WL have 
missing data.
Is it possible to have the same results with
AddToComposite(C,"~c","C");
AddToComposite(1,"~count6","v");
Buy=0;
Plot(Foreign("~c","C")/Foreign("~count6","V"),"Average",4,8);
For the new year I wish Sales2004>=Sum(Sales,5) in yearly basis.
[one year later let us know if my wish will be true !!]
Dimitris Tsokakis
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 ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/GHeqlB/TM
---------------------------------------------------------------------~->
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:
 http://docs.yahoo.com/info/terms/ 
 |