Globex Time Vertical Lines

MBF

MBF

Active member
2019 Donor
Warehouse
I saw somewhere a while ago, I think it was @horserider who had a Globex open and close vertical on their charts. Can anyone point me in the right direction?
 
markos

markos

Well-known member
VIP
Hi MBF, I don't get here much lately. Use the format below as a template to put the Globex open / close on your chart.
# Time Reminders
AddVerticalLine(secondsTillTime(0930) == 0, "RTH", color.cyan, Curve.Short_Dash);
AddVerticalLine(secondsTillTime(1030) == 0, "End EU", color.cyan, Curve.Short_Dash);
AddVerticalLine(secondsTillTime(1200) == 0, "Lunch", color.cyan, Curve.Short_Dash);
AddVerticalLine(secondsTillTime(1500) == 0, "Lst Hr", color.cyan, Curve.Short_Dash);
AddVerticalLine(secondsTillTime(1615) == 0, "RTH End", color.cyan, Curve.Short_Dash);
 
MBF

MBF

Active member
2019 Donor
Warehouse
@markos Thank you Markos, really helpful. :::hat tip:::
 
S

steve123

New member
Hello everyone - does anyone know of a script that will draw a vertical line on the chart at the same time everyday?
 
S

steve123

New member
Hi MBF, I don't get here much lately. Use the format below as a template to put the Globex open / close on your chart.
# Time Reminders
AddVerticalLine(secondsTillTime(0930) == 0, "RTH", color.cyan, Curve.Short_Dash);
AddVerticalLine(secondsTillTime(1030) == 0, "End EU", color.cyan, Curve.Short_Dash);
AddVerticalLine(secondsTillTime(1200) == 0, "Lunch", color.cyan, Curve.Short_Dash);
AddVerticalLine(secondsTillTime(1500) == 0, "Lst Hr", color.cyan, Curve.Short_Dash);
AddVerticalLine(secondsTillTime(1615) == 0, "RTH End", color.cyan, Curve.Short_Dash);
Awesome markos - works nicely, thank you!
 

Top