Library "StringStringHashmap" A simple implementation of a key string-to-string value dictionary in pine script create_ss_dict() Create an empty string-string dictionary Returns: the indices and elements of the dict add_key_value(key, value, i, e) Add new key-value pair in the dictionary Parameters: key : string value : string i :...
Library "text_utils" a set of functions to handle placeholder in texts add_placeholder(list, key, value) add a placehodler key and value to a local list Parameters: list : - reference to a local string array containing all placeholders, add string list = array.new_string(0) to your code key : - a string representing the placeholder in a text,...
Library "String_Encoder_Decoder" String encoder and decoder to use in internal data tranfer in script calculations. In example, script encode 125 values once and then decode them every candle. encode(array or values (val1,val2,val3,val4,val5,val6) encode: encode some values into string Parameters: array : of values or values1, value2 (up to 6...
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 "font" Unicode Characters Replacement function for strings. uni(_str, _number) Unicode Font Substitutee Parameters: _str : Input Strinbg _number : Font by Int input uni(_str, _number) Unicode Font Substitutee Parameters: _str : Input Strinbg _number : Font by Name input
A library that exposes a method to translate strings to numbers. Adapted from MichelT 's String to Number indicator.
Library "FrostyBot" JSON Alert Builder for FrostyBot.js Binance Futures and FTX orders github.com More Complete Version Soon. TODO: Comment Functions and annotations from command reference ^^ TODO: Add additional whitelist and symbol mappings. leverage() buy() sell() cancelall() closelong() closeshort() traillong() trailshort() ...
Library "DiscordLibrary" BoldString() Bold String in Discord Function ItalicizeString() Italicize String in Discord Function StrikeThroughString() Strikethrough a String in Discord Function UnderlineString() Underline a String in Discord Function SpoilerString() When you send the text, it will be shown as a black block, and only by...
Library "Utilities" General utilities print_series(s, skip_na, position, show_index, from_index, to_index) Print series values Parameters: s : Series (string) skip_na : Flag to skip na values (optional bool, dft = false) position : Position to print the Table (optional string, dft = position.bottom_center) show_index : Flag to show...
█ OVERVIEW This library is a Pine programmer’s tool containing functions to help those who use the request.security_lower_tf() function. Its `ltf()` function helps translate user inputs into a lower timeframe string usable with request.security_lower_tf() . Another function, `ltfStats()`, accumulates statistics on processed chart bars and intrabars. █...
Library "myAlerts" My Alerts Functions - To use with autoview f_order(_price, _qty, _position, _account, _exchange, _i, i_qtyTypeOrder, typeMsg, syminfoticker) - Write the entry order message Parameters: _price : - The order price _qty : - The order quantity _position : - The order side _account : - The user account _exchange : -...
Library "FunctionPatternFrequency" Counts the word or integer number pattern frequency on a array. reference: rosettacode.org count(pattern) counts the number a pattern is repeated. Parameters: pattern : : array : array with patterns to be counted. Returns: array : list of unique patterns. array : list of counters per...
Library "Color Library!" To help with large projects that need colors! If you guys make the library bigger, share it so we can all have tons of colors! 2 Functions Uppercase and Lowercase, because why not? import library as color 1.) color.this("Brown") // or color.this("brown") both work 2.) color.rainbow(1) //Returns first index of Rainbow this(x) TODO:...
█ OVERVIEW Library "DateNow" TODO: Provide today's date based on UNIX time █ INSPIRATIONS Use pinescript v4 functions such as year(), month() and dayofmonth(). Use pinescript v5 function such as switch. Export as string variables. Not using any match function such as math.floor. █ CREDITS RicardoSantos █ KNOWN ISSUES Date for Day display...
Library "catchChecks" Type Check for Function Builders to allow Single item to be passed in, and determine what to do with the item, ie: need an x value? function that allows label, line, box, float, or even a string.. check item type? string ? 'str.tonumber(_item)' can be in the same switch as a 'line.get_price(_item, bar_index)' both outputting float or for...
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 "FunctionArrayUnique" Method for retrieving the unique elements in a array. for example would retrieve a array with , the elements retrieved will be sorted by its first seen index in parent array. note: float values have no precision option. unique(source) method for retrieving the unique elements in a array. Parameters: source : array...
Library "functionStringToMatrix" Provides unbound methods (no error checking) to parse a string into a float or int matrix. to_matrix_float(str, interval_sep, start_tk, end_tk) Parse a string into a float matrix. Parameters: str : , string, the formated string to parse. interval_sep : , string, cell interval separator token. start_tk : ,...