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 정신에 따라, 이 스크립트의 저자는 트레이더들이 이해하고 검증할 수 있도록 오픈 소스로 공개했습니다. 저자에게 박수를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 출판물에서 이 코드를 재사용하는 것은 하우스 룰에 의해 관리됩니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.

차트에 이 스크립트를 사용하시겠습니까?

면책사항