Vertical lines for Monday and Friday


Category:
0
0

Hi Pete, Can you please help to provide a script for the vertical lines for Mondays and Fridays for the chart on screen?

Thank you,

Shaishav

Marked as spam
Posted by (Questions: 49, Answers: 62)
Asked on February 23, 2021 8:05 pm
357 views
0
Private answer

https://toslc.thinkorswim.com/center/reference/thinkScript/Functions/Look---Feel/AddVerticalLine

https://toslc.thinkorswim.com/center/reference/thinkScript/Functions/Date---Time/GetDayOfWeek

def newDay = GetDay() <> GetDay()[1];
AddVerticalLine((newDay and GetDayOfWeek(GetYYYYMMDD()) == 1) or (newDay and GetDayOfWeek(GetYYYYMMDD()) == 5));

Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on February 24, 2021 8:35 am