OPEN-SOURCE SCRIPT

Weekly & Monthly Divider Lines — v6

126
Instantly visualize the time structure on your charts with this simple and efficient indicator. It automatically plots vertical lines to mark the start of each new week and month, helping you segment price action and better understand the temporal context.

This is an essential tool for multi-timeframe analysis, identifying key period-open levels, or simply improving the visual clarity of your workspace.

✨ Key Features
Dual Display: Independently toggle weekly and monthly lines on or off.

Full Customization: Choose the color and width for each line type (weekly and monthly) to perfectly match your layout.

Time Range Control: Define how many years in the past and future you want the lines to be displayed. This keeps your chart clean by only loading relevant lines.

Optimized Performance (v6): This script uses Pine Script v6 and arrays for line management. It includes a function that automatically deletes the oldest lines when a maximum (configurable) count is reached, preventing the "Too many lines" error on charts with long historical data.

🛠️ Settings
Show Weekly/Monthly Lines: Check/uncheck to display the dividers.

Years to Display (Past/Future): Controls the time range for line plotting.

Color & Width: Customize the look of the lines.

Max Lines Kept Per Type: A technical parameter for memory management. The default value (250) is usually sufficient.

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

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.