I want to color the background of certain timeframes (pre-trading, pre-market, after-hours) during the day. The code below works, except I also want the background to be colored one day into the future, so I can visually grasp in advance when the price graph is approaching the end of the trading session and the beginning of after-hours.
//@version=4 study(title="Trading Hours", overlay=true) bgcolor(timeframe.isintraday and time("", "0200-0800", "GMT+2") ? color.new(color.orange , 92) : na) bgcolor(timeframe.isintraday and time("", "0800-0900", "GMT+2") ? color.new(color.blue, 95) : na) bgcolor(timeframe.isintraday and time("", "1730-2200", "GMT+2") ? color.new(color.blue, 95) : na) New to Pine Script, any help is appreciated. Thanks in advance!

