Click here to Login

How to create a composite index/indicator

Updated on 2011-12-19 03:06:41

Share |

Let us create a composite indicator that measures the number of stocks that are trading above their 30-bar moving average.


- Select "Tools" then "Composites"
- In the new form, click on the "Add" button
- Select all or some symbols then click on "Next"
- In "Formula" control, type:

composite = close > sma(30);

- Under the formula control, select:
Calculate the sum of the values added to the composite

This means that, for a particular bar/date, the value of the "composite" variable (equal to one if close is higher than SMA) is added to the global composite value for each stock.

composite = composite_stock_A + composite_stock_AA + composite_stock_AB...

- Click on "Next" then select a period and a time frame

The calculation is based on your stock data and consequently, it does not make sense to select an intraday period if you don't have intraday quotes data.

- Click on "Next", type the composite name (Example: StockAbv30) then click on "Next" to create your new composite index/indicator

Once the calculation is done, double click on a composite item to open the ticker symbol associated with it.

Note that each composite item creates a new symbol. The symbol name is equal to "_Composite Item Name".

Blog Post:
Composite Indicators

no reviews (Log in)

Other how-to articles

How to filter stocks in a market composite

How to create a custom trendline

How to create a custom trading indicator

How to create and trade a Neural Network model

How to create trading rules based on Put and Call volume data

How to create a mobile database/account

How to create histogram charts

How to create a real-time watchlist

How to create a log scale chart

Create an account
Affiliate Program
Contact Us
Trading Forum
How-to Lessons
About Us
Terms of Use

Copyright 2024
Social Media
Follow us on Facebook
Twitter Follow us on Twitter
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.