Click here to Login





                                                   Non-Equal weighted Index

  0

0
Rakla03
2016-01-12 11:17:42


Hi,
how do I create a Non-Equal-Weighted Index for a basket of assets?

e.g.

Asset A 60%
Asset B 15%
Asset C 25%



QuantShare
2016-01-13 01:50:15

  0

The composite tool allows you to create composites (Tools -> Composite).
For a market cap weighted index you would need access to market capitalization historical data.
In the composite formula, you just need to multiply the close price by a specific value (volume, market cap...).

Example:
composite = close * getdata("mktcap", "mktcap");



Rakla03
2016-01-13 03:08:40

  0

No, that�s not what I mean.I don�t want to use any market cap data.

I just want to calculate a composite based on the weights above.

I downloaded an example for an equal weighted index, now I search for an example for a non equal weighted.




QuantShare
2016-01-14 03:32:00

  0

Use something like this:
a = getseries("asset A", close) * 0.6 + getseries("asset B", close) * 0.15 + getseries("asset C", close) * 0.25;



No more messages
0




Reply:

No html code. URLs turn into links automatically.

Type in the trading objects you want to include: - Add Objects
To add a trading object in your message, type in the object name, select it and then click on "Add Objects"










QuantShare

Trading Items
Equal Weighted Index
Trade Weighted Exchange Index
Relative Vigor Index
Ratio of Equal-weighted to Market capitalization-weighted S&P 500...
Wells Fargo Cost of Savings Index - COSI

How-to Lessons
How to associate an index with a list of stocks
How to screen for stocks having a high correlation with the Dow J...
How to display the bar index of a stock on a chart
How to get stocks for a particular index using the global script
How to create a formula

Related Forum Threads
Renaming Equal Weighted Index
Equal Weighted Composite
Chart Pattern Index problem
adding bse and nse index
force index

Blog Posts
4 different weighted index calculation methods
Ranking stocks based on their correlation with the S&P 500 Index
Backtesting a Strategy Based on Bond and Stock Index ETFs
Create a Pivot Table that displays the Relative Strength Index - ...
Create a stock index or a trading indicator using the composite t...









QuantShare
Product
QuantShare
Features
Create an account
Affiliate Program
Support
Contact Us
Trading Forum
How-to Lessons
Manual
Company
About Us
Privacy
Terms of Use

Copyright © 2024 QuantShare.com
Social Media
Follow us on Facebook
Twitter Follow us on Twitter
Google+
Follow us on Google+
RSS Trading Items



Trading financial instruments, including foreign exchange on margin, carries a high level of risk and is not suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to invest in financial instruments or foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with trading and seek advice from an independent financial advisor if you have any doubts.