The Vertical line Indicator For MT5 provides 0 buffers. input datetime InpTime = D 2017.05.22 18:40:00 // Use only Hours and minutes input string InpName = "Vertical line" // Line name input color InpColor = clrRed // Line color input ENUM_LINE_STYLE InpStyle = STYLE_DASH // Line style input int InpWidth = 3 // Line width Buffers of the Vertical line Indicator For MT5 ![]() The Vertical line Indicator For MT5 has 5 parameters to configure. As soon as a mql4 program stops operating, the timer is destroyed forcibly if it was created but hasnt been disabled by the EventKillTimer () function. Parameters of the Vertical line Indicator For MT5 Every Expert Advisor, as well as every indicator works with its own timer and receives events only from it. After that please restart MT5 and then you will be able to see the indicator in the list of indicators. Then you need to copy the file Vertical_line.mq5 into the folder MQL5\Indicators of your MT5 installation. We can see in the next section how to do this with MQL4. The actual reasons may vary but the result is the same you want to run some code only once per bar. The OnTimer() function is called when the Timer event occurs, which is generated by the system timer only for Expert Advisors and indicators - it cant be used. Save resources recalculating some past values only once per bar. ![]() Installing the Vertical line Indicator For MT5Īfter you downloaded the indicator via the form above you need to unzip the zip-file. Perform a trailing stop only once per bar. ![]() Alerts In Real-Time When Divergences Occur
0 Comments
Leave a Reply. |