Just 7 segment display, is you would like to display numbers you can use this code.
Of course you can the same logique with 10 plotchar (for 0123456789) for each digit but tradingview limit at 64 the number of plots, so you will be limited at 6 digits.
The advantage of 7 segment display it's that you can display 9 digits :)
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.