My custom sessio separator v1.1

69 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")
EN English
EN English (UK)
EN English (IN)
DE Deutsch
FR Français
ES Español
IT Italiano
PL Polski
TR Türkçe
RU Русский
PT Português
ID Bahasa Indonesia
MS Bahasa Melayu
TH ภาษาไทย
VI Tiếng Việt
JA 日本語
KO 한국어
ZH 简体中文
ZH 繁體中文
Home Stock Screener Forex Signal Finder Cryptocurrency Signal Finder Economic Calendar How It Works Chart Features House Rules Moderators Website & Broker Solutions Widgets Stock Charting Library Feature Request Blog & News FAQ Help & Wiki Twitter
Profile Profile Settings Account and Billing My Support Tickets Contact Support Ideas Published Followers Following Private Messages Chat Sign Out