Bitfinex Spot vs Margin Volume - Multi-asset

The Bitfinex Spot vs Margin Volume - Multi-asset indicator was designed to help understanding how volume is composed between Spot and Margin transactions, considering all possible scenarios.  

It provides valuable additional insight on how 'smarter money' is behaving in anticipation of possible upcoming moves, and can contribute to current analysis toolkits.

To request access, please send me a direct message.

Main features:
  • Spot vs. Margin insight for all margin-enabled Bitfinex pairs (dynamically detected from Chart).
  • Can be used on non-Bitfinex Charts which share same Ticker (eg. BTCUSD on Bitfinex or Bitstamp ). Also dynamically detected.
  • Can be used in a separate pane (default) or added to main chart, as a standard volume indicator.

    Shapes' meanings:
  • Colored bars represent scenario where maximum possible volume is attributed to Spot transactions (and its corresponding effect on Margin, if any).
  • Histograms (thin bars) represent scenario where maximum possible volume is attributed to Margin transactions (and its corresponding effect on Spot, if any).
  • When volume information leaves room for ambiguity, there will be a mismatch between maximums and minimums. Truth will be somewhere in the middle.
  • By default, Spot and Margin volumes are stacked up, as in traditional volume bar style.This can be disabled in Options - in which case Margin volumes are presented below zero line (this can facilitate some readings; see notes).
  • Standard volume for current chart's pair is presented in light gray, in the background. It helps seeing realtime volume and any surplus volume in relation to Bitfinex's.

  • By default, Spot volume bars are colored in blue, but you can choose to use price closes to define them instead - as in traditional volume indicators.
  • You can also choose to invert Spot and Margin colors, so that Spot volumes are presented in higher contrast.
  • Margin volumes are, by default, colored based on whether Longs or Shorts were more relevant.

    Direction attribution:
  • Default ratio threshold to define above-mentioned relevance is 1.1 (10%). (eg.: if Longs were greater than Shorts, Longs' volume must be at least 10% grater than Shorts' for direction of movement to be attributed to Longs). Direction then is defined based on winning side, plus whether openings or closings were dominant.
  • Threshold be configured from 1.01 to N. If ratio is below threshold, direction is considered neutral (yellow/orange colors).
  • Based on this assessment, label signals are presented at top area of chart, indicating whether opening(+) or closing(-) Longs or Shorts were the major responsibles for the move.
  • By default, to avoid much cluttering, labels are presented only for greater-than-average ( ema 17) margin volumes. This can also be customized in Options.

    Claim transactions:
  • Claim transactions are margin positions closed with traders' own existing assets being handed in to lenders. Thus, they do not impact order books -- and volume -- when executed.
  • Still, they are an additional, potentially valuable source of information, and the indicator is able to detect and report them.
  • Green triangle-like area shapes represent Longs closed with Claim transaction(s). Likewise, similar red shapes represent Shorts closed with Claim transactions.
  • This topic is explained in greater detail in this Bitfinex article.

    When using stacked up visualization, values in data window do not correspond to actual margin volumes. To see actual values, change to non-stacked up mode, and ignore negative sign.
    The lower the time frame, the more precise it gets.

    To request access, please send me a direct message.

    For questions and feedbacks, please share them in comments section below.

    Thank you, and best of success on your trades.
Dec 30
Release Notes: V. 1.0.1

  • Sample usage insights:
  • Alternate Spot and Margin Colors fixed to come disabled by default (original intended behavior).
Jan 01
Release Notes: V. 1.1

New features:

  • Automatic detection of corresponding margin-enabled pair for many crypto Derivatives (eg. shows BTCUSD volume for XBTUSD charts). List to be updated regularly (suggestions are welcome!)
  • Allows selecting a custom pair for seeing margin-enabled volume, independently of chart's pair.
  • Display / hide margin-enabled pair real time volume bar (preliminary volume info).
  • Display / hide chart's pair standard volume. Allows seeing any bar-to-bar surplus from a non-Bitfinex or different, custom pair. Please note that very large volumes (eg. highly leveraged XBTUSD) may compromise comparability / viewability, even if volume conversion is enabled (see below). For this reason, this feature is 'off' by default.
  • Convert chart's pair volume to matched or custom pair basis (eg. shows BitMEX's XBTCUSD volume in BTC, using Bitfinex's price close for the bar). Useful to enhance comparability / viewability. Effective if 'Display chart's pair volume' setting is on).
  • Other minor improvements on settings page.

A special thanks to yatrader2 for helping out with some Pine Script for this release.

Hope you all enjoy the update!

And Happy New Year!
Jan 01
Release Notes:

  • Fix on 'Custom' pair feature.
  • Enhanced presentation chart.
Remove from Favorite Scripts Add to Favorite Scripts
Telegram Channel:
Enhanced Spot vs. Margin Volume Indicator:
Indicator's educational / Q&A chat group:


Access would be appreciated sir
+1 Reply
PhinkTrade wisnuxxx45
@wisnuxxx45, granted! Please, check above.. Best.
This looks dope man. May I get access too? Thanks again man!
Hi there, folks!

Just realized the indi shows at top of "volume indicator" and "margin": categories for invite-based scripts.

Since such indis are only shown after all other ones, by Tradingview's sorting rule, I think this is pretty good!

Thank you very much for such a warm welcome!
Glad to be able to help.


May i have permission please
This indicator seems very useful. I would definitely like to try it out.
Just have to register here my gratitude also for Hsaka's (twitter: @HsakaTrades) after his great feedback, and @Zezo_Duarte for sharing with him, amongst many others.

Thank you very much, guys!
Wish you all the best!

I'm still trying to understand the implications of this script, but thanks for writing it.
Hi @jbeppu! This is great feedback. Ty! Appreciate you diving in!

From my own experience, as well as from other users' feedbacks so far, I see having this perspective has the potential to reveal other aspects and correlations, perhaps not so easily visible until now.
Also, it seems the familiar form-factor helps much integrating the indicator with existing trading environments / indicators setups, without compromises. It just adds up.

Bottom line, for me, so far, is: for long I've wished to see this information, in this way. Amazingly, end result overcame my expectations (it's so good when it happens, right?) ;)
So, I'm honestly very happy with it now. More than this, to be able to bring it here, to you guys, and learn and grow together, is just beyond fantastic!

Thank you (all), once more, for trying it out and sharing your feedbacks!

Out of this process, it occurred to me it could be good to put together a Telegram group we can use to discuss results and share insights, on a more interactive way.
I'll be glad if you join and bring your perspectives there. We'll likely learn one or two new, valuable things there.

Here's the link:


Looks great man, would love to try it out.
Home Stock Screener Forex Screener Crypto Screener Economic Calendar How It Works Chart Features Pricing Refer a friend House Rules Help Center Website & Broker Solutions Widgets Charting Solutions Lightweight Charting Library Blog & News Twitter
Profile Profile Settings Account and Billing Refer a friend My Support Tickets Help Center Ideas Published Followers Following Private Messages Chat Sign Out