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の精神に則り、このスクリプトの作者は、トレーダーが理解し検証できるようにオープンソースで公開しています。作者に敬意を表します!無料で使用することができますが、このコードを投稿で再利用するには、ハウスルールに準拠する必要があります。 お気に入りに登録してチャート上でご利用頂けます。

チャートでこのスクリプトを利用したいですか?

免責事項