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.
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。