Library "ETFFinderLib" TODO: add library description here etf_search_ticker(ticker) searches the entire ETF library by ticker and identifies which ETFs hold a specific tickers. Parameters: ticker (string) Returns: returns 2 arrays, holding_array (string array) and compo_array(float array) etf_search_sectors(sector) searches the entire ETF...
Library "TimeFormattingLibrary" Time formatting functions: formating functions to make timestrings more human readable friendly (for both fixed time and time-elapsed). Also functions for last and first instance in month of day of week input. Also a function for identifying bank holiday Mondays. timeFormatFxn(showDayOfWeek, showDayOfMonth, showMonth,...
Library "ETFHoldingsLib" spy_get() : pulls SPY ETF data Returns: : tickers held (string array), percent ticker holding (float array), sectors (string array), percent secture positioning (float array) qqq_get() : pulls QQQ ETF data Returns: : tickers held (string array), percent ticker holding (float array), sectors (string array), percent secture...
Library "Utils" A collection of convenience and helper functions for indicator and library authors on TradingView formatNumber(num) My version of format number that doesn't have so many decimal places... Parameters: num (float) : (float) the number to be formatted Returns: (string) The formatted number getDateString(timestamp) Convenience...
Library "RiskTools" Provides functions for calculating risk metrics pctDrop(start, result) Calculates what is the percentage drop from a reference price Parameters: start (float) : Starting price before the drop occurred result (float) : Resulting price to which the percentage drop occurred Returns: Percentage drop from "start" to "result" ...
Library "CryptoSpotSymbols" This Library has one purpose only. It generate Symbols for the Crypto Spot Market, like all the currencies pairs of most Crypto Exchanges available to TradingView. Have a look at .find() , which is an all in one function. Binance(basecurrency) Generate 27 Symbols for the Spot Market of Binance. Parameters: ...
Library "Tooltip" This library helps creating and managing nice looking data (key/value) tooltips that you can use for labels. The tooltips data key/value will align automatically. It is optional to convert the data to a values only string too. method addSpacesToKey(this) Calculates the amount of spaces needed after the key to make it the key least 4...
The "Mizar_Library" is a powerful tool designed for Pine Script™ programmer’s, providing a collection of general functions that facilitate the usage of Mizar’s DCA (Dollar-Cost-Averaging) bot system. To begin using the Mizar Library, you first need to import it into your indicator script. Insert the following line below your indicator initiation line: import...
You don't need to initialize anything.. After you import the library you can use .print() as easy as that..! Hope this helps * use a unique ID for each .print() call let me know if you run into any bugs by trying to make it as user friendly as possible i had to do some not ideal things so there's a chance it could present some bugs with a lot of labels...
Library "toString" Contains methods for conversion to string of int/float/bool/string/line/label/box and arrays and matrices thereof. Also contains a string wrapping function. method getXloc(line/label/box) returns true if line/box/label are xloc.bar_time, false otherwise nzs(string) Analogue of nz() but for strings. Returns "" is _s is na. method...
Library "WebhookJsonMsg" This webhook json message library provides convenient functions for building JSON messages Used to manage automatic transaction orders and positions method buildWebhookJson(msg) Builds the final JSON payload from a WebhookMessage type. Namespace types: WebhookMessage Parameters: msg (WebhookMessage) Returns: A JSON...
Library "tools" A library of many helper methods, plus a comprehensive print method and a printer object. This is a newer version of the helpers library. This script uses pinescripts v5 latest objects and methods.
Library "library" is_bullish_engulfing() is_bearish_engulfing() is_hammer(fib_level) Parameters: fib_level (float) is_shooting_star(fib_level) Parameters: fib_level (float) is_hammer_and_star(fib_level) Parameters: fib_level (float) is_star_and_hammer(fib_level) Parameters: fib_level (float) ...
Library "TextLib" TODO: Library with text / string functions addText(before, value, separator) Parameters: before (string) value (string) separator (string) addText(before, value1, value2, separator) Parameters: before (string) value1 (string) value2 (string) separator (string)
Library "MarkovAlgorithm" Markov algorithm is a string rewriting system that uses grammar-like rules to operate on strings of symbols. Markov algorithms have been shown to be Turing-complete, which means that they are suitable as a general model of computation and can represent any mathematical expression from its simple notation. ~...
Library "composite_ticker_cleaner" Extract a clean symbol from a composite ticker. E.g., (BINANCE:BTCUSD+KRAKEN:BTCUSD)/2 as input will return BTCUSD or BINANCE:BTCUSD composite_ticker_cleaner_extract_first(symbol, keepexchange) Extract the first symbol out of the supplied string (usually ticker.standard(syminfo.tickerid) ) Parameters: symbol :...
Library "string_utils" Collection of string utilities that can be used to replace sub-strings in a string and string functions that are not part of the standard library. This a more simple replacement of my previous string_variables library since it uses types for better performance due to data locality and methods that give a more intuitive API.
Library "Unispaces" Easier than looking up unicode spaces spaces(sequence, string1, string2) UNISPACES Parameters: sequence : (int) required | 123 = 3 spaces / 3 different sizes (one space per number can find spaces in hover over) string1 : (str) optional | default = "" string2 : (str) optional | default = "" Returns: `string -...