INVITE-ONLY SCRIPT

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.

    Colors:
  • 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.

    Notes:[1]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.
    [2]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.
發行說明
V. 1.0.1

  • Sample usage insights: 快照
  • Alternate Spot and Margin Colors fixed to come disabled by default (original intended behavior).
發行說明
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!
發行說明
[V. 1.1.1/b]

  • Fix on 'Custom' pair feature.
  • Enhanced presentation chart.
bitfinexbitfinexlongsbitfinexshortscryptoCryptocurrencymarginmargin-tradingspotVolume IndicatorVolume

僅限邀請腳本

僅限作者授權的用戶訪問此腳本,並且通常需要付費。您可以將其增加到收藏腳本中,但是只有在向作者請求並獲得許可之後,才能使用它。 請聯繫PhinkTrade以了解更多信息,或按照下面作者的說明進行操作。

TradingView 不建議購買並使用此腳本,除非您 100% 信任其作者並了解腳本的工作原理。在許多情況下,您可以在我們的社群腳本中免費找到良好的開源替代方案。

作者的說明

想在圖表上使用此腳本?

警告:請閱讀,然後再請求訪問權限。

Price Finder Indicator Quick Start: bit.ly/phinktrade_pricefinder_qs2
Telegram Channel: bit.ly/phinktrade_tc
Twitter: bit.ly/phinktrade_tw
更多:

免責聲明