OPEN-SOURCE SCRIPT
Volume Profile

Volume Profile — Daily & Weekly Levels
This indicator plots session-based Volume Profile levels directly on the chart, focusing on Daily and Weekly structures.
It is designed to help visualize areas where trading activity was most concentrated during the current and previous periods.
The script calculates and displays the following levels:
POC (Point of Control) — price level with the highest traded volume
VAH (Value Area High) — upper boundary of the value area
VAL (Value Area Low) — lower boundary of the value area
Features
Today’s Volume Profile
POC, VAH, and VAL updated in real time during the current trading day
Yesterday’s Volume Profile
Previous day’s POC, VAH, and VAL extended forward as reference levels
Current Weekly Volume Profile
Live weekly POC, VAH, and VAL
Previous Weekly Volume Profile
Last week’s completed POC, VAH, and VAL
Configurable Inputs
Adjustable number of volume bins (rows)
Custom value area percentage
Toggle visibility for daily, yesterday, weekly, and previous weekly levels
Optional labels with configurable horizontal offset
How it works
The indicator builds a custom volume distribution by aggregating volume across price bins within each session (daily or weekly).
From this distribution, it identifies:
The price level with maximum volume (POC)
The value area surrounding the POC based on the selected percentage
All calculations are performed locally using historical bar data, without external data sources.
Alerts
An alert condition is included that triggers when price crosses any visible Volume Profile level (POC, VAH, or VAL).
Notes
This indicator is designed for market structure and volume analysis.
This indicator plots session-based Volume Profile levels directly on the chart, focusing on Daily and Weekly structures.
It is designed to help visualize areas where trading activity was most concentrated during the current and previous periods.
The script calculates and displays the following levels:
POC (Point of Control) — price level with the highest traded volume
VAH (Value Area High) — upper boundary of the value area
VAL (Value Area Low) — lower boundary of the value area
Features
Today’s Volume Profile
POC, VAH, and VAL updated in real time during the current trading day
Yesterday’s Volume Profile
Previous day’s POC, VAH, and VAL extended forward as reference levels
Current Weekly Volume Profile
Live weekly POC, VAH, and VAL
Previous Weekly Volume Profile
Last week’s completed POC, VAH, and VAL
Configurable Inputs
Adjustable number of volume bins (rows)
Custom value area percentage
Toggle visibility for daily, yesterday, weekly, and previous weekly levels
Optional labels with configurable horizontal offset
How it works
The indicator builds a custom volume distribution by aggregating volume across price bins within each session (daily or weekly).
From this distribution, it identifies:
The price level with maximum volume (POC)
The value area surrounding the POC based on the selected percentage
All calculations are performed locally using historical bar data, without external data sources.
Alerts
An alert condition is included that triggers when price crosses any visible Volume Profile level (POC, VAH, or VAL).
Notes
This indicator is designed for market structure and volume analysis.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.