How to hide indicator value from Data Window?

 
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.
 
SetIndexStyle(0, DRAW_NONE);

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

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

 
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.
 

#property indicator_buffers 1

init()
{
IndicatorBuffers(4);

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

 

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.

 

SetIndexLabel(1,NULL);             // for name

SetIndexStyle(1, DRAW_NONE);       //for lines

 

SetIndexLabel(1,NULL);

is working in MT4, but

PlotIndexSetString(1,PLOT_LABEL,NULL);

does not work under MT5

 
Philippe Pauleau #: does not work under MT5

Understand the difference between INDICATOR_CALCULATIONS and INDICATOR_DATA. SetIndexBuffer - Custom Indicators - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5

Why did you post your MT5 question in MQL4 section, (bottom of the Root page) instead of the MT5 Indicators section?
Next time, post in the correct place.

Reason: