OPEN-SOURCE SCRIPT
Atualizado Volume Profile with HVN / LVN Detection (Low-TF Safe)

Session-based volume profile with VPOC, HVN, and LVN detection, optimized for fast charts and runtime-safe lower-timeframe execution.
Volume Profile with HVN / LVN Detection (Low-TF Safe)
This indicator plots a session-based Volume Profile, highlights the Volume Point of Control (VPOC), and automatically detects High Volume Nodes (HVNs) and Low Volume Nodes (LVNs) from the completed profile.
It is a performance-focused refactor of the original Volume Profile With HVN/LVN Detector, redesigned to work reliably on fast timeframes (including 5-second charts) without runtime errors.
Features
Designed for traders who use volume structure to identify acceptance, rejection, and potential support/resistance zones across all chart timeframes.
---
What’s new in this version
This update prioritizes stability, correctness, and cross-timeframe compatibility.
---
Credits & Attribution
This script is based on the original
“Volume Profile With HVN/LVN Detector”
by tradeforopp (revised by Madpuppy88).
The current version refactors the original implementation to improve:
Original concept and core logic credit remain with the original authors.
---
How to Use
Volume Profile with HVN / LVN Detection (Low-TF Safe)
This indicator plots a session-based Volume Profile, highlights the Volume Point of Control (VPOC), and automatically detects High Volume Nodes (HVNs) and Low Volume Nodes (LVNs) from the completed profile.
It is a performance-focused refactor of the original Volume Profile With HVN/LVN Detector, redesigned to work reliably on fast timeframes (including 5-second charts) without runtime errors.
Features
- Session-based volume profile with adjustable row resolution
- VPOC with optional extension and date labeling
- Automatic HVN and LVN detection from the prior session
- HVNs and LVNs displayed as levels or areas
- Configurable strength, colors, and line/area styles
- Runtime-safe lower-timeframe handling using
Pine Script® - Optimized to reduce execution overhead on high-frequency charts
Designed for traders who use volume structure to identify acceptance, rejection, and potential support/resistance zones across all chart timeframes.
---
What’s new in this version
- Refactored lower-timeframe logic to prevent runtime errors on fast charts
- Automatic, runtime-safe fallback when selected lower TF exceeds chart TF
- Stable execution on very low timeframes (e.g. 5s, 10s)
- Preserved original profile, VPOC, HVN, and LVN behavior
- No repainting of completed session profiles
This update prioritizes stability, correctness, and cross-timeframe compatibility.
---
Credits & Attribution
This script is based on the original
“Volume Profile With HVN/LVN Detector”
by tradeforopp (revised by Madpuppy88).
The current version refactors the original implementation to improve:
- Runtime safety on low timeframes
- Performance on high-frequency charts
- Robust multi-timeframe handling
Original concept and core logic credit remain with the original authors.
---
How to Use
- VPOC highlights the price level of highest traded volume for the session and often acts as a magnet or balance point.
- HVNs represent areas of acceptance where price previously traded heavily and may act as support/resistance or consolidation zones.
- LVNs mark areas of rejection where price moved quickly and may act as inflection or breakout levels.
- Use HVNs and LVNs from the prior session to frame intraday bias, targets, and risk zones.
- On very fast charts, the script automatically falls back to chart-timeframe data to maintain stability.
Notas de Lançamento
Session-based volume profile with VPOC, HVN, and LVN detection, optimized for fast charts and runtime-safe lower-timeframe execution.Volume Profile with HVN / LVN Detection (Low-TF Safe)
This indicator plots a session-based Volume Profile, highlights the Volume Point of Control (VPOC), and automatically detects High Volume Nodes (HVNs) and Low Volume Nodes (LVNs) from the completed profile.
It is a performance-focused refactor of the original Volume Profile With HVN/LVN Detector, redesigned to work reliably on fast timeframes (including 5-second charts) without runtime errors.
Features
- Session-based volume profile with adjustable row resolution
- VPOC with optional extension and date labeling
- Automatic HVN and LVN detection from the prior session
- HVNs and LVNs displayed as levels or areas
- Configurable strength, colors, and line/area styles
- Runtime-safe lower-timeframe handling using
*Optimized to reduce execution overhead on high-frequency charts
Designed for traders who use volume structure to identify acceptance, rejection, and potential support/resistance zones across all chart timeframes.
---
What’s new in this version
Refactored lower-timeframe logic to prevent runtime errors on fast charts
Automatic, runtime-safe fallback when selected lower TF exceeds chart TF
Stable execution on very low timeframes (e.g. 5s, 10s)
Preserved original profile, VPOC, HVN, and LVN behavior
No repainting of completed session profiles
This update prioritizes stability, correctness, and cross-timeframe compatibility.
---
Credits & Attribution
This script is based on the original
“Volume Profile With HVN/LVN Detector”
by tradeforopp (revised by Madpuppy88).
The current version refactors the original implementation to improve:
*Runtime safety on low timeframes
*Performance on high-frequency charts
*Robust multi-timeframe handling
Original concept and core logic credit remain with the original authors.
---
How to Use
*VPOC highlights the price level of highest traded volume for the session and often acts as a magnet or balance point.
*HVNs represent areas of acceptance where price previously traded heavily and may act as support/resistance or consolidation zones.
*LVNs mark areas of rejection where price moved quickly and may act as inflection or breakout levels.
*Use HVNs and LVNs from the prior session to frame intraday bias, targets, and risk zones.
*On very fast charts, the script automatically falls back to chart-timeframe data to maintain stability.
Notas de Lançamento
Session-based Volume Profile with VPOC, HVN, and LVN detection—optimized for fast charts with runtime-safe lower-timeframe execution and improved label layout controls.Volume Profile with HVN / LVN Detection (Low-TF Safe)
This indicator plots a session-based Volume Profile, highlights the Volume Point of Control (VPOC), and automatically detects High Volume Nodes (HVNs) and Low Volume Nodes (LVNs) from the completed profile.
It is a performance-focused refactor of the original *Volume Profile With HVN/LVN Detector*, redesigned to run reliably on fast timeframes (including 5-second charts) without runtime errors.
Features
- Session-based Volume Profile with adjustable row resolution
- VPOC with optional extension and optional date labels
- Automatic HVN and LVN detection from the prior session
- HVNs and LVNs displayed as levels (lines) or areas (boxes)
- Configurable node strength, colors, and line/area styles
- Runtime-safe lower-timeframe handling via
Pine Script® - Optimized to reduce execution overhead on high-frequency charts
Designed for traders who use volume structure to identify acceptance, rejection, and potential support/resistance zones across all chart timeframes.
---
What’s new in this version
- Added VPOC label horizontal offset control: adjust the x-position of VPOC date labels via an input slider (no more hardcoded placement).
- Improved multi-instance readability: easier to run multiple copies (e.g., daily/weekly/monthly profiles) without labels rendering too far right.
- Stability improvements while refactoring: predeclared key session variables to avoid “undeclared identifier” issues during updates/refactors.
Prior release improvements (still included)
- Refactored lower-timeframe logic to prevent runtime errors on fast charts
- Automatic, runtime-safe fallback when selected lower TF exceeds chart TF
- Stable execution on very low timeframes (e.g., 5s, 10s)
- Preserved original profile, VPOC, HVN, and LVN behavior
- No repainting of completed session profiles
This update prioritizes stability, correctness, cross-timeframe compatibility, and clearer on-chart presentation.
---
Credits & Attribution
This script is based on the original *“Volume Profile With HVN/LVN Detector”* by **tradeforopp** (revised by **Madpuppy88**).
The current version refactors the original implementation to improve:
- Runtime safety on low timeframes
- Performance on high-frequency charts
- Robust multi-timeframe handling
- On-chart label customization for better visibility
Original concept and core logic credit remain with the original authors.
---
How to Use
- VPOC marks the highest-volume price level for the session and often acts as a magnet/balance point.
- HVNs represent acceptance zones where price previously traded heavily (often support/resistance or consolidation).
- LVNs represent rejection zones where price moved quickly (often inflection/breakout areas).
- *Use prior-session HVNs/LVNs to frame intraday bias, targets, and risk zones.
- On very fast charts, the script automatically falls back to chart-timeframe data to maintain stability.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.