OPEN-SOURCE SCRIPT
OBV Adaptive Volume [G IV]

OBV Adaptive Volume [G IV]
This is the foundational Commitment component of the ET Massif Framework Research suite.
Description
G IV is an adaptive On-Balance Volume that caps extreme volume spikes and accepts any source as input, producing a clean and raw measure of accumulation and distribution pressure without the skew caused by abnormal volume events.
Features

Volume Spikes Matter
Traditional volume indicators can be distorted when unusually large volume spikes occur. These spikes may reflect temporary liquidity events, news reactions, or block trades, which can heavily skew the OBV line and obscure the broader participation trend. Beyond a certain level of volume per bar, additional volume often represents churn rather than direction.

How to Use
Default Settings
Source: Close
Volume Cap: 2.5
Volume Lookback: 180
Volume cap and lookback can be adjusted depending on the instrument and market conditions.
日本語概要 (Japanese Summary)
G IVは、極端な出来高スパイクを上限設定(180日SMAの2.5倍)で制御し、任意のソースを入力可能な適応型OBVです。価格だけでなくEMA等の各種指標にも出来高を反映した累積計算を適用でき、異常値による歪みを排除したクリーンな蓄積(Accumulation)と分配(Distribution)の傾向を、ラグを抑えた市場参加データとして視覚化します。
中文概要 (Chinese Summary)
G IV 是一款自適應 OBV 指標,具備成交量上限機制(預設 180 週期 SMA 的 2.5 倍)以防止極端數值干擾,並支援自定義輸入來源。它能將成交量加權應用於價格或 EMA 等各類技術指標,有效排除異常波動帶來的偏誤,提供最原始且無滯後的市場吸納(Accumulation)與派發(Distribution)壓力數據。
Disclaimer
This script is intended for research and educational purposes only.
It does not constitute financial advice. Trading involves risk.
This is the foundational Commitment component of the ET Massif Framework Research suite.
Description
G IV is an adaptive On-Balance Volume that caps extreme volume spikes and accepts any source as input, producing a clean and raw measure of accumulation and distribution pressure without the skew caused by abnormal volume events.
Features
- Volume spike control – A configurable cap limits the impact of abnormal volume bursts, preventing volume spikes from overwhelming the cumulative total. By default, volume is capped at 2.5× the 180-period SMA of volume.
- Flexible input source – The indicator can be applied to any source, not just closing prices (HL2, OHLC4, or even other indicators).
- Raw participation focus – Designed to remain a direct measure of volume participation. Avoids the lag and noise common in heavily smoothed or oscillator-based OBV variants.
Volume Spikes Matter
Traditional volume indicators can be distorted when unusually large volume spikes occur. These spikes may reflect temporary liquidity events, news reactions, or block trades, which can heavily skew the OBV line and obscure the broader participation trend. Beyond a certain level of volume per bar, additional volume often represents churn rather than direction.
How to Use
- Same as standard OBV: Rising values = accumulation; Falling values = distribution
- Confirmation Layer
Apply the OBV transformation of any source to create a volume confirmation layer for other analytical tools (e.g. standard or custom indicators). Optionally, run a visual or z-score comparison between this output and the original source to identify divergences.
In the above example, the OBV transformation is applied to TRIX (Triple Exponential Average) and shown alongside the original.
Default Settings
Source: Close
Volume Cap: 2.5
Volume Lookback: 180
Volume cap and lookback can be adjusted depending on the instrument and market conditions.
日本語概要 (Japanese Summary)
G IVは、極端な出来高スパイクを上限設定(180日SMAの2.5倍)で制御し、任意のソースを入力可能な適応型OBVです。価格だけでなくEMA等の各種指標にも出来高を反映した累積計算を適用でき、異常値による歪みを排除したクリーンな蓄積(Accumulation)と分配(Distribution)の傾向を、ラグを抑えた市場参加データとして視覚化します。
中文概要 (Chinese Summary)
G IV 是一款自適應 OBV 指標,具備成交量上限機制(預設 180 週期 SMA 的 2.5 倍)以防止極端數值干擾,並支援自定義輸入來源。它能將成交量加權應用於價格或 EMA 等各類技術指標,有效排除異常波動帶來的偏誤,提供最原始且無滯後的市場吸納(Accumulation)與派發(Distribution)壓力數據。
Disclaimer
This script is intended for research and educational purposes only.
It does not constitute financial advice. Trading involves risk.
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.