This should represent longs/shorts better than the ratio or longs/shorts by themselves because it is weighted more towards recent actions instead of pre-existing positions and includes closed positions as well.
Sorry if I haven't replied to your message yet, I'm a bit backlogged :)
Protected script
This script is published closed-source and you may privately use it freely.
Want to use this script on a chart?
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.