forexpirate

Mondays---- *** CORRECT SCRIPT ***

1217 views
128
This is the correct script for Mondays
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Want to use this script on a chart?
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")

Comments

Awesome, simple but exactly what I was looking for, thanks
Reply
forexpirate Sianoden88
@Sianoden88, Thanks, I have one I have not published that shades out the hours that I am 'asleep' and not trading, or keeping an eye on the markets. The European sessions do horrible things to many pairs while I am sleeping in EST. I find AUDNZD to be the calmest overnight. Calmest being a relative idea.
Reply
forexpirate Sianoden88
@Sianoden88, And another thing, be sure that the exchange you are using is based in your time zone. I live in EST, so I will have to adjust the numbers to label Monday morning if I use SAXO, ICE etc exchanges for forex. Likewise, some instruments coming out of Chicago will also need adjusting.
Reply
TimFassbender forexpirate
@forexpirate, Hi forexpirate, wanted to create and indicator which shows me mondays just like you did. Tried to copy your script but it always marks Tuesdays. Could you maybe help me out ?
Reply
What does this do, exactly?
Reply