Can anyone show me how to place a VLine at the start of the day, for a specific time. I am on EST and would like to show, on my chart, the start of the day, which is midnight. My chart time is 5 hours ahead of EST.
ObjectDelete("DayStart"); ObjectCreate("DayStart",OBJ_VLINE,0,Time[0],0); ObjectSet("DayStart", OBJPROP_COLOR, Orange); Above is the code I generally use, for VLine. I can change the value of Time[0] to a different bar number, but was hoping that there was a way to set VLine by time.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Can anyone show me how to place a VLine at the start of the day, for a specific time. I am on EST and would like to show, on my chart, the start of the day, which is midnight. My chart time is 5 hours ahead of EST.
ObjectDelete("DayStart"); ObjectCreate("DayStart",OBJ_VLINE,0,Time[0],0); ObjectSet("DayStart", OBJPROP_COLOR, Orange); Above is the code I generally use, for VLine. I can change the value of Time[0] to a different bar number, but was hoping that there was a way to set VLine by time.
Thanks!