NY-Session + lunch break
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © Se7en777

//@version=5
indicator("NY-Session", overlay=true)
//version = 1.0.0

session = time(timeframe.period, "0830-1200,1300-1630", "America/New_York")
lunch = time(timeframe.period, "1200-1300", "America/New_York")

bgcolor(session ? #d1d4dc35 : na, title = "Session")
bgcolor(lunch ? #ff525215 : na, title = "Lunch")