UnknownUnicorn468659

Day Of The Week

3224 lượt xem
415
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.
Gỡ bỏ khỏi Script Ưa thích Thêm vào Script Ưa thích
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)

Bình luận

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)
+2 Phản hồi
MGtz07 UnknownUnicorn468659
@UnknownUnicorn468659, HOW CAN I ADD A LABEL WITH THE NAME OF THE DAYS TO THIS AMAZING CODE?
Phản hồi
Good stuff! I have one question though. When I add the script to my chart, it occupies the entire charting area, whereas your example shows it as a tiny bar at the bottom. How do I make mine look like yours?

This is how mine looks like at the moment:

Phản hồi
This is excellent ... I live and die by the weekly chart, I view it through the lens of the 1H chart and use this indicator to paint the beginning of the week a certain color, it helps me see clearly what I am doing ... thank you!
Phản hồi
is there a way to add vertical lines to seperate the days instead of colors at the bottom of the chart ?
Phản hồi
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:
Phản hồi
UnknownUnicorn468659 UnknownUnicorn468659
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).
Phản hồi
traderpt2016 UnknownUnicorn468659
i see , thank you for your help
Phản hồi
Trang chủ Bộ lọc cổ phiếu Bộ lọc Forex Bộ lọc Tiền điện tử Lịch kinh tế Cách thức hoạt động Tính năng Biểu đồ Trả phí Giới thiệu bạn Quy tắc Áp dụng Trung tâm Trợ giúp Giải pháp cho Website & Nhà môi giới Widget Giải pháp biểu đồ Thư viện Biểu đồ Lightweight Blog & Tin tức Twitter
Hồ sơ Tùy chỉnh Hồ sơ Tài khoản và Thanh toán Giới thiệu bạn Xu Ticket Hỗ trợ của tôi Trung tâm Trợ giúp Các ý tưởng đã đăng Người theo dõi Đang theo dõi Tin nhắn riêng Trò chuyện Đăng xuất