_b-clock modified V2





//+------------------------------------------------------------------+
//|                                            #OTCFX  b-clock.mq4  |
//|                                     Core time code by Nick Bilak |
//|        http://metatrader.50webs.com/         beluck[at]gmail.com |
//|                                  modified by adoleh2000 and dwt5 |
//|                                 Modified and improved by "OTCFX"                                          | 
//|
//| |                                                                |
//+------------------------------------------------------------------+

#property copyright "Copyright © 2005, Nick Bilak"
#property link      "http://metatrader.50webs.com/"

#property indicator_chart_window
#property indicator_color1 Aqua
extern color  BClockClr =  Aqua;
extern string myFont         = "Arial Bold" ;
extern string myFont2        = "Arial" ;
extern int    myFontSize     = 10 ;
 
//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+

int init()

  {
 
   //}   
   //if (TimeFrame<Period()) TimeFrame=Period();
  return(0);  
  }
   return(0);
   int deinit()
  {
   ObjectDelete("time");
   Comment("");
   
   
   return(0);
  }
  
//+------------------------------------------------------------------+
//| Custom indicator iteration function                              |
//+------------------------------------------------------------------+
int start()
  {
   int t=0; //c=0;
	double i;
   int m,s,k;
   m=Time[0]+Period()*60-CurTime();
   i=m/60.0;
   s=m%60;
   m=(m-m%60)/60;
   Comment( m + " minutes " + s + " seconds left to bar end");

	
   
   
  	
   ObjectDelete("time");
   
   if(ObjectFind("time") != 0)
   {
   ObjectCreate("time", OBJ_TEXT, 0, Time[0], Close[0]+ 0.0000);
   ObjectSetText("time", "                      <"+m+":"+s, myFontSize, "Verdana Bold", BClockClr);
   }
   else
   {
   ObjectMove("time", 0, Time[0], Close[0]+0.0005);
   
   
   
  }
  
   
   return(0);
  }
//+------------------------------------------------------------------+






Sample





Analysis



Market Information Used:

Series array that contains open time of each bar
Series array that contains close prices for each bar


Indicator Curves created:


Indicators Used:



Custom Indicators Used:

Order Management characteristics:

Other Features: