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 -----
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