Clock Displaying Time In Main Chart – ตัวบ่งชี้ Forex

0
(0)
ชื่อ:
clock displaying time in main chart
ผู้เขียน: deVries (2012.09.24 00:56)
ดาวน์โหลดแล้ว: 3290
ดาวน์โหลด:
Clock Displaying Time In Main Chart - Forex Indicator 1
Clock.mq4 (2.4 Kb) ดู
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

ความนับถือ,

Tjipke

khanman:
can you make it in sub window chart?

ใช่, I can...

//+------------------------------------------------------------------+
//|                                                       Clock2.mq4 |
//|                                ลิขสิทธิ์ © 2012, Tjipke de Vries |
//|                                                                  |
//+------------------------------------------------------------------+
#ลิขสิทธิ์ทรัพย์สิน "ลิขสิทธิ์ © 2012, Tjipke de Vries"
#ลิงค์คุณสมบัติ      ""

#property indicator_chart_window

extern string Clocktext = "เซิร์ฟเวอร์";
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()
  {
//----
   ถ้า(ClockCorner>=4)
      { 
       ในขณะที่ (ClockCorner>=4){ClockCorner=ClockCorner-4;}
      } 
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function                       |
//+------------------------------------------------------------------+
int deinit()
  {
//----
   ObjectDelete("Clock"+DoubleToStr(Timezone.from.Server,0));
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator iteration function                              |
//+------------------------------------------------------------------+
int start()
  {
   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);   
//----
   return(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

โพสต์นี้มีประโยชน์เพียงใด?

คลิกที่ดาวเพื่อให้คะแนน!

คะแนนเฉลี่ย 0 / 5. นับคะแนนเสียง: 0

ยังไม่มีคะแนนโหวต! เป็นคนแรกที่ให้คะแนนโพสต์นี้.

ขออภัยที่โพสต์นี้ไม่มีประโยชน์สำหรับคุณ!

ให้เราปรับปรุงโพสต์นี้!

บอกเราว่าเราจะปรับปรุงโพสต์นี้ได้อย่างไร?



ผู้เขียน: ทีมงาน Forex Wiki
เราคือทีมผู้ซื้อขาย Forex ที่มีประสบการณ์สูง [2000-2023] ที่อุทิศตนเพื่อใช้ชีวิตในแบบของเรา. วัตถุประสงค์หลักของเราคือการได้รับอิสรภาพทางการเงินและอิสรภาพ, และเราได้ติดตามการศึกษาด้วยตนเองและได้รับประสบการณ์ที่กว้างขวางในตลาด Forex เพื่อเป็นหนทางในการบรรลุวิถีชีวิตที่ยั่งยืนด้วยตนเอง.