Example overload functions accept loading of _value for types float, int, or string, then positively identifies the actual argument type of that specific loaded _value.
Example function accepts loading of _value for types float, int, or string, then identifies whether the loaded _value is a string number, string, or number.
Custom toInteger() function accepts and truncates the following forms: const, input, simple, and series of the following types: float, integer, and string. Special thanks and credit to BeeHolder for idea on using str.format("{0}", string) as workaround for accepting and handling string types! NOTICE: This is an example script and not meant to be used as an...
Standard Array Functions Library by RagingRocketBull 2021 Version 1.0 This script provides a library of every standard Pinescript array function for live testing with all supported array types. You can find the full list of supported standard array functions below. There are several libraries: - Common String Functions Library - Common Array Functions Library ...
Common String Functions Library by RagingRocketBull 2021 Version 1.0 Pinescript now has strong support for arrays with many powerful functions, but still lacks built-in string functions. Luckily you can easily process and manipulate strings using arrays. This script provides a library of common string functions for everyday use, such as: indexOf, substr, replace,...
█ OVERVIEW This script provides string manipulation functions to help Pine coders. █ FUNCTIONS PROVIDED f_strLeft(_str, _n) Function returning the leftmost `_n` characters in `_str`. f_strRight(_str, _n) Function returning the rightmost `_n` characters in `_str`. f_strMid(_str, _from,...