OPEN-SOURCE SCRIPT
Volume Profile - Previous Day

Previous Day Volume Profile (PDVP) plots a fixed volume distribution for the prior trading day directly on your chart.
It builds a price-by-volume histogram from the previous session and highlights key auction levels:
POC (Point of Control): the price level with the highest traded volume
VAH / VAL (Value Area High/Low): the value area boundaries based on your selected percentage
Previous Day High/Low: optional session extremes for context
How to Use It
Contextual Trading: Use the vPOC (Point of Control) and Value Area as magnets or hurdles for price.
Price staying inside the Value Area suggests a balanced/ranging market.
Price breaking out of the Value Area suggests a trend initiation.
Mean Reversion: Look for "Value Area Rejections" at the VAH or VAL to play moves back toward the POC.
PDH/PDL Anchors: The blue rays provide instant daily bias. Breaking the Previous Day High often signals bullish momentum, while failing to do so suggests a potential reversal.
Settings
Auto-Detect Settings: Toggle this on to let the script handle the math, or toggle off to input your own custom "Row Height" in ticks.
Value Area %: Defaulted to 70% (Standard).
Histogram Width: Adjust how far the profile extends across your chart.
Calculation Granularity: Defaulted to 10m for the best balance of speed and accuracy.
It builds a price-by-volume histogram from the previous session and highlights key auction levels:
POC (Point of Control): the price level with the highest traded volume
VAH / VAL (Value Area High/Low): the value area boundaries based on your selected percentage
Previous Day High/Low: optional session extremes for context
How to Use It
Contextual Trading: Use the vPOC (Point of Control) and Value Area as magnets or hurdles for price.
Price staying inside the Value Area suggests a balanced/ranging market.
Price breaking out of the Value Area suggests a trend initiation.
Mean Reversion: Look for "Value Area Rejections" at the VAH or VAL to play moves back toward the POC.
PDH/PDL Anchors: The blue rays provide instant daily bias. Breaking the Previous Day High often signals bullish momentum, while failing to do so suggests a potential reversal.
Settings
Auto-Detect Settings: Toggle this on to let the script handle the math, or toggle off to input your own custom "Row Height" in ticks.
Value Area %: Defaulted to 70% (Standard).
Histogram Width: Adjust how far the profile extends across your chart.
Calculation Granularity: Defaulted to 10m for the best balance of speed and accuracy.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.