OPEN-SOURCE SCRIPT
Custom Weekly Volume Profile [Multi-Timeframe]

Description: This indicator renders a high-precision Weekly Volume Profile that resets at the start of every trading week. Unlike standard fixed-range profiles, this script builds the profile bar-by-bar using lower timeframe data (e.g., 1-minute or 5-minute data) to ensure accuracy even on higher timeframe charts.
It is designed for traders who track the developing value of the current week (Auction Market Theory) and need specific alerts when price tests the edges of value.
Key Features:
Developing Weekly Profile:
The profile resets automatically at the beginning of the week (Sunday/Monday).
It tracks the Point of Control (POC), Value Area High (VAH), and Value Area Low (VAL) in real-time as the week progresses.
Previous Week Levels:
The script automatically stores the final levels (POC, VAH, VAL) of the previous week and projects them forward. This allows you to trade tests of the prior week's value.
Auto-Scaling Histogram:
Smart Width: The profile starts wider at the beginning of the week (when data is sparse) and automatically shrinks as the week progresses (Thursday/Friday) to keep your chart clean and readable.
Advanced Alerting:
Crossover Alerts: Trigger alerts when price crosses the developing VAH/VAL or the previous week's levels.
Time Window Filter: Includes a session input (default 08:30-15:00) to restrict alerts to specific trading hours, preventing notifications during low-volume overnight sessions.
Customization:
Precision: Adjustable "Row Size" and "Calculation Timeframe" to tune performance vs. accuracy.
Visuals: Full color control over the Value Area, Outer Volume, and Level Lines.
Settings:
Calculation Precision: Determines the lower timeframe used to calculate the volume (e.g., set to "5" for 5-minute precision).
Value Area %: Default is 70%, standard for AMT trading.
Timezone: Adjustable to ensure the weekly reset aligns with your local exchange time (e.g., America/Chicago for CME Futures).
Disclaimer: This script is for educational and informational purposes only. It does not constitute financial advice, trading recommendations, or a solicitation to buy or sell any financial instrument. Trading futures and other financial markets involves significant risk and is not suitable for every investor. Past performance of any trading system or methodology is not necessarily indicative of future results. The user assumes all responsibility for any trading decisions made based on the information provided by this tool. Use at your own risk.
It is designed for traders who track the developing value of the current week (Auction Market Theory) and need specific alerts when price tests the edges of value.
Key Features:
Developing Weekly Profile:
The profile resets automatically at the beginning of the week (Sunday/Monday).
It tracks the Point of Control (POC), Value Area High (VAH), and Value Area Low (VAL) in real-time as the week progresses.
Previous Week Levels:
The script automatically stores the final levels (POC, VAH, VAL) of the previous week and projects them forward. This allows you to trade tests of the prior week's value.
Auto-Scaling Histogram:
Smart Width: The profile starts wider at the beginning of the week (when data is sparse) and automatically shrinks as the week progresses (Thursday/Friday) to keep your chart clean and readable.
Advanced Alerting:
Crossover Alerts: Trigger alerts when price crosses the developing VAH/VAL or the previous week's levels.
Time Window Filter: Includes a session input (default 08:30-15:00) to restrict alerts to specific trading hours, preventing notifications during low-volume overnight sessions.
Customization:
Precision: Adjustable "Row Size" and "Calculation Timeframe" to tune performance vs. accuracy.
Visuals: Full color control over the Value Area, Outer Volume, and Level Lines.
Settings:
Calculation Precision: Determines the lower timeframe used to calculate the volume (e.g., set to "5" for 5-minute precision).
Value Area %: Default is 70%, standard for AMT trading.
Timezone: Adjustable to ensure the weekly reset aligns with your local exchange time (e.g., America/Chicago for CME Futures).
Disclaimer: This script is for educational and informational purposes only. It does not constitute financial advice, trading recommendations, or a solicitation to buy or sell any financial instrument. Trading futures and other financial markets involves significant risk and is not suitable for every investor. Past performance of any trading system or methodology is not necessarily indicative of future results. The user assumes all responsibility for any trading decisions made based on the information provided by this tool. Use at your own risk.
Skrip sumber terbuka
Dalam semangat TradingView sebenar, pencipta skrip ini telah menjadikannya sumber terbuka, jadi pedagang boleh menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupuan anda boleh menggunakan secara percuma, ingat bahawa penerbitan semula kod ini tertakluk kepada Peraturan Dalaman.
Penafian
Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat TradingView sebenar, pencipta skrip ini telah menjadikannya sumber terbuka, jadi pedagang boleh menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupuan anda boleh menggunakan secara percuma, ingat bahawa penerbitan semula kod ini tertakluk kepada Peraturan Dalaman.
Penafian
Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.