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.
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.