Clock Displaying Time In Main Chart – 外国為替インジケーター

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 キロバイト) 意見
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;

//+------------------------------------------------------------------+
//| カスタムインジケーター初期化関数                         |
//+------------------------------------------------------------------+
int 初期化()
  {
//----
   もしも(ClockCorner>=4)
      { 
       その間 (ClockCorner>=4){ClockCorner=ClockCorner-4;}
      } 
//----
   戻る(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function                       |
//+------------------------------------------------------------------+
int deinit()
  {
//----
   ObjectDelete("Clock"+DoubleToStr(Timezone.from.Server,0));
//----
   戻る(0);
  }
//+------------------------------------------------------------------+
//| カスタムインジケーター反復関数                              |
//+------------------------------------------------------------------+
整数の開始()
  {
   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);   
//----
   戻る(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

これまでのところ投票はありません! この投稿を最初に評価してください.

この投稿が役に立たなかったことをお詫び申し上げます!

この投稿を改善しましょう!

この投稿を改善する方法を教えてください?



著者: 外国為替ウィキチーム
私たちは経験豊富な外国為替トレーダーのチームです [2000-2023] 自分の思いどおりに人生を生きることに専念している人. 私たちの主な目的は、経済的自立と自由を獲得することです, 私たちは自立可能なライフスタイルを実現する手段として、独学で外国為替市場での豊富な経験を積んできました。.