PINE LIBRARY

StringtoNumber

This library is used to convert Text type numbers are numbers.

Library "StringtoNumber"
str1 = '12340' , vv = numstrToNum(str1)

numstrToNum()


Example

// This source code is subject to the terms of the Mozilla Public License 2.0 at mozilla.org/MPL/2.0/
// © hapharmonic

//version=5
indicator("My Script")
import hapharmonic/StringtoNumber/1 as CV

TF = '240'
GETTF = CV.numstrToNum(TF)
L = label.new(bar_index, high, '|| numstrToNum :>> || ' + str.tostring(GETTF), style=label.style_label_down,size=size.large)
label.delete(L[1])
converterformattingstrategiesstrtonumbertechindicator

Pine library

In true TradingView spirit, the author has published this Pine code as an open-source library so that other Pine programmers from our community can reuse it. Cheers to the author! You may use this library privately or in other open-source publications, but reuse of this code in a publication is governed by House rules.


💎🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸💎

🤖If you want access, then please send me a message with your request. Thank you!

💎🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸💎
Also on:

Disclaimer