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

[amibroker] AddToComposite / AB 4.3.1.1



PureBytes Links

Trading Reference Links





Has anyone tried using AddToComposite with AB ver 
4.3.1.1
Used the code below, but can not get a value for 
Tot_Cap. 
 
Can not find the composite in Group 253 where all 
the others are.
 
<FONT face=Arial 
size=2>***********************************************************************************
// File: EXP - NDX Weighing// Calculate the 
component weighing of NDX
 
Shares = GetExtraData("Shares");Mkt_Cap = 
Shares * Close / 1000000;
 
<FONT face=Arial 
size=2>AddToComposite(Mkt_Cap,"~NDX_MktCap","C",7);
 
Tot_Cap = Foreign("~NDX_MktCap","C");
 
Weight  = Mkt_Cap / Tot_Cap * 
100;
 
Filter = 
1;AddColumn(Close,"Close");AddColumn(Shares,"Shares");AddColumn(Mkt_Cap,"MktCap");AddColumn(Tot_Cap,"TotCap");     
// <=== returns a blank 
columnAddColumn(Weght,"Weight");






Yahoo! Groups Sponsor


  ADVERTISEMENT









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



Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.