OPEN-SOURCE SCRIPT

Volume + Margin Toolkit (Longs & Shorts)

By gamazama
Updated
-predicts volume on current bar based on how long is left in the bar
-shows how much volume is spent on margin positions
-shows how much buy & sell volume on margin positions
-shows volume in fiat value
-normalized view shows percent of volume spent on margin
-sma

-enter the security name for shorts & longs data, by default it is set to BITFINEX:BTCUSDLONGS and BTCUSDSHORTS.
Release Notes
Added option to separate volume into up,down, and neutral volume from your preferred timeframe

snapshot
bitfinexlongsmarginshortsVolume IndicatorVolume

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?

Disclaimer