HPotter

Trade Session

1199 0 304
Marker of trade session
If you do not want painting all session, you should set -1 in the SessionStart
and SessionEnd
Remove from Favorite Scripts Add to Favorite Scripts
////////////////////////////////////////////////////////////
//  Copyright by HPotter v1.0 03/09/2014
//  Marker of trade session
//  If you do not want painting all session, you should set -1 in the SessionStart 
//  and SessionEnd
////////////////////////////////////////////////////////////
study(title="Trade Session", overlay = true)
Session0Start = input(0)
Session0End = input(4)
Session1Start = input(5)
Session1End = input(7)
Session2Start = input(8)
Session2End = input(14)
Session3Start = input(15)
Session3End = input(19)
Session4Start = input(20)
Session4End = input(23)
BGColor0 = iff(hour >= Session0Start and hour <= Session0End, green, na)
BGColor1 = iff(hour >= Session1Start and hour <= Session1End, blue, na)
BGColor2 = iff(hour >= Session2Start and hour <= Session2End, red, na)
BGColor3 = iff(hour >= Session3Start and hour <= Session3End, gray, na)
BGColor4 = iff(hour >= Session4Start and hour <= Session4End, olive, na)
bgcolor(BGColor0, 80, 0)
bgcolor(BGColor1, 80, 0)
bgcolor(BGColor2, 80, 0)
bgcolor(BGColor3, 80, 0)
bgcolor(BGColor4, 80, 0)
DONATE/TIP

BTC: 1Lo1GoTNsPbrjGAgPgF4MYZPhBFdoVHaTm
United States
United Kingdom
India
Deutschland
France
España
Italia
Polska
Türkiye
Россия
Brasil
Indonesia
Malaysia
Việt Nam
日本
한국
简体
繁體
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 Priority Support Contact Support Ideas Published Followers Following Private Messages Chat Sign Out