OPEN-SOURCE SCRIPT
Net EOS Margin Position

Total EOS Longs minus EOS Shorts in order to give you the total outstanding EOS margin debt.
ie: If 5,000,000 EOS has been longed, and 4,000,000 EOS has been shorted, then 5,000,000 has been bought, and 4,000,000 sold, leaving us with 1,000,000 EOS (net) remaining to be sold to give us an overall neutral margin position.
That isn't to say that the net margin position must move towards zero, but it is a sensible reference point, and historical net values may provide useful insights into the current circumstances.
(Anyone know what category this script should be in?)
ie: If 5,000,000 EOS has been longed, and 4,000,000 EOS has been shorted, then 5,000,000 has been bought, and 4,000,000 sold, leaving us with 1,000,000 EOS (net) remaining to be sold to give us an overall neutral margin position.
That isn't to say that the net margin position must move towards zero, but it is a sensible reference point, and historical net values may provide useful insights into the current circumstances.
(Anyone know what category this script should be in?)
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.