Traderji.com - Discussion forum for Stocks Commodities & Forex

How to create Index Sector Chart

Discuss How to create Index Sector Chart at the MetaStock within the Traderji.com - Discussion forum for Stocks Commodities & Forex; With Oxy's guidance in the matter this thread has the potential to become one of ...


Go Back   Traderji.com - Discussion forum for Stocks Commodities & Forex > TOOLS & RESOURCES > Software > MetaStock

Notices


Advertise Here

Reply
 
Thread Tools
Sponsored Links
  #11  
Old 21st April 2008, 01:43 PM
Member
 
Join Date: Nov 2006
Posts: 1,412
Appreciation: 49
kkseal is on a distinguished road
Default Re: How to create Index Sector Chart

With Oxy's guidance in the matter this thread has the potential to become one of the most interesting & valuable threads in Traderji. Looking forward to it.

Regards,
Kalyan.

P.S. My request is to keep the discussion & methodology as general as possible & not make it MS specific.

Last edited by kkseal; 21st April 2008 at 01:49 PM.
Reply With Quote
  #12  
Old 21st April 2008, 07:23 PM
Member
 
Join Date: Apr 2007
Location: hyderabad
Posts: 63
Appreciation: 20
mdrali2001@yahoo.com is on a distinguished road
Default Re: How to create Index Sector Chart

HI
is it possible to take today's closing prices of index's make them them base price and waiigth's remain same as before.

example assuming today the nifty is closed some what say, 5010 and wee take it as base price and so on is it possible ?

Ali
Reply With Quote
  #13  
Old 21st April 2008, 08:22 PM
Member
 
Join Date: Sep 2006
Location: Chennai
Posts: 898
Appreciation: 63
oxusmorouz will become famous soon enough
Default Re: How to create Index Sector Chart

Quote:
Originally Posted by raosrinivas View Post
oxy, i also need help calculating the index, please let me know all the building components that you need, INDEX, INDEX Components, What is the basis for allocating different weights for different individual components ? what else information you need, i will setup the components by wednesday and let you know we can start working from thursday. while i can build myself
Shall make a detailed post in a couple of days.

Essentially, before starting to build the index, the question you must ask yourself is "Why I am creating this index?". Weight age of the components in the index will primarily depend upon this.
The purpose may be to track the movement of a particular sector (So you may prefer to weigh it according to market cap/free float) or you may seek to create the index to define your initial portfolio and track your selection and allocation abilities, and also note the extent to which you have out/under performed the index (in which case you may prefer a fixed weight for each component based on subjective perceptions or an equally weighted index).

Once you've defined the purpose, the next step is to identify the stocks you'd like in the index. Care must be taken in order to ensure that the stocks have data history which is sufficiently more in duration than the gap between current date and base date. Otherwise, there will be disruption in the index values. For eg, if your base date for the index is 1 Jan 2005, and one of the stocks is listed in 2007, the values between 2005 and 2007 will be deflated to the extent of influence.

Method of calculation can be:
1) Arithmetic (where prices are taken in absolute terms)
2) Logarithmic (where percentage change from the base date is taken)
Log method is more useful and practial.

Types of weighing the index can be:
1) Equally weighted
2) Weighted according to discretion
3) Weighted using any other available data, which can be market cap (price*no of shares) or free float(price* liquid public holding) and so on.

The type of weighing can be mixed with the method of calculation to arrive at the desired type of index. This isn't exactly exhaustive but I hope it served some purpose.

Posting an example of an equally weighted logarithmic price index for cements with base date of 1 Jan 08.

Quote:
a1:= Security("E:\New MS Data\NSE\ACC",C);
a2:= Security("E:\New MS Data\NSE\ambujacem",C);
a3:= Security("E:\New MS Data\NSE\ultracemco",C);
a4:= Security("E:\New MS Data\NSE\indiacem",C);
a5:= Security("E:\New MS Data\NSE\madrascem",C);
a6:= Security("E:\New MS Data\NSE\shreecem",C);
a7:= Security("E:\New MS Data\NSE\birlajute",C);
a8:= Security("E:\New MS Data\NSE\sanghiind",C);
a9:= Security("E:\New MS Data\NSE\dalmiacem",C);
a10:= Security("E:\New MS Data\NSE\prismcem",C);
a11:= Security("E:\New MS Data\NSE\jkcement",C);
a12:= Security("E:\New MS Data\NSE\ramcoind",C);

x:= DayOfMonth() = 1 AND Month() = 1 AND Year() = 2008;

100*(a1/ValueWhen(1,x,a1) + a2/ValueWhen(1,x,a2) + a3/ValueWhen(1,x,a3) + a4/ValueWhen(1,x,a4) + a5/ValueWhen(1,x,a5) + a6/ValueWhen(1,x,a6) + a7/ValueWhen(1,x,a7) + a8/ValueWhen(1,x,a8) + a9/ValueWhen(1,x,a9) + a10/ValueWhen(1,x,a10) + a11/ValueWhen(1,x,a11) + a12/ValueWhen(1,x,a12))/12
Any suggestions/criticisms will be appreciated.
Reply With Quote
  #14  
Old 21st April 2008, 08:29 PM
Member
 
Join Date: Sep 2006
Location: Chennai
Posts: 898
Appreciation: 63
oxusmorouz will become famous soon enough
Default Re: How to create Index Sector Chart

Quote:
Originally Posted by beginner_av View Post
By the way, are you using Neoticker now?
No sir.
Reply With Quote
  #15  
Old 21st April 2008, 08:40 PM
Member
 
Join Date: Oct 2006
Posts: 341
Appreciation: 20
raosrinivas is on a distinguished road
Default Re: How to create Index Sector Chart

oxy, we will do it once you are done with your commitments, starting thursday. it will be better to do it in english and excel.
Reply With Quote
  #16  
Old 21st April 2008, 10:08 PM
Member
 
Join Date: Nov 2006
Posts: 1,412
Appreciation: 49
kkseal is on a distinguished road
Default Re: How to create Index Sector Chart

A query on the percentage chng aspect w.r.t. Oxy's code :-

For the %chng in (security)a1, we should be taking 100*(a1-ValueWhen(1,x,a1))/ValueWhen(1,x,a1)
& same for the other securities.

Having said that i've seen similar formulas for ROC.

For a M-cap weighted index do we similarly take the %chng in M-cap from a base date divided by the number of index constituents??

Regards,
Kalyan.

P.S. Oxy don't bother to answer till your Exams are over.

Last edited by kkseal; 21st April 2008 at 10:20 PM.
Reply With Quote
  #17  
Old 21st April 2008, 10:11 PM
Member
 
Join Date: Nov 2006
Posts: 1,412
Appreciation: 49
kkseal is on a distinguished road
Default Re: How to create Index Sector Chart

That leaves two things in the agenda for further discussions (post Wednesday off-course after Oxy is free)

i) Weighting by M-Cap
ii) Weighting by Free-float M-Cap

This i think will be enough for our purpose

Regards,
Kalyan.
Reply With Quote
  #18  
Old 22nd June 2008, 07:55 PM
Member
 
Join Date: Sep 2007
Posts: 14
Appreciation: 20
charankpm is on a distinguished road
Default Re: How to create Index Sector Chart

ajay

If you could move this thread with little more stuff it will be better for beginners like me to understand the sector rotation

Regards

charan
Reply With Quote
Sponsored Links


Reply

Bookmarks


Advertise Here


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


All times are GMT +5.5. The time now is 03:23 AM.

Indemnity, Disclaimer & Disclosure Notice:
• By visiting Traderji.com you indicate your acceptance of our Forum Rules Disclaimer & Disclosure and indemnify Traderji.com, its associates and related parties of all claims howsoever resulting from the usage of the forum.
Disclaimer: Trading or investing in stocks & commodities is a high risk activity. Any action you choose to take in the markets is totally your own responsibility. Traderji.com will not be liable for any, direct or indirect, consequential or incidental damages or loss arising out of the use of this information.
Disclosure: The information in this forum is neither an offer to sell nor solicitation to buy any of the securities mentioned herein. The writers may or may not be trading in the securities mentioned.
• All names or products mentioned are trademarks or registered trademarks of their respective owners.
General Content Disclaimer Notice:
In light of our policy of encouraging candid, open exchanges of views and the rapid distribution of information originating from many sources, Traderji.com cannot determine the accuracy of information that may be uploaded to the forum. Opinions, advice and all other information expressed by participants in discussions are those of the author. You rely on such information at your own risk. You are urged to seek professional advice for specific, individual situations and not rely solely on advice or opinions given in the discussions. Since Traderji.com is an open and free discussion forum, any comments made by members of this forum in their posts reflect their own views and not of the owner or administrator of Traderji.com. Thus the owner/administrator indemnify themselves of all claims whatsoever and will not be liable or responsible for any members comments/views in this forum Traderji.com. If you find any objectionable or offensive posts made by members of this forum which you would like to bring to our notice for removal then please Contact Us.
 


Copyright © 2001 - 2008, Traderji.com All Rights Reserved.

Recommended Websites - www.TradersEdgeIndia.com - www.TradingPicks.com - www.MasterOfTrading.com