Library "MatrixScaleDown" Provides a function to scale down a matrix into a smaller square format were its values are averaged to mantain matrix topology. method scale_down(mat, size) scale a matrix to a new smaller square size. Namespace types: matrix Parameters: mat (matrix) : Source matrix. size (int) : New matrix size. Returns: New...
Library "AllTimeHighLow" Provides functions calculating the all-time high/low of values. hi(val) Calculates the all-time high of a series. Parameters: val (float) : Series to use (`high` is used if no argument is supplied). Returns: The all-time high for the series. lo(val) Calculates the all-time low of a series. Parameters: val...
Library "VPQuantLib" Misc of math, position size and consolidation detection functions that can be used accross various scripts. isPercentAboveReference(current, percent, reference, or_equal) Checks if the current value is bigger (or equal) with the provided percent value to the reference Parameters: current (float) : - what to check against the...
The "Pineify/common" library presents a specialized toolkit crafted to empower traders and script developers with state-of-the-art time manipulation functions on the TradingView platform. It is instead a foundational utility aimed at enriching your script's ability to process and interpret time-based data with unparalleled precision. Key Features String...
Library "Mad_Fibonaccibox" This library is designed to create and manage multiple Fibonacci boxes, which are graphical representations based on the inputs. ----------------- exports: f_fib_calc(_Fibonacci_box, _itemnumber) fibonacci calc. @description This function block uses the levels and paramters set into the type_fibonacci_box(levels) and fills the...
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 ...
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 "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...
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...
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) ...
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 "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 "two_ma_logic" The core logic for the two moving average strategy that is used as an example for the internal logic of the "Template Trailing Strategy" and the "Two MA Signal Indicator" ma(source, maType, length) ma - Calculate the moving average of the given source for the given length and type of the average Parameters: source (float) : -...
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...