Click here to Login




How to hide a trading indicator from a particular time frame

Updated on 2011-10-08





Working with intraday data is different from working with EOD data in many aspects and ways. Sometimes you plot an indicator in an intraday chart that has little or no value when applied to EOD data. In this particular case, you want to hide it when you switch to the EOD view (Right click on the chart then "Switch to Historical").

Example of such function is the next one which returns one when the current bar hour is equal to two:
a = hour() == 2;
plot(a, "");



Steps:

- Select a chart then right click on it
- Select "Edit formula"
- Use the left and right arrow to choose the formula you want to hide from a particular period type
- Type the following line:

UpdateSettings("Hide Formula in EOD Chart", 1);

This function instructs QuantShare trading software to ignore the formula when you switch to EOD view.

Other available values:
Hide Formula in Intraday Chart: Hide the formula when intraday view is selected
Hide Formula in Tick Chart: Hide the formula in a tick chart










no comments (Log in)

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.