Sessions
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © YarRunming

//@version=5
indicator("Sessions", overlay=true)

sess_in = input.session("1500-2300:1234567", "Session")
timezone=input.string("GMT+8","Timezone")
sess = na(time(timeframe.period, sess_in,timezone))?na:color.new(color.blue,transp=50)
// plot(asia)
// sess = na(sess) ? na : color.blue


bgcolor(sess, title="Session")
