--- In [email protected], "carlacash26" <[EMAIL PROTECTED]>
wrote:
>
> Hi, hope you could help me in creating my own custom index.
>
> I have 8 stocks that I would like to include in the index, and each
> of the stocks have their own weighting in the index;
Hello carlacash,
Tomasz provided some code that makes a good starting point at
message #92589.
Weigted composite:
weight = IIF( Name() == "MSFT", 5,
IIF( Name() == "INTC", 4,
IIF( Name() == "AAPL", 6,
IIF( Name() == "GOOG", 7,
0 ) ) ) );
AddToComposite( weight * array, "~COMPNAME", "X" );
AddToComposite( weight , "~COMPNAME", "V" );
Regards,
Brian_Z