OPEN-SOURCE SCRIPT
Telah dikemas kini Period Highlighter Pro

Period Highlighter Pro is a versatile Pine Script indicator designed to visually highlight specific time periods on your TradingView charts, making it easier to analyze seasonal patterns, trading sessions, or specific weekdays. With customizable settings for months, weekdays, or intraday time ranges, this tool adapts to your trading strategy, allowing you to focus on key periods with precision.
Features
How It Works
Select a highlight mode and configure the corresponding settings:
Use Cases
Why Use Period Highlighter Pro?
This indicator simplifies time-based analysis by providing a clear visual overlay for your chosen periods. Whether you're studying historical trends or focusing on specific trading hours, Period Highlighter Pro offers the flexibility and precision to enhance your chart analysis.
Licensed under the Mozilla Public License 2.0.
Features
- Flexible Highlight Modes: Choose from three modes to highlight:
- Month Range: Highlight specific months or a range (e.g., March to June) for seasonal analysis.
- Weekday Range: Highlight specific weekdays (e.g., Mondays or Monday to Wednesday) for weekly pattern analysis.
- Time Range: Highlight daily time windows (e.g., 15:30–22:00) for intraday session analysis, restricted to weekdays.
- Customizable Timezone: Set any IANA timezone (e.g., America/New_York, Europe/London) or UTC offset to align highlights with your preferred market hours.
- Historical Range Control: Define how far back to apply highlights with options for years (Month Range), weeks (Weekday Range), or days (Time Range).
- Visual Customization: Choose your highlight color to match your chart style.
- User-Friendly Inputs: Intuitive dropdowns and tooltips guide you through configuring each mode, ensuring only relevant settings are adjusted.
How It Works
Select a highlight mode and configure the corresponding settings:
- Month Range: Pick a start month and an optional end month (or "Disabled" for a single month) and set the number of years back.
- Weekday Range: Choose a start weekday and an optional end weekday (or "Disabled" for a single day) and set the number of weeks back.
- Time Range: Specify a start and end time (24-hour format) and the number of weekdays back. The indicator then applies a semi-transparent background color to chart bars that meet your criteria, making it easy to spot relevant periods.
Use Cases
- Seasonal Traders: Highlight specific months to analyze recurring market patterns.
- Day Traders: Focus on active trading sessions (e.g., New York open) with precise time range highlighting.
- Weekly Pattern Analysts: Isolate specific weekdays to study price behavior.
- Global Traders: Adjust for any timezone to align with your market of interest.
Why Use Period Highlighter Pro?
This indicator simplifies time-based analysis by providing a clear visual overlay for your chosen periods. Whether you're studying historical trends or focusing on specific trading hours, Period Highlighter Pro offers the flexibility and precision to enhance your chart analysis.
Licensed under the Mozilla Public License 2.0.
Nota Keluaran
Period Highlighter Pro is a versatile Pine Script indicator designed to visually highlight specific time periods on your TradingView charts, making it easier to analyze seasonal patterns, trading sessions, or specific weekdays. With customizable settings for months, weekdays, or intraday time ranges, this tool adapts to your trading strategy, allowing you to focus on key periods with precision.Nota Keluaran
Fixed some stuff and cleand up some code.Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.