How to hide a trading indicator from a particular time frame
Updated on 2011-10-08 04:20:58
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;
- 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