OPEN-SOURCE SCRIPT
PVT Trend Channel

The PVT Trend Channel indicator is a trend-following tool based on the Price Volume Trend (PVT). PVT is a cumulative indicator that takes both price movement and trading volume into account — meaning a trend signal is only triggered when price moves with real volume behind it. This makes it significantly more reliable than indicators that rely on price alone.
How It Works
The indicator watches PVT for significant extremes:
Once a trend is confirmed, it stays active until the opposite signal appears. This keeps the indicator stable and prevents it from switching back and forth on every small move. The line is drawn using the actual price highs and lows of the lookback period, so it always reflects real price structure on your chart.
Why Volume Matters
Most trend indicators only look at price. The problem with that is that price can move on low volume — which often leads to false signals. PVT solves this by requiring volume to confirm the move. A bullish signal only fires when price rises and volume supports it. This filters out weak moves and keeps you aligned with trends that have real conviction behind them.
Settings
How It Works
The indicator watches PVT for significant extremes:
- When PVT hits its highest point within the lookback window — bullish trend is confirmed, upper line activates
- When PVT hits its lowest point within the lookback window — bearish trend is confirmed, lower line activates
Once a trend is confirmed, it stays active until the opposite signal appears. This keeps the indicator stable and prevents it from switching back and forth on every small move. The line is drawn using the actual price highs and lows of the lookback period, so it always reflects real price structure on your chart.
Why Volume Matters
Most trend indicators only look at price. The problem with that is that price can move on low volume — which often leads to false signals. PVT solves this by requiring volume to confirm the move. A bullish signal only fires when price rises and volume supports it. This filters out weak moves and keeps you aligned with trends that have real conviction behind them.
Settings
- h — How many bars back the indicator looks to detect a bullish PVT extreme (default: 29)
- l — How many bars back the indicator looks to detect a bearish PVT extreme (default: 25)
Recommended Usage- Best used on the 1D timeframe for clean and reliable trend identification
- Best used alongside other indicators — this tool identifies the trend, but should not be used alone for trade entries
- The two lookback periods are intentionally different — bullish and bearish trends often develop at different speeds, so treating them separately improves accuracy
This indicator does not repaint. All signals are confirmed on bar close.
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.