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
Sorry if I haven't replied to your message yet, I'm a bit backlogged :)