study("Forex Sessions", shorttitle="SessionsFX", overlay=true)
t1 = time(period, "0700-1600")
t2 = time(period, "0200-1100")
t3 = time(period, "1800-0300")
t4 = time(period, "1600-0100")
NewYork = na(t1) ? na : green
London = na(t2) ? na : red
Tokyo = na(t3) ? na : blue
Sydney = na(t4) ? na : aqua
//white silver gray maroon red purple fuchsia...
Different version of the CM one but everything is configurable and easy to manage.
Daylight savings may also be toggled, I cannot automatically toggle it yet but hopefully with a pine update I will be able to.
It had the four main sessions but version two could possibly have all of them as optional toggles
Hope it is useful
Simple indicator showing market hours for New York, London, Sydney and Tokyo. It plots 60 bars in future so you can easily see when certain sessions start or end before it happens.
x = gap between plots (adjustable)