Draw vertical lines at time Indicator For MT4
Table Of Contents:
- Draw vertical lines at time Indicator For MT4
- Installing the Draw vertical lines at time Indicator For MT4
- Parameters of the Draw vertical lines at time Indicator For MT4
- Buffers of the Draw vertical lines at time Indicator For MT4
- Main Parts Of The Code
The Draw vertical lines at time Indicator For MT4 allows traders to draw vertical lines at certain times of a trading day on the screen; now the market times is characterised by different trading sessions starting from the Asian session, moving on to the London session and ending the trading day with the New York session and then the cycle continues with the Asian session. You may use the The Draw vertical lines at time Indicator For MT4 to demarcate these trading sessions to help you zone into specific periods within the market because you might have a trading system which is time sensitive and is more conducive for specific trading sessions compared to other trading sessions so The Draw vertical lines at time Indicator For MT4 will help you to mark those sessions off using vertical lines. This encourages a sound discipline into trading system and also your lifestyle because you will know how to prioritise your trading system and session which is governed by "barricading" your trading zones pertaining to a particular session-sensitive trading strategy you may have developed.
Installing the Draw vertical lines at time Indicator For MT4
After you downloaded the indicator via the form above you need to unzip the zip-file. Then you need to copy the file Draw_Vertical_Lines_at_Time.mq4 into the folder MQL4\Indicators of your MT4 installation. After that please restart MT4 and then you will be able to see the indicator in the list of indicators.
Parameters of the Draw vertical lines at time Indicator For MT4
The Draw vertical lines at time Indicator For MT4 has 4 parameters to configure.
extern int HOUR = 4; //Hour to draw the lines extern int MINUTE = 0; //Minute to draw the lines extern color Line_Color = clrBlack; //Color of the lines input ENUM_LINE_STYLE Line_Style = STYLE_DASH; //Style of the lines
Buffers of the Draw vertical lines at time Indicator For MT4
The Draw vertical lines at time Indicator For MT4 provides 0 buffers.
Main Parts Of The Code
void start() { int Counted_bars=IndicatorCounted(); int i=Bars-Counted_bars-1; while(i gt =0) { if(TimeHour(Time[i]) == HOUR && TimeMinute(Time[i]) == MINUTE) { if (ObjectFind(name+DoubleToStr(Time[i])) != 0) { ObjectCreate(name+DoubleToStr(Time[i]), OBJ_VLINE, 0, Time[i], 0); ObjectSetInteger(0,name+DoubleToStr(Time[i]),OBJPROP_STYLE,Line_Style); ObjectSet(name+DoubleToStr(Time[i]), OBJPROP_COLOR, Line_Color); } } i--; } }