Plot vertical line at specified times


Category:
0
0

Hi Hahn

I’m looking for an automated vertical line across an intraday chart for specific market times (10:00am) and (12:00pm).

Thanks and Happy early Thanksgiving!

Marked as spam
Posted by (Questions: 1, Answers: 0)
Asked on November 21, 2018 3:33 pm
156 views
0
Private answer

Here you go

def firstTime = SecondsTillTime(1000) == 0;
def secondTime = SecondsTillTime(1200) == 0;
AddVerticalLine(firstTime, "First Time", Color.GRAY, 2);
AddVerticalLine(secondTime, "Second Time", Color.YELLOW, 2);

Screenshot below shows the result.

Attachments:
Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on November 25, 2018 9:16 am