TradingView
forexpirate
Aug 6, 2016 10:10 PM

Mondays 

EURO / U.S. DOLLARICE

Description

Puts yellow bars on Monday morning. I use it for my options trading strats.
Comments
forexpirate
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")

sandip_tia8505
@forexpirate, thank you
Gorbie
It's a same code of the Trading Time, not for the Monday.
forexpirate
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")

More