//+------------------------------------------------------------------+
//|                                                 hedge_remove.mq4 |
//|                      Copyright © 2011, MetaQuotes Software Corp. |
//|                                        http://www.metaquotes.net |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2011, MetaQuotes Software Corp."
#property link      "http://www.metaquotes.net"

//+------------------------------------------------------------------+
//| script program start function                                    |
//+------------------------------------------------------------------+
int start()
  {
//----
// this script will hide oblect name that not start with Letter D on  Daily, weekly, monthly chart 
//----


      int obj_total= ObjectsTotal();  
   for (int k= obj_total; k>=0; k--) 
      {
      string name= ObjectName(k);    
      if (StringSubstr(name,0,1) !="D"){
     ObjectSet(name, OBJPROP_TIMEFRAMES, OBJ_PERIOD_M1 + OBJ_PERIOD_M5 + OBJ_PERIOD_M15 + OBJ_PERIOD_M30 + OBJ_PERIOD_H1 + OBJ_PERIOD_H4);
      }
      
      }   
      

   return(0);
  }
//+------------------------------------------------------------------+


