OPEN-SOURCE SCRIPT
Weekly & Monthly Divider Lines — v6

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.
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.
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.