Clock Displaying Time In Main Chart – Forex Göstergesi

0
(0)
İsim:
clock displaying time in main chart
Yazar: deVries (2012.09.24 00:56)
İndirildi: 3290
İndirmek:
Clock Displaying Time In Main Chart - Forex Indicator 1
Clock.mq4 (2.4 kb) Görüş
Clock Displaying Time In Main Chart - Forex Indicator 2The Clock indicator is placed 5 times on chart to show how you can use it on chart

It is not possible to place two clocks on your chart having the same time....

Although we have in Code_Base other clock indicators, it was still that in

the Online Library of the MetaEditor I did not find a simple Clock-indicator like this inside

Saygılarımızla,

Tjipke

khanman:
can you make it in sub window chart?

Evet, I can...

//+------------------------------------------------------------------+
//|                                                       Clock2.mq4 |
//|                                Telif hakkı © 2012, Tjipke de Vries |
//|                                                                  |
//+------------------------------------------------------------------+
#property copyright "Telif hakkı © 2012, Tjipke de Vries"
#property link      ""

#property indicator_chart_window

extern string Clocktext = "sunucu";
extern int Timezone.from.Server = 0;
extern int ClockSize = 14;
string FontType = "Verdana";
extern color ClockColor = Blue;
extern int ClockCorner = 0;
extern int yLine = 20;
extern int xCol = 10;
extern int window = 0;

//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int init()
  {
//----
   eğer(ClockCorner>=4)
      { 
       sırasında (ClockCorner>=4){ClockCorner=ClockCorner-4;}
      } 
//----
   geri dönmek(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function                       |
//+------------------------------------------------------------------+
int deinit()
  {
//----
   Nesne Silme("Clock"+DoubleToStr(Timezone.from.Server,0));
//----
   geri dönmek(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator iteration function                              |
//+------------------------------------------------------------------+
int başlangıç()
  {
   int    counted_bars=IndicatorCounted();
//----

   DisplayText("Clock"+DoubleToStr(Timezone.from.Server,0), yLine, xCol, Clocktext+"  "+ 
   TimeToStr((TimeCurrent()+ ((  0 - Timezone.from.Server) * 3600)), TIME_SECONDS),ClockSize,FontType, ClockColor);   
//----
   geri dönmek(0);
  }
//+------------------------------------------------------------------+
void DisplayText(string eName, int eYD, int eXD, string eText, int eSize, string eFont, color eColor) {
   ObjectCreate(eName, OBJ_LABEL, window, 0, 0);
   ObjectSet(eName, OBJPROP_CORNER, ClockCorner);
   ObjectSet(eName, OBJPROP_XDISTANCE, eXD);
   ObjectSet(eName, OBJPROP_YDISTANCE, eYD);
   ObjectSetText(eName, eText, eSize, eFont, eColor);
}
//+------------------------------------------------------------------+

choose for window number of subwindow

0 main chart

1 next sub window....

Clock Displaying Time In Main Chart - Forex Indicator 3

Bu yazı ne kadar faydalı oldu?

Derecelendirmek için bir yıldıza tıklayın!

Ortalama puanı 0 / 5. Oy sayısı: 0

Şu ana kadar oy yok! Bu gönderiye ilk puan veren siz olun.

Bu yazının sizin için yararlı olmadığı için üzgünüz!

Bu yazıyı geliştirelim!

Bu gönderiyi nasıl geliştirebileceğimizi bize bildirin?



Yazar: Forex Wiki Ekibi
Biz son derece deneyimli Forex Yatırımcılarından oluşan bir ekibiz [2000-2023] hayatı kendi şartlarımıza göre yaşamaya kendini adamış olan. Öncelikli hedefimiz mali bağımsızlık ve özgürlüğe ulaşmaktır., ve kendi kendine sürdürülebilir bir yaşam tarzı elde etmenin yolu olarak kendi kendine eğitim peşinde koştuk ve Forex piyasasında kapsamlı deneyim kazandık..