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 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

Regards,

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 = "Server";
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 초기화()
  {
//----
   만약에(ClockCorner>=4)
      { 
       ~하는 동안 (ClockCorner>=4){ClockCorner=ClockCorner-4;}
      } 
//----
   반품(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function                       |
//+------------------------------------------------------------------+
int deinit()
  {
//----
   객체삭제("Clock"+DoubleToStr(Timezone.from.Server,0));
//----
   반품(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator iteration function                              |
//+------------------------------------------------------------------+
정수 시작()
  {
   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) {
   객체생성(eName, OBJ_LABEL, window, 0, 0);
   객체 집합(eName, OBJPROP_CORNER, ClockCorner);
   객체 집합(eName, OBJPROP_XDISTANCE, eXD);
   객체 집합(eName, OBJPROP_YDISTANCE, eYD);
   객체세트텍스트(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 트레이더 팀입니다. [2000-2023] 우리 자신의 조건에 따라 삶을 살기 위해 헌신하는 사람들. 우리의 주요 목표는 재정적 독립과 자유를 얻는 것입니다., 우리는 자기 교육을 추구하고 Forex 시장에서 자립 가능한 라이프 스타일을 달성하기 위한 수단으로 광범위한 경험을 얻었습니다..