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
- Added quanto swap
- Added a variable to change futures month code within the script itself
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 a publication is governed by House Rules. You can favorite it to use it on a chart.
Sorry if I haven't replied to your message yet, I'm a bit backlogged :)