Library "into" convert literals by type, Same-types left in for bulk reasons. TODO: Expand Types b(string) Convert string to bool. Parameters: string : val A string value. Returns: Bool. b(bool) Pass Bool/bool Parameters: bool : Returns: Bool. b(float) Convert Float (True if exists and not 0) Parameters: float : val A...
Library "Hex" Hex String Utility intToHex(_n) helper Binary half octet to hex character Parameters: _n : Digits to convert fromDigits(_input, _buffer) Digits to Hex String output Parameters: _input : Integer Input _buffer : Number of 0's to pad Hex with Returns: string output hex character value buffered to desired length (00-ff default)
Library "ConverterTF" I have found a bug Regarding the timeframe display, on the chart I have found that the display is numeric, for example 4Hr timeframe instead of '4H', but it turns out to be '240', which I want it to be displayed in abbreviated form. And in all other timeframes it's the same. So this library was created to solve those problems. It converts...
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 // © hapharmonic //@version=5 indicator("My Script") import hapharmonic/StringtoNumber/1 as CV TF =...
Library "TimeframeToMinutes" The timeframeToMinutes() function returns the number of minutes in an arbitrary timeframe string. timeframeToMinutes() Returns the number of minutes in the supplied timeframe string, which is arbitrary, i.e. it doesn't have to be the timeframe of the current chart but can be taken from an input. The sole advantage over the short...