MichelT

Store several numbers in a string

A method to store a bunch of numbers in one string.

Using my method of translating a string to a number, we can put several values in one string and then pop them up when we need.

To store the values I use a semicolon as a separator, so the format of the string is next one:

NUMBER:NUMBER:NUMBER:NUMBER

I don't see any useful application of this method (maybe, to pass some additional info to the script in one string), but maybe it'll be helpful to someone.
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 a publication is governed by House Rules. You can favorite it to use it 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.

Want to use this script on a chart?