Puts yellow bars on Monday morning. I use it for my options trading strats.
Remove from Favorite Scripts Add to Favorite Scripts
study(title="Trading Time",shorttitle="Trading Time", overlay=true)
nt = input('0230-0915', type=session, title="Not Trading")
nttime =  nt
bgPlot2 = (time(period, nttime))
bgcolor(bgPlot2 and isintraday? navy : na,transp=30,title="Time")
Gorbie
3 months ago
It's a same code of the Trading Time, not for the Monday.
Reply
forexpirate PRO Gorbie
3 months ago
Gorbie, you are right! Thank you.

study(title="Week",shorttitle="Monday", overlay=true)
nt = input('0930-1030', type=session, title="Not Trading")
nttime = nt
bgPlot2 = (time(period, nttime))
bgcolor(bgPlot2 and (dayofweek(time('D')) == monday)? yellow : na,transp=30,title="Time")

Reply
forexpirate PRO
3 months ago
Correct Script
study(title="Week",shorttitle="Monday", overlay=true)
nt = input('0930-1030', type=session, title="Not Trading")
nttime = nt
bgPlot2 = (time(period, nttime))
bgcolor(bgPlot2 and (dayofweek(time('D')) == monday)? yellow : na,transp=30,title="Time")

Reply
Ideas Scripts Chart
United States
United Kingdom
India
España
Italia
Brasil
Россия
Türkiye
日本
한국
Home Stock Screener Economic Calendar How It Works Chart Features House Rules Moderators For the WEB Widgets Stock Charting Library Priority Support Feature Request Blog & News FAQ Help & Wiki Twitter
Private Messages Chat Ideas Published Followers Following Priority Support Public Profile Profile Settings Billing Sign Out