OPEN-SOURCE SCRIPT
Weekly High/Low Day Stats

This TradingView Pine Script (v5) analyzes weekly highs and lows to identify on which day of the week (Monday → Friday) they most frequently occur.
🔎 How it works:
Tracks the weekly highest high and lowest low.
At the end of each week, it records the day of the week when the high and low were set.
Keeps historical data for the last 100 weeks (adjustable).
Displays a table showing:
How many times each day marked the weekly high or weekly low.
The corresponding percentage distribution.
🎯 Use case:
Helps traders understand the weekly timing tendency
Reveals which day is statistically more likely to set the weekly high or weekly low.
Useful for weekly planning and strategies that rely on market structure and timing (e.g., ICT concepts like the "High/Low of the Week").
🔎 How it works:
Tracks the weekly highest high and lowest low.
At the end of each week, it records the day of the week when the high and low were set.
Keeps historical data for the last 100 weeks (adjustable).
Displays a table showing:
How many times each day marked the weekly high or weekly low.
The corresponding percentage distribution.
🎯 Use case:
Helps traders understand the weekly timing tendency
Reveals which day is statistically more likely to set the weekly high or weekly low.
Useful for weekly planning and strategies that rely on market structure and timing (e.g., ICT concepts like the "High/Low of the Week").
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.