//+------------------------------------------------------------------+ //| #OTCFX b-clock_SW.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_separate_window //---- extern color BClockClr= clrAqua; extern color ClksColor= clrLime; extern color TDCOL=clrAqua; extern bool show_Bclk=true; extern string myFont ="Arial Bold"; extern string myFont2 ="Verdana Bold"; //extern int myCFontSize = 20 ; //extern int myCLKSize = 16 ; extern bool show_M1=true; extern bool show_M5=true; extern bool show_M15=true; extern bool show_M30=true; extern bool show_M60=true; extern bool show_M240=true; extern bool show_M1440=true; int TimeFrame=0; //+------------------------------------------------------------------+ //| Custom indicator initialization function | //+------------------------------------------------------------------+ int init() { IndicatorShortName("CLKV3"); //{ switch(TimeFrame) { case 1 : string TimeFrameStr="M1"; break; case 5 : TimeFrameStr= "M5"; break; case 15 : TimeFrameStr= "M15"; break; case 30 : TimeFrameStr= "M30"; break; case 60 : TimeFrameStr= "H1"; break; case 240 : TimeFrameStr= "H4"; break; case 1440 : TimeFrameStr= "D1"; break; case 10080 : TimeFrameStr= "W1"; break; case 43200 : TimeFrameStr= "MN1"; break; default : TimeFrameStr= "CurrTF"; } //if (TimeFrame