Library "BinaryInsertionSort" Library containing functions which can help create sorted array based on binary insertion sort. This sorting will be quicker than array.sort function if the sorting needs to be done on every bar and the size of the array is comparatively big. This is created with the intention of using this to solve a bigger problem posted by...
Library "POA" This library is a client script for making a webhook signal formatted string to POABOT server. entry_message(password, percent, leverage, kis_number) Create a entry message for POABOT Parameters: password : (string) The password of your bot. percent : (float) The percent for entry based on your wallet balance. leverage :...
Library "PlurexSignalStrategy" Provides functions that wrap the built in TradingView strategy functions so you can seemlessly integrate with Plurex Signal automation. NOTE: Be sure to: - set your strategy default_qty_value to the default entry percentage of your signal - set your strategy default_qty_type to strategy.percent_of_equity - set your strategy...
Library "datTable" Dynamic Array Table.... Configurable Shape/Size Table from Arrays Allows for any data in any size combination of arrays to join together with: all possible orientations! filling all cells contiguously and/or flipping at boundaries vertical or horizontal rotation x/y axis direction swapping all types array inputs for data. ...
Library "PlurexSignalCore" General purpose functions and helpers for use in more specific Plurex Signal alerting scripts and libraries plurexMarket() Build a Plurex market string from a base and quote asset symbol. Returns: A market string that can be used in Plurex Signal messages. tickerToPlurexMarket() Builds Plurex market string from the...
Library "ExpansionContraction" Library for Expansion Contraction Indicator, a zero-lag dual perspective indicator created by Brian Latta based on Jake Bernstein’s principles of Moving Average Channel system. calc(shortLookback, longLookback) Calculates Expansion Contraction values. Parameters: shortLookback : Integer for the short lookback...
Library "Stringify" Cast variable types and enumerations to human-readable Strings timeframe(string) Cast a timeframe enumeration to readable string. Parameters: string : `T` is a timeframe enumeration ('3D', '120', '15', '5s' ...) Returns: A string representation of the timeframe or 'NA' if `x` is `na`
Library "EMAFlow" Functions that manipulate a set of 5 MAs created within user-supplied maximum and minimum lengths. The MAs are spaced out (within the range) in a way that approximates how Fibonnaci numbers are spaced. Using MA flow, as opposed to simple crosses of the minimum and maximum lengths, gives more detail, and can result in faster changes and more...
Library "ta" Collection of all custom and enhanced TA indicators. Same as enhanced_ta. But, removed all the displays to make it faster. ma(source, maType, length) returns custom moving averages Parameters: source : Moving Average Source maType : Moving Average Type : Can be sma, ema, hma, rma, wma, vwma, swma, highlow, linreg, median ...
Library "CSMlibrary" TODO: Contains functions to simplify my scripts. Using code snippets in reference manual and elsewhere ..... CSMplot()
Library "Slope_TK" This library calculate the slope of a serie between two points The serie can be ta.ema(close,200) for example The size is the number of bars between the two points for the slope calculation, for example it can be 10 slope_of_ema200 = slope(t a.eam(close, 200) , 10 ) slope( float serie, int size )
Library "libcompress" numbers compressor for large output data compression compress_fp24() converts float to base64 (4 chars) | 24 bits: 1 sign + 5 exponent + 18 mantissa Returns: 4-character base64_1/5/18 representation of x compress_ufp18() converts unsigned float to base64 (3 chars) | 18 bits: 5 exponent + 13 mantissa Returns: 3-character...
Library "racille_arrayutils" The most used array utility functions func_sin() returns sin function as a parameter to calculate the function_array() func_cos() returns cos function as a parameter to calculate the function_array() func_tan() returns tan function as a parameter to calculate the function_array() func_cot() returns cot function...
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 "Hurst" hurst(length, samples, hi, lo) Estimate the Hurst Exponent using Dubuc's variation method Parameters: length : The length of the history window to use. Large values do not cause lag. samples : The number of scale samples to take within the window. These samples are then used for regression. The minimum value is 2 but 3+ is...
Library "NetLiquidityLibrary" The Net Liquidity Library provides daily values for net liquidity. Net liquidity is measured as Fed Balance Sheet - Treasury General Account - Reverse Repo. Time series for each individual component included too. get_net_liquidity_for_date(t) Function takes date in timestamp form and returns the Net Liquidity value for that...
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 "ReduceSecurityCalls" This library allows you to reduce the number of request.security calls to 1 per symbol per timeframe. Script provides example how to use it with request.security and possible optimisation applied to htf data call. This data can be used to calculate everything you need and more than that (for example you can calculate 4 emas with...