How to hide tooltip on any indicator?

 

When i code an indicator it blocks the candlestick tooltip so i find inconvenient to read OHLC info as it does not work for OHLC but it shows indicator occupied info

So how can i remove showing any info overridden by indicator and continue showing default tooltip on each candles?

 
Arpit T:

When i code an indicator it blocks the candlestick tooltip so i find inconvenient to read OHLC info as it does not work for OHLC but it shows indicator occupied info

So how can i remove showing any info overridden by indicator and continue showing default tooltip on each candles?

You mean with objects obstructing the candle ? (i.e a canvas infront of the price action)

Try a minus z - order if its an object , selectable false , tooltip NULL

 
Lorentzos Roussos #:

You mean with objects obstructing the candle ? (i.e a canvas infront of the price action)

Try a minus z - order if its an object , selectable false , tooltip NULL

Thanks, I have tried and it works but not smooth, i have to push hard cursor many times to show default candle ohlc tooltip

but for other candles it works very smoothly


//+------------------------------------------------------------------+
//|                                                      ProjectName |
//|                                      Copyright 2060, CompanyName |
//|                                       http://www.companyname.net |
//+------------------------------------------------------------------+

#property version   "1.00"
#property indicator_chart_window
//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int OnInit() {
//--- indicator buffers mapping

//---
   return(INIT_SUCCEEDED);
}
//+------------------------------------------------------------------+
//| Custom indicator iteration function                              |
//+------------------------------------------------------------------+
int OnCalculate(const int rates_total,
                const int prev_calculated,
                const datetime &time[],
                const double &open[],
                const double &high[],
                const double &low[],
                const double &close[],
                const long &tick_volume[],
                const long &volume[],
                const int &spread[]) {
//---
   string name="rect";
   if(ObjectFind(0,name)<0 )
      ObjectCreate(0,name,OBJ_RECTANGLE,0,0,0,0);
   ObjectSetInteger(0,name,OBJPROP_SELECTABLE,false);
   ObjectSetInteger(0,name,OBJPROP_SELECTED,false);
   ObjectSetInteger(0,name,OBJPROP_HIDDEN,false);
   ObjectSetInteger(0,name,OBJPROP_FILL,true);
   ObjectSetInteger(0,name,OBJPROP_BACK,true);
   ObjectSetString(0,name,OBJPROP_TOOLTIP,"\n");
   ObjectSetInteger(0,name,OBJPROP_ZORDER,-1);
//---
   ObjectSetInteger(0,name,OBJPROP_COLOR,clrCornflowerBlue);
   ObjectSetInteger(0,name,OBJPROP_TIME,0,iTime(NULL,0,5));

   ObjectSetInteger(0,name,OBJPROP_TIME,1,iTime(NULL,0,5+1));

   ObjectSetDouble(0,name,OBJPROP_PRICE,0,iHigh(NULL,0,5));
   ObjectSetDouble(0,name,OBJPROP_PRICE,1,iLow(NULL,0,5+1));
//--- return value of prev_calculated for next call
   return(rates_total);
}
//+------------------------------------------------------------------+