My custom sessio separator v1.1

64 0 6
Nouvelle version
Remove from Favorite Scripts Add to Favorite Scripts
study(title="My custom sessio separator", shorttitle="Simple Session", overlay=true)
//use UTC+3 Athens Timezone to match up with metatrader4

timeinrange(res, sess) => time(res, sess) != 0
render = input(false,title="Slow but exact background (Refresh page)")
renderRes = render ? "1" : "5"

asianSession = "1900-0300" 
asianColor = red
asian = input(true)
bgcolor(asian and timeinrange(renderRes, asianSession) ? asianColor : na, transp=95, title="Asian Session")

londonSession = "0300-1100"
londonColor = blue
london = input(true)
bgcolor(london and timeinrange(renderRes, londonSession) ? londonColor : na, transp=95, title="London Session")

//New York
newyorkSession = "0800-1600" 
newyorkColor = green
newyork = input(true, title="New York")
bgcolor(newyork and timeinrange(renderRes, newyorkSession) ? newyorkColor : na, transp=95, title="New York Session")

//Dead Gap
deadgapSession = "1600-2030" 
deadgapColor = black
deadgap = input(true, title="New York")
bgcolor(deadgap and timeinrange(renderRes, deadgapSession) ? deadgapColor : na, transp=70, title="Dead Gap Session")

//Dead Gap NewYork
NYDeadgap = "0800-0830" 
NYColor = black
NY = input(true, title="NY Deadgap")
bgcolor(NY and timeinrange(renderRes, NYDeadgap) ? NYColor : na, transp=70, title="NY Deadgap")

//Dead Gap London
LDDeadgap = "0300-0330" 
LDColor = black
LD = input(true, title="LD Deadgap")
bgcolor(LD and timeinrange(renderRes, LDDeadgap) ? LDColor : na, transp=70, title="LD Deadgap")

//Dead Gap Asia
ASDeadgap = "1900-1930" 
ASColor = black
AS = input(true, title="AS Deadgap")
bgcolor(AS and timeinrange(renderRes, ASDeadgap) ? ASColor : na, transp=70, title="AS Deadgap")
Ideas Scripts Chart
United States
United Kingdom
Home Stock Screener Forex Signal Finder 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 Account and Billing Sign Out