OPEN-SOURCE SCRIPT

[MAD] BTC ETF Volume In/Outflow

Updated
The " BTC ETF Volume In/Outflows" indicator is designed to analyze and visualize the volume data of various Bitcoin Exchange-Traded Funds (ETFs) across different exchanges. This indicator helps traders and analysts observe the inflows and outflows of trading volume in a structured and comparative manner.

Features
Multi-Ticker Support: The indicator is capable of handling volume data from multiple ETFs simultaneously, making it versatile for comparative analysis.
Volume Adjustments: Provides an option to view volume data either as the number of pieces (shares) traded or as monetary flow (value traded).
Compression Factor: Includes a volume compression factor setting that helps in emphasizing smaller volume changes or smoothing out volume spikes.

Data Calculation
Volume data is processed using a custom function that adjusts the data based on user settings for piece or monetary representation and applies a logarithmic compression factor.
This processed data is then fetched for each ticker.

Visualization
Volume data is visualized on the chart using column plots where each ETF's volume data is stacked and offset to provide a clear visual representation of in/outflows. Horizontal lines indicate the zero level for reference.

Usage Scenario
This indicator is particularly useful for traders who track multiple ETFs and need to compare their volume activities simultaneously. It provides insights into market trends, potentially indicating bullish or bearish shifts based on volume inflows and outflows across different instruments.

have fun :-)
Release Notes
Deltamode was added on multiple request, so only the difference from buy and sell is shown, not all the volume
Release Notes
Screenshot update with removed secondary indicator

Thanks for the correction opportunity PineCoders
Release Notes
ETH ETFs included now (Switchable)
Release Notes
added switchable extended session and did a compensation calculation for the moneyflow so it matches volume*etfprice even when splitting to positive and negative volume (which is an estimate)
Release Notes
custom multiplier for output values to shrink scale when volume is very big
Bitcoin (Cryptocurrency)BTCETFinflowoutflowVolume

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?


djmad|Bitblockart

Disclaimer