Click here to Login





How to create a formula

Updated on 2012-02-13 05:02:33

Share |

A formula contains one or several indicators and functions. A formula is used to plot time-series on a chart, create composites/market indicators, screens or backtest trading systems.

A formula should be implemented using the QuantShare language.

To update a chart formula:

- Right click on a chart
- Select "Edit Formula" to open the formula editor

Example:
a = rsi(14) - rsi(2);
plot(a, "RSI", colorGreen);


The above formula calculates then plots the difference between two relative strength index indicators with two different periods.

To save a formula, select "File" then "Save Formula".

To display a list of formulas:

- Select "View" in the main menu then click on "Formulas"
- The "Formulas" form displays all formulas that are stored under the selected folder
- Double click on a formula to add it to a chart
- Right click on a formula to open a menu




It is also possible to open a formula directly from the formula editor control:

- Click on the "Folder+" icon/button (Next to Add Indicator/Method)
- Select "Load Formula"



Note that the formula editor control is shared by many plug-ins including the charting, screening, composites and simulator plug-in.








no reviews (Log in)







Other how-to articles




How to create a custom trading indicator





How to create histogram charts





How to create a real-time watchlist





How to create a custom trendline





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





How to create a composite index/indicator





How to create a mobile database/account





How to create a moving average of an indicator





How to create a watchlist







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.