Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

MetaTrader 5 Indicator | VGridLine_Custom

The indicator plots one vertical line per day in a specified moment of time.

//+----------------------------------------------+   //| Indicator input parameters                   |  //+----------------------------------------------+   input string LinesSirname="VLine_Grid_Custom_";     //line name  input HOURS  LineHours=ENUM_HOUR_0;                 //Line setting line (hour)  input MINUTS LineMinuts=ENUM_MINUT_0;               //Line setting line (minute)  input color Line_Color=clrMagenta;                  //line color  input ENUM_LINE_STYLE Line_Style=STYLE_DASHDOTDOT;  //line display style  input ENUM_WIDTH Line_Width=w_1;                    //line width  input bool SetBackground=true;                      //line background display  input uint LinesTotal=10;                           //number of lines in history  input uint FutureTotal=1;                           //number of lines in future empty history  

If several instances of the indicator with different parameters should be used for the chart layout, the LinesSirname parameter should be different for each indicator.

MetaTrader Experts, Indicators, Scripts and Libraries

Fig. 1. VGridLine_Custom indicator

22962