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精神,此脚本的作者已将其开源,以便交易者可以理解和验证它。向作者致敬!您可以免费使用它,但在出版物中重复使用此代码受网站规则约束。 您可以收藏它以在图表上使用。

想在图表上使用此脚本?

免责声明