OPEN-SOURCE SCRIPT

Simple Truncation Function

Main utility: legibility in alerts where certain values are not truncated.

It may prove helpful if tostring() is unavailable for use as well.
Bears Powerpinescript

Open-source script

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 publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?


My published indicators: tradingview.com/u/NeoButane/

Sorry if I haven't replied to your message yet, I'm a bit backlogged :)
Also on:

Disclaimer