真实作者:
Alejandro Galindo
这款指标在一天内绘制四条不同颜色的竖线,线条的参数可以在输入参数中进行设置:
//+----------------------------------------------+ //| 指标输入参数 | //+----------------------------------------------+ //--- 常规设置 input string LinesSirname="时间区间"; // 线条名称 input uint WeeklyTotal=4; // 历史周数 input uint FutureTotal=1; // 未来的线条数量 //--- 日线设置 input color Line_Color_D=clrRed; // 日线颜色 input STYLE Line_Style_D=SOLID_; // 日线样式 input ENUM_WIDTH Line_Width_D=w_3; // 日线宽度 input bool SetBackground_D=true; // 显示日线背景 //--- intraday bars GMT设置 input Hour GMT=H02; // input color Line_Color_D1=clrDodgerBlue; // GMT线颜色 input STYLE Line_Style_D1=SOLID_; // GMT线样式 input ENUM_WIDTH Line_Width_D1=w_2; // GMT线宽度 input bool SetBackground_D1=true; // 显示GMT线背景 //--- intraday bars MST设置 input Hour MST=H06; // input color Line_Color_D2=clrLime; // MST线颜色 input STYLE Line_Style_D2=SOLID_; // MST线样式 input ENUM_WIDTH Line_Width_D2=w_2; // MST线宽度 input bool SetBackground_D2=true; // 显示MST线背景 //--- intraday bars EST设置 input Hour EST=H07; // input color Line_Color_D3=clrDarkOrchid; // EST线颜色 input STYLE Line_Style_D3=SOLID_; // EST线样式 input ENUM_WIDTH Line_Width_D3=w_2; // EST线宽度 input bool SetBackground_D3=true; // 显示EST线背景
这个指标最初是用MQL4编写的,并于2007年9月28日在mql4.com的代码库首次发布。

图1. 时间区间指标