forexpirate

Trading Time

Code put blue bars during times you input. I put it to show times I am asleep and not alert to trade. I also put code into strategy to control when trades can open or close. FXCM             and IDC             exchanges have different time zones, as well as AMEX, etc. You will have to change it for each zone.
Remove from Favorite Scripts Add to Favorite Scripts
study(title="Trading Time",shorttitle="Trading Time", overlay=true)
nt = input('0230-0915', type=session, title="Not Trading")
nttime =  nt
bgPlot2 = (time(period, nttime))
bgcolor(bgPlot2 and isintraday? navy : na,transp=30,title="Time")
This script was updated: Mondays
Gorbie
3 months ago
Bonjour Monsieur! Nice to see you with a another good job.
Reply
Ideas Scripts Chart
United States
United Kingdom
India
España
Italia
Brasil
Россия
Türkiye
日本
한국
Home Stock Screener 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 Billing Sign Out