OPEN-SOURCE SCRIPT
已更新

LTF Volume marker

2 447
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:
  • 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.
發行說明
Some minor changes
發行說明
🔄 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.

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。