Download MetaTrader 5

How to hide indicator value from Data Window?

To add comments, please log in or register
oktan
13
oktan  
Hello there.
Indicator gives me totaly 4 variables, which are drawn in indicator window. But i need only 1 of them to be avaible in Data Window. How can i hide variables i do not want to see in Data Window?
Thanks.
Russell
287
Russell  
SetIndexStyle(0, DRAW_NONE);

hth
oktan
13
oktan  
Hi Russel, i want to see lines in "indicator window" but want to hide value of lines only in "data window".
Slava
Moderator
6924
Slava  

Indicator properties - Visualization tab - Show in the Data Window check box

oktan
13
oktan  
Ahh, i did not now about that posibility stringo, thanks! :-)

Anyway, i have 4 lines drawn in indicator window. And i want to see 1 of them in "data window".
So i want to hide 3 other values from "data window", not all of them.
okwh
1634
okwh  

#property indicator_buffers 1

init()
{
IndicatorBuffers(4);

................

brian
4
brian  

The way to do this is to use SetIndexLabel(1,NULL);


If the index label is set to NULL then that index will not show in the DataWindow nor will the value show in the chart subwindow at the indicator name. In your case set 3 labels to NULL and leave the 4th label alone or give it a name if you wish.

tazosmr
64
tazosmr  

SetIndexLabel(1,NULL);             // for name

SetIndexStyle(1, DRAW_NONE);       //for lines

To add comments, please log in or register