Download MetaTrader 5
To add comments, please log in or register
Publish programs in Code Base. Improve your rating!
oktan
13
oktan 2010.05.03 13:19 
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
286
Russell 2010.05.03 14:27  
SetIndexStyle(0, DRAW_NONE);

hth
oktan
13
oktan 2010.05.04 08:08  
Hi Russel, i want to see lines in "indicator window" but want to hide value of lines only in "data window".
Slawa
Moderator
6679
Slawa 2010.05.04 08:25  

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

oktan
13
oktan 2010.05.04 08:28  
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
1629
okwh 2010.05.04 08:42  

#property indicator_buffers 1

init()
{
IndicatorBuffers(4);

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

brian
4
brian 2010.07.22 20:41  

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 2015.11.28 09:54  

SetIndexLabel(1,NULL);             // for name

SetIndexStyle(1, DRAW_NONE);       //for lines

/
To add comments, please log in or register