Click here to Login




How to create a ratio indicator using QS Trading Software

Updated on 2010-11-16





If you want to create ratio indicators then all you need is the composite tool and four or five minutes of your time. Advance Decline Ratio, Volume Ratio of Advancing to Declining stocks, AAII Bull Ratio Sentiment Index, Gold to Silver Ratio are examples of popular ratio indicators that were built by dividing one time-series or indicator by another one. The Volume Ratio of Advancing to Declining stocks for example results from the division of the total volume of advancing stocks by the overall volume of declining stocks.

This post will show you the easiest and fastest way to create ratio indicators using QuantShare trading software and its composite tool. For this example we are going to create the Advance Decline Ratio, but first you need to download historical EOD data of the number of advancing and declining stocks. Here is the trading item link: Advance-Decline-Unchanged issues for NYSE, AMEX and NASDAQ.


How to Create a Ratio Indicator

To create a new composite, select Tools then Composites. In the composite form, click on the "Add" button. In the symbols list, you must enter only one symbol. The other symbol will be referenced using the "Ticker" function of the QuantShare language.

Add a "Symbols Info" new condition then click on the cell under the "Values" column and type "^ADVANCE-ISSUES-AMEX" in the cell under it. Click on "Next" to move to the composite formula screen.

We must now calculate the total number of advancing stocks and declining stocks from the three major US exchanges (NYSE, NASDAQ and AMEX). In order to do this, we must reference each symbol data using the "Ticker" function and then sums the number of advancing / declining issues for each stock market. After that we divide the total number of advancing stocks (from all U.S. exchanges) by the total number of declining stocks and assign the result to the "composite" variable.

In the calculation method select "the sum of the values added to the composite". Note that this isn't really very important because the "composite" variable will be calculated only once (remember that we have only one symbol in our symbols list).

To complete the process, click on "Next" twice, type the ratio indicator name, then click again on "Next". A symbol with the composite name will be created just after the composite calculation is completed (The symbol is preceded by "_". This makes composites easily recognizable)











no comments (Log in)

QuantShare Blog
QuantShare
Search Posts




QuantShare
Recent Posts

Create Graphs using the Grid Tool
Posted 1480 days ago

Profile Graphs
Posted 1585 days ago

QuantShare
Previous Posts

QS Trading Software: Global Script
Posted 5171 days ago

Stock Market Prediction
Posted 5199 days ago

How to search for a trading item
Posted 5220 days ago


More Posts

Back







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.