OPEN-SOURCE SCRIPT

Day, Week, or Hour Coloring

โดย MTF_ANALYST
ที่อัปเดต:

This is a simple Script that dynamically colors the chart bars based on the day of the week, week of the month, or hour of the day. Users can toggle between these three modes using the Color Mode input, allowing for flexible visual representation of time periods directly on the chart.

Key Features:
Color Modes:
Day Mode: Colors the bars according to the day of the week, with each day assigned a unique color.
Week Mode: Colors the bars based on the week of the month, providing a different color for each week.
Hour Mode: Colors the bars according to the hour of the day, with distinct colors assigned to each hour.
How It Works:
Day Mode:
The script assigns a unique color to each day of the week (e.g., Monday is red, Tuesday is green).
Week Mode:
The script calculates the week of the month by considering the first day of the month and adjusts the day count to determine the correct week.
Each week is assigned a specific color (e.g., Week 1 is red, Week 2 is green).
Hour Mode:
The script assigns a unique color to each hour of the day (e.g., 0:00 is blue, 1:00 is green).
Selected Color Application:
The script evaluates the selected Color Mode and applies the corresponding color to the bars on the chart using the barcolor() function.
This indicator is useful for traders who want to visually distinguish time periods on their charts, aiding in pattern recognition and time-based analysis.
เอกสารเผยแพร่
updated screenshot. this script will simply color the candle for hour, day,or week, depending on user selection in the settings. It can help to quickly visualize how price reacts to new periods.
Candlestick analysisChart patterns
MTF_ANALYST

สคริปต์โอเพนซอร์ซ

ด้วยเจตนารมณ์หลักของ TradingView ผู้เขียนสคริปต์นี้ได้เผยแพร่เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถเข้าใจและตรวจสอบได้ ต้องขอบคุณผู้เขียน! ที่ให้คุณใช้ได้ฟรี แต่การนำโค้ดนี้ไปใช้ในการเผยแพร่ซ้ำจะต้องอยู่ภายใต้ กฎระเบียบการใช้งาน คุณสามารถตั้งเป็นรายการโปรดเพื่อใช้บนชาร์ตได้

ต้องการที่จะใช้สคริปต์นี้บนชาร์ตใช่ไหม?

คำจำกัดสิทธิ์ความรับผิดชอบ