Login Page - Create Account

Support Board


Date/Time: Wed, 22 May 2024 02:57:43 +0000



Post From: Control session start and end times programatically?

[2013-12-28 07:49:54]
T44 - Posts: 363
The sc.SessionStartTime() function gets the start of the day in Intraday charts which is based on the Session Times set in Chart >> Chart Settings .

I'd like to be able to change the start and end time of a chart from within a study. Is this currently possible?

(Potential use case: hard coding the regular session times for each symbol into a study, using a substring comparison to match symbol root, therefore being able to cycle through a regular session only chart for symbols with varying regular sessions. Additionally, to use sc.IsDateTimeInDaySession() to show regular session only during regular session, and out of hours data when out of hours).