OPEN-SOURCE SCRIPT

Period Marker

This Period Marker Indicator for TradingView is a visual tool that allows you to highlight a specific date range on your chart. It uses a shaded background color to mark the defined period, making it easy to visually separate and focus on specific time intervals. This is especially useful for analyzing historical events, comparing specific timeframes, or marking earnings seasons or other critical periods in price action.

Key Features
Easy Date Range Selection:

The indicator has a calendar-style date input for both the start and end dates. This allows for quick and precise selection of date ranges without manually entering each date component (year, month, day).
Customizable Period Highlight:

When active, the indicator shades the background of the chart over the specified period. The default highlight color is a semi-transparent green, but this can be customized within the script to any color and opacity you prefer.
The shaded background helps you easily identify and focus on the defined date range.
Dynamic Adjustment:

You can adjust the start and end dates in real-time, and the background shading will automatically update to reflect the new period, allowing flexibility in testing and viewing multiple periods quickly.
Practical Uses
Event Marking: Track significant historical events (e.g., economic data releases, geopolitical events) to see their effects on price action.
Seasonal Analysis: Highlight and compare seasonal trends, such as quarterly earnings or year-end rallies, across multiple years.
Backtesting Specific Periods: When analyzing strategies, you can visually isolate specific date ranges to review performance or behavior in defined intervals.
The Period Marker Indicator is a simple yet effective way to enhance time-based analysis on TradingView, helping you gain insights by focusing on relevant periods with ease.
Bands and Channels

Скрипт с открытым кодом

В истинном духе TradingView автор этого скрипта опубликовал его с открытым исходным кодом, чтобы трейдеры могли понять, как он работает, и проверить на практике. Вы можете воспользоваться им бесплатно, но повторное использование этого кода в публикации регулируется Правилами поведения. Вы можете добавить этот скрипт в избранное и использовать его на графике.

Хотите использовать этот скрипт на графике?

Отказ от ответственности