Steven_Maas

Day Of The Week

145 5 24
Very simple script, which is also publicly available and found on the web by the way.
More visually appealing way of seeing what time it is. Works best around 15 minute charts. Doesn't work well on high timeframes.
Remove from Favorite Scripts Add to Favorite Scripts
study(title="Day Of The Week", shorttitle="Day of the week", overlay=true)
c = #fc1687
bgColor =(dayofweek == monday) ? color(c, 10):
    (dayofweek == tuesday) ? color(c, 30) :
    (dayofweek == wednesday) ? color(c, 50) :
    (dayofweek == thursday) ? color(c, 70) :
    (dayofweek == friday) ? color(c, 90) :
    color(black, 0)
bgcolor(color=bgColor)
For those that don't want to see gaps, here's an update:

study(title="Day Of The Week", shorttitle="Day of the week", overlay=true)
c = #fc1687
bgColor =(dayofweek == monday) ? color(c, 10):
(dayofweek == tuesday) ? color(c, 30) :
(dayofweek == wednesday) ? color(c, 50) :
(dayofweek == thursday) ? color(c, 70) :
(dayofweek == friday) ? color(c, 90) :
(dayofweek != monday != tuesday != wednesday != thursday != friday) ? color(c, 90):
color(black, 0)
bgcolor(color=bgColor)
Reply
is there a way to add vertical lines to seperate the days instead of colors at the bottom of the chart ?
Reply
Steven_Maas traderpt2016
Currently not unfortunately, I use the general vertical lines under settings > timezones/sessions. Sessionbreaks work but they deliniate the 'standard' which is 00:00 UTC. The only way you can work around this only by using the timerange as I've sort of managed to do here:
Timezone Sessions Indicator
Reply
Steven_Maas Steven_Maas
If you visit that link and read some of the code (not too much :)) you can see that you can define a very small range, down to 1 minute. This draws a backgroundcolor in such a small range that it looks like a line (depending on your timeframe).
Reply
traderpt2016 Steven_Maas
i see , thank you for your help
Reply
Ideas Scripts Chart
United States
United Kingdom
India
España
France
Italia
Brasil
Россия
Türkiye
日本
한국
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