Dark Wolf:
Is there a plugin to draw vertical lines every 45 minutes? I have found the Vertical Grid Plotter, but this only works on MT5 now. I am unable to compile the code for MT4 due to multiple errors.
https://www.mql5.com/en/code/9006
Are there any other indicators/plugins that work?
Thanks all.
corrected.Please compiler as an expert.
//< 1. Property 7 >===========================================================================================//< 1> //< 2> #property copyright "Copyright (C) 2009, MetaQuotes Software Corp." //< 3> #property link "http://www.metaquotes.net" //< 4> //< 5> #define ASystemSeries "AIS" //< 6> #define ASystemModification "70301" //< 7> #define ASystemReleaseDate "2009.06.26" //< 8> #define ASystemProgram "Vertical Grid Plotter" //< 9> #define ASystemProgrammer "Airat Safin http://www.mql4.com/users/Ais" //< 10> //< 11> //</1. Property 7 >===========================================================================================//< 12> ////////////////////////////////////////////////////////////////////////////////////////////////////////////////< 13> //< 2. Constants 1 >==========================================================================================//< 14> //< 15> #define acsVGPrefix "AVGL_" //< 16> //< 17> //</2. Constants 1 >==========================================================================================//< 18> ////////////////////////////////////////////////////////////////////////////////////////////////////////////////< 19> //< 3. Presets 7 >============================================================================================//< 20> //< 21> #property show_inputs //< 22> //< 23> extern datetime aetVGLeft = D'2020.01.01 00:00' ; //< 24> extern int aeiVGStep = 60 ; //< 25> extern datetime aetVGRight = D'2020.12.12 00:00' ; //< 26> //< 27> extern color aeiVGColor = Yellow ; //< 28> extern int aeiVGStyle = 2 ; //< 29> extern int aeiGBackground = 0 ; //< 30> //< 31> //</3. Presets 7 >============================================================================================//< 32> ////////////////////////////////////////////////////////////////////////////////////////////////////////////////< 33> //< 4. Main Program 8 >=======================================================================================//< 34> //< 35> int init () //< 36> { //< 37> //< 38> for ( int aliTime = aetVGLeft ; aliTime <= aetVGRight ; aliTime += aeiVGStep * 60 ) //< 39> { //< 40> string alsVGLineName = acsVGPrefix + TimeToStr ( aliTime ) ; //< 41> ObjectCreate ( alsVGLineName , OBJ_VLINE , 0 , aliTime , 0 ) ; //< 42> ObjectSet ( alsVGLineName , OBJPROP_COLOR , aeiVGColor ) ; //< 43> ObjectSet ( alsVGLineName , OBJPROP_STYLE , aeiVGStyle ) ; //< 44> ObjectSet ( alsVGLineName , OBJPROP_BACK , aeiGBackground ) ; //< 45> } // for //< 46> //< 37> } //< 48> //</4. Main Program 8 >=======================================================================================//< 49>
//< 1. Property 7 >===========================================================================================//< 1> //< 2> #property copyright "Copyright (C) 2009, MetaQuotes Software Corp." //< 3> #property link "http://www.metaquotes.net" //< 4> //< 5> #define ASystemSeries "AIS" //< 6> #define ASystemModification "70301" //< 7> #define ASystemReleaseDate "2009.06.26" //< 8> #define ASystemProgram "Vertical Grid Plotter" //< 9> #define ASystemProgrammer "Airat Safin http://www.mql4.com/users/Ais" //< 10> //< 11> //</1. Property 7 >===========================================================================================//< 12> ////////////////////////////////////////////////////////////////////////////////////////////////////////////////< 13> //< 2. Constants 1 >==========================================================================================//< 14> //< 15> #define acsVGPrefix "AVGL_" //< 16> //< 17> //</2. Constants 1 >==========================================================================================//< 18> ////////////////////////////////////////////////////////////////////////////////////////////////////////////////< 19> //< 3. Presets 7 >============================================================================================//< 20> //< 21> #property show_inputs //< 22> //< 23> extern datetime aetVGLeft = D'2020.01.01 00:00' ; //< 24> extern int aeiVGStep = 60 ; //< 25> extern datetime aetVGRight = D'2020.12.12 00:00' ; //< 26> //< 27> extern color aeiVGColor = Yellow ; //< 28> extern int aeiVGStyle = 2 ; //< 29> extern int aeiGBackground = 0 ; //< 30> //< 31> //</3. Presets 7 >============================================================================================//< 32> ////////////////////////////////////////////////////////////////////////////////////////////////////////////////< 33> //< 4. Main Program 8 >=======================================================================================//< 34> //< 35> int init () //< 36> { //< 37> //< 38> for ( int aliTime = aetVGLeft ; aliTime <= aetVGRight ; aliTime += aeiVGStep * 60 ) //< 39> { //< 40> string alsVGLineName = acsVGPrefix + TimeToStr ( aliTime ) ; //< 41> ObjectCreate ( alsVGLineName , OBJ_VLINE , 0 , aliTime , 0 ) ; //< 42> ObjectSet ( alsVGLineName , OBJPROP_COLOR , aeiVGColor ) ; //< 43> ObjectSet ( alsVGLineName , OBJPROP_STYLE , aeiVGStyle ) ; //< 44> ObjectSet ( alsVGLineName , OBJPROP_BACK , aeiGBackground ) ; //< 45> } // for //< 46> //< 37> } //< 48> //</4. Main Program 8 >=======================================================================================//< 49>

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Is there a plugin to draw vertical lines every 45 minutes? I have found the Vertical Grid Plotter, but this only works on MT5 now. I am unable to compile the code for MT4 due to multiple errors.
https://www.mql5.com/en/code/9006
Are there any other indicators/plugins that work?
Thanks all.