Finally getting around to releasing the library component to the SPTS indicator! This library is packed with a ton of great statistics functions to supplement SPTS, these functions add to the capabilities of SPTS including a forecast function. The library includes the following functions 1. Linear Regression (single independent and single dependent) ...
This library introduces the `PolylinePlus` type, which is an enhanced version of the built-in PineScript `polyline`. It enables two features that are absent from the built-in type: 1. Developers can now efficiently add or remove points from the polyline. In contrast, the built-in `polyline` type is immutable, requiring developers to create a new instance of the...
Prices With this library, you can easily manage prices such as stop loss, take profit, calculate differences, prices from a lower timeframe, and get the order size and commission from the strategy properties tab. Note that the order size and commission only work with strategies! Usage Take Profit & Stop Loss var bool open_trade = false open_trade :=...
Library "lib_math" a collection of functions calculating without history operator to avoid max_bars_back errors mean(value, reset) Parameters: value (float) : series to track reset (bool) : flag to reset tracking @return returns average/mean of value since last reset vwap(value, reset) Parameters: value (float) : series to track ...
Library "math" TODO: Math custom MA and more pine_ema(src, length) Parameters: src (float) length (int) pine_dema(src, length) Parameters: src (float) length (int) pine_tema(src, length) Parameters: src (float) length (int) pine_sma(src, length) Parameters: src (float) length (int) ...
Library "map_custom_value_usefull" makes it possible to create: 1.map with array value: for this purpose need: 1.create map with arrays type value 2.put your array in this map, overloaded put method itself will put the array based on the type into the required field 3.next you can get this array with help standard get function, which will...
Library "map_custom_value_full" makes it possible to create: 1.map with array value: for this purpose need: 1.create map with arrays type value 2.put your array in this map, overloaded put method itself will put the array based on the type into the required field 3.next you can get this array with help standard get function, by specifying the type...
Library "Ephemeris" TODO: add library description here mercuryElements() mercuryRates() venusElements() venusRates() earthElements() earthRates() marsElements() marsRates() jupiterElements() jupiterRates() saturnElements() saturnRates() uranusElements() uranusRates() neptuneElements() neptuneRates() rev360(x)...
Library "WIPFunctionLyaponov" Lyapunov exponents are mathematical measures used to describe the behavior of a system over time. They are named after Russian mathematician Alexei Lyapunov, who first introduced the concept in the late 19th century. The exponent is defined as the rate at which a particular function or variable changes over time, and can be...
This lightweight library provides a utility method that analyzes any provided background color and automatically chooses the optimal black or white foreground color to ensure maximum visual contrast and readability. 🟠 Algorithm The library utilizes the HSP Color Model to calculate the brightness of the background color. The formula for this calculation is as...
Library "tts_convention" This library can convert the start, end, cancel start, cancel end deal conditions that are used in the "Template Trailing Strategy" script into a signal value and vice versa. The "two channels mod div" convention is unsed internaly and the signal value can be composed/decomposed into two channels that contain the afforementioned...
The purpose of this library is to split and merge an integer into useful pieces of information that can easily handled and plotted. The basic piece of information is one word. Depending on the underlying numerical system a word can be a bit, octal, digit, nibble, or byte. The user can define channels. Channels are named groups of words. Multiple words can be...
Library "lib_retracement_label" creates a retracement label between the origin and target of a retracement, updating it's position (via update + draw) when the target moves. create_tooltip(name, min, max, tol_min, tol_max) Parameters: name (string) min (float) max (float) tol_min (float) tol_max (float) method update(this)...
Library "SimilarityMeasures" Similarity measures are statistical methods used to quantify the distance between different data sets or strings. There are various types of similarity measures, including those that compare: - data points (SSD, Euclidean, Manhattan, Minkowski, Chebyshev, Correlation, Cosine, Camberra, MAE, MSE, Lorentzian, Intersection, Penrose...
Library "FunctionMatrixCovariance" In probability theory and statistics, a covariance matrix (also known as auto-covariance matrix, dispersion matrix, variance matrix, or variance–covariance matrix) is a square matrix giving the covariance between each pair of elements of a given random vector. Intuitively, the covariance matrix generalizes the notion of...
This Extended Moving Average Library is a sophisticated and comprehensive tool for traders seeking to expand their arsenal of moving averages for more nuanced and detailed technical analysis. The library contains various types of moving averages, each with two versions - one that accepts a simple constant length parameter and another that accepts a series or...
Library "ta_m" This library is a Pine Script™ programmer’s tool containing calcs for my oscillators and some helper functions. upDnIntrabarVolumesByPolarity() Determines if the volume for an intrabar is up or down. Returns: ( ) A tuple of two values, one of which contains the bar's volume. `upVol` is the positive volume of up bars. `dnVol` is the...
Library "LibrarySupertrend" selective_ma(condition, source, length) Parameters: condition (bool) source (float) length (int) trendUp(source) Parameters: source (float) smoothrng(source, sampling_period, range_mult) Parameters: source (float) sampling_period (simple int) range_mult (float) ...