OPEN-SOURCE SCRIPT
Cập nhật LTF Volume marker

LTF Volume Marker
Overview:
The LTF Volume Marker highlights candles that contain volume spikes on a lower timeframe (LTF), even while you are viewing a higher timeframe chart. It is designed to help identify hidden volume activity that may not be visible when aggregating candles.
This indicator is conceptually similar to a volume profile — but instead of showing distribution across price levels, it visualizes volume clusters within the structure of a sloped trend or time-based aggregation.
Key Features:
✅ Automatically detects high-volume candles on a user-defined lower timeframe
✅ Marks the price level of volume spikes using weighted average price (VWAP) within higher timeframe bars
✅ Supports both manual threshold and auto mode (which highlights top X% of volume candles in a selected range)
✅ Fully adjustable timeframe and date range
✅ Displays either a point or an area at the spike location or together
How It Works:
Use Cases:
Notes:
Overview:
The LTF Volume Marker highlights candles that contain volume spikes on a lower timeframe (LTF), even while you are viewing a higher timeframe chart. It is designed to help identify hidden volume activity that may not be visible when aggregating candles.
This indicator is conceptually similar to a volume profile — but instead of showing distribution across price levels, it visualizes volume clusters within the structure of a sloped trend or time-based aggregation.
Key Features:
✅ Automatically detects high-volume candles on a user-defined lower timeframe
✅ Marks the price level of volume spikes using weighted average price (VWAP) within higher timeframe bars
✅ Supports both manual threshold and auto mode (which highlights top X% of volume candles in a selected range)
✅ Fully adjustable timeframe and date range
✅ Displays either a point or an area at the spike location or together
How It Works:
- You define a Lower Timeframe (e.g. 1-minute) and optionally a threshold or use the auto mode to dynamically calculate it from past data.
- On higher timeframes (e.g. 5-min, 15-min), the indicator looks inside each bar, finds all volume spikes, and plots the volume-weighted average price of those spikes.
- If you are on the same timeframe as the LTF, it simply highlights candles with volume exceeding the threshold.
Use Cases:
- Spotting hidden volume clusters inside trending moves
- Validating support/resistance levels with underlying volume
- Filtering false breakouts using intra-bar volume
- Enhancing scalping and intraday setups by visualizing internal structure
Notes:
- The indicator ignores future-looking data (lookahead=off) and only processes completed bars.
- If the chart’s timeframe is lower than the selected LTF, the indicator will automatically disable itself.
- Works best with aggregated symbols, such as futures or cryptocurrencies with high resolution data.
Phát hành các Ghi chú
Some minor changesPhát hành các Ghi chú
🔄 What's New in This Version🧠 Auto Threshold Logic — Fixed&Updated
Due to Pine Script’s single-pass execution model, it's not possible to calculate and then render data in two separate passes. To overcome this limitation, the auto-threshold logic has been redesigned:
The auto threshold is now calculated over a separate, user-defined accumulation interval.
Visualization of volume clusters is performed only in the subsequent display interval, ensuring that the threshold remains fixed and consistent.
This separation ensures accurate threshold calculation without retroactively affecting earlier bars.
🛠️ Manual Mode Enhancements
Added support for up to 10 custom symbol–volume pairs.
When manual mode is enabled, the indicator automatically applies a per-symbol volume threshold if a match is found.
A default fallback threshold is used when the current symbol is not listed.
Mã nguồn mở
Theo đúng tinh thần TradingView, người tạo ra tập lệnh này đã biến tập lệnh thành mã nguồn mở để các nhà giao dịch có thể xem xét và xác minh công năng. Xin dành lời khen tặng cho tác giả! Mặc dù bạn có thể sử dụng miễn phí, nhưng lưu ý nếu đăng lại mã, bạn phải tuân theo Quy tắc nội bộ của chúng tôi.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, người tạo ra tập lệnh này đã biến tập lệnh thành mã nguồn mở để các nhà giao dịch có thể xem xét và xác minh công năng. Xin dành lời khen tặng cho tác giả! Mặc dù bạn có thể sử dụng miễn phí, nhưng lưu ý nếu đăng lại mã, bạn phải tuân theo Quy tắc nội bộ của chúng tôi.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.