[MT4指标]高亮显示时段的指标,可以自定义2个时段
//+------------------------------------------------------------------+
//| i-Sessions.mq4 |
//| 疏?茹铕?? aka KimIV |
//| |
//| |
//| 16.11.2005 软滂赅蝾?蝾疸钼? 皴耨栝 |
//+------------------------------------------------------------------+
#property copyright "疏?茹铕?? aka KimIV"
#property link ""
#property indicator_chart_window
//------- 马屮龛?镟疣戾蝠?桧滂赅蝾疣 -------------------------------
extern int NumberOfDays = 2; // 暑腓麇耱忸 漤彘
extern string AsiaBegin = "01:00"; // 悟牮?桢 噻栲蝰觐?皴耨梃
extern string AsiaEnd = "10:00"; // 青牮?桢 噻栲蝰觐?皴耨梃
extern color AsiaColor = Goldenrod; // 肘弪 噻栲蝰觐?皴耨梃
extern string EurBegin = "07:00"; // 悟牮?桢 邂痤镥轳觐?皴耨梃
extern string EurEnd = "16:00"; // 青牮?桢 邂痤镥轳觐?皴耨梃
extern color EurColor = Tan; // 肘弪 邂痤镥轳觐?皴耨梃
extern string USABegin = "14:00"; // 悟牮?桢 囔屦桕囗耜铋 皴耨梃
extern string USAEnd = "23:00"; // 青牮?桢 囔屦桕囗耜铋 皴耨梃
extern color USAColor = Pink; // 肘弪 囔屦桕囗耜铋 皴耨梃
extern bool ShowPrice = True; // 项赅琨忄螯 鲥眍恹?箴钼龛
extern color clFont = Blue; // 肘弪 ?梏蜞
extern int SizeFont = 8; // 朽珈屦 ?梏蜞
extern int OffSet = 10; // 鸯妁屙桢
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
void init() {
DeleteObjects();
for (int i=0; i5) dt=decDateTradeDay(dt);
}
}
//+------------------------------------------------------------------+
//| 橡铕桉钼赅 钺?牝钼 磬 沭圄桕? |
//| 相疣戾蝠? |
//| dt - 溧蜞 蝾疸钼钽?漤