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

Re: [amibroker] Creating own Index?



PureBytes Links

Trading Reference Links

Hello,
 
Use AddToComposite
 
To use different weights for each symbol use if( name() = "..." ) construct.
 
For example:
 
weight = 10; // default weight
 
if( Name() == "MSFT" ) weight = 20;
if( Name() == "AAPL" ) weight = 5;
if( Name() == "INTC" ) weight = 15;
 
/// and so on.
 
AddToComposite( weight * Close, "~MyComposite", "X" );
 

Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message -----
From: pilpilonim
Sent: Saturday, April 15, 2006 11:08 AM
Subject: [amibroker] Creating own Index?

How can I create my own index based on several stocks and defining
each stock its percentage in the index ?

Thanks





Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.html





YAHOO! GROUPS LINKS