Amused to Death
New member
What would be the correct syntax for displaying different labels at specific times of day? Labels might indicate "premarket," "day open," "European close," etc. I've found scripts for drawing vertical lines at various times, but nothing for displaying labels instead.
Say I wanted to display labels representing various "zones," with each label remaining on an intraday chart until the next time zone is reached:
0000 to 0700 "Zone 1"
0700 to 0930 "Zone 2"
0930 to 1130 "Zone 3"
1130 to 1330 "Zone 4"
1330 to 1600 "Zone 5"
1600 to 2000 "Zone 6"
2000 to 2230 "Zone 7"
2230 to 0000 "Zone 8"
In this example, with all 24 hours in a day accounted for, there should never be a time when a "zone" label isn't being displayed on an intraday chart.
An (on/off) option to include vertical lines between each of these zones would be nice, but the labels are the primary focus.
I'm new to ThinkScript (and this forum — my first post!), so any/all help is appreciated!
Say I wanted to display labels representing various "zones," with each label remaining on an intraday chart until the next time zone is reached:
0000 to 0700 "Zone 1"
0700 to 0930 "Zone 2"
0930 to 1130 "Zone 3"
1130 to 1330 "Zone 4"
1330 to 1600 "Zone 5"
1600 to 2000 "Zone 6"
2000 to 2230 "Zone 7"
2230 to 0000 "Zone 8"
In this example, with all 24 hours in a day accounted for, there should never be a time when a "zone" label isn't being displayed on an intraday chart.
An (on/off) option to include vertical lines between each of these zones would be nice, but the labels are the primary focus.
I'm new to ThinkScript (and this forum — my first post!), so any/all help is appreciated!