OPEN-SOURCE SCRIPT

Margin Changes Per Bar [Bitfinex]

By NeoButane
Updated
This indicators shows the changes in margin data for Bitfinex from previous bar. This means if you're looking at the 1 hour chart, it will show changes since the previous hour. 1 day chart = changes since the previous day.

Useful for seeing if a price move was due to stop runs, if a trade has become too crowded, or whatever wacky theories you have for margin data.

Automated to switch to whichever ticker you're currently viewing if it has margin trading enabled on Bitfinex. It adapts to any exchange, including BitMEX.

// Green: opened longs since previous bar
// Teal: close longs since previous bar
// Red: opened shorts since previous bar
// Gray: closed shorts since previous bar
Release Notes
- Ticker refresh for the current futures month code
- Added quanto swap
- Added a variable to change futures month code within the script itself
Release Notes
Added stablecoin tickers for autodetection, updated futures
bitfinexbitmexmarginthelasttimeillmakebfxmarginindicatoragainVolume
NeoButane
My published indicators: tradingview.com/u/NeoButane/

Sorry if I haven't replied to your message yet, I'm a bit backlogged :)

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