Library "FunctionTimeFrequency" Functions to encode time in a normalized space (-0.5, 0.5) that corresponds to the position of the current time in the referrence frequency of time. The purpose of normalizing the time value in this manner is to provide a consistent and easily comparable representation of normalized time that can be used for various calculations...
Library "math" It's a library of discrete aproximations of a price or Series float it uses Fourier Discrete transform, Laplace Discrete Original and Modified transform and Euler's Theoreum for Homogenus White noice operations. Calling functions without source value it automatically take close as the default source value. Here is a picture of Laplace and...
This library is designed to aid traders and developers in calculating risk metrics efficiently across different asset types like equities, futures, and forex. It includes comprehensive functions that calculate the number of units or contracts to trade, the value at risk, and the total value of the position based on provided entry prices, stop levels, and risk...
Library "stats" stats factorial(x) factorial Parameters: x (int) standardize(x, length, lengthSmooth) standardize @description Moving Standardization of a time series. Parameters: x (float) length (int) lengthSmooth (int) dnorm(x, mean, sd) dnorm @description Approximation for Normal Density...
Library "utils" Provides a set of utility functions for use in strategies or indicators. colorGreen(opacity) Parameters: opacity (int) colorRed(opacity) Parameters: opacity (int) colorTeal(opacity) Parameters: opacity (int) colorBlue(opacity) Parameters: opacity (int) colorOrange(opacity) Parameters: opacity...
Library "MathTransform" Auxiliary functions for transforming data using mathematical and statistical methods scaler_zscore(x, lookback_window) Calculates Z-Score normalization of a series. Parameters: x (float) : : floating point series to normalize lookback_window (int) : : lookback period for calculating mean and standard deviation Returns:...
Library "Cinnamon_BearIndicatorsMALibrary" This is a personal Library of the NON built-in PineScript Moving Average function used to code indicators ma_dema(source, length) Double Exponential Moving Average (DEMA) Parameters: source (simple float) length (simple int) Returns: A double level of smoothing helps to follow price movements more...
Library "TRIG" degreesToRadians(degrees) Parameters: degrees (float) radiansToDegrees(radians) Parameters: radians (float) rt_get_angleAlphaFromLine(x1, y1, x2, y2, inDegrees) Parameters: x1 (int) y1 (float) x2 (int) y2 (float) inDegrees (bool) rt_get_angleBetaFromLine(x1, y1, x2, y2)...
Library "ALGEBRA" line_fromXy(x1, y1, x2, y2) Parameters: x1 (int) y1 (float) x2 (int) y2 (float) line_getPrice(x, slope, yInt) Parameters: x (int) slope (float) yInt (float) line_length(x1, y1, x2, y2) Parameters: x1 (int) y1 (float) x2 (int) y2 (float) distance(x1, y1, x2, y2)...
Library "MathOperator" Methods to handle operators. method add(value_a, value_b) Add value a to b. Namespace types: series float, simple float, input float, const float Parameters: value_a (float) : float, value a. value_b (float) : float, value b. Returns: float. method subtract(value_a, value_b) subtract value b from a. Namespace...
Library "AminioLibrary" : this is my personal library that is being used in different indicators and strategies calculateMA(source, len, maType) This fuction returns a moving average value based on the type Parameters: source (float) : Is the time series source to calculate average from len (simple int) : The length of the moving average, this...
Library "XXPivotsBreakouts" Utilizes k-NN machine learning to predict breakout zones from pivot points, aiding traders in identifying potential bullish and bearish market movements. Ideal for trend-following and breakout strategies. breakouts(pivotBars, numNeighbors, maxData, predictionSmoothing) Detects and predicts breakout points from pivot...
Library "regressions" This library computes least square regression models for polynomials of any form for a given data set of x and y values. fit(X, y, reg_type, degrees) Takes a list of X and y values and the degrees of the polynomial and returns a least square regression for the given polynomial on the dataset. Parameters: X (array) : (float ) ...
Library "Adaptive Profit And Loss" Provide Take profit and Stop loss values depending on source. TakeProfitPriceTypes() Provides supported Take profit sources Returns: Supported Take profit sources StopLossPriceTypes() Provides supported Take profit sources Returns: Supported Take profit sources Price(type) Get price value by selected price...
Library "FunctionDiscreteCosineTransform" Discrete Cosine Transform (DCT) The Discrete Cosine Transform (DCT) is a mathematical algorithm that converts a series of samples of a signal, typically in the time domain, into another domain called the frequency or spectral domain. It's commonly used for data compression and image/video coding applications such as...
The TUF_LOGIC library incorporates three-valued logic (also known as trilean logic) into Pine Script, enabling the representation of states beyond the binary True and False to include an 'Uncertain' state. This addition is particularly apt for financial market contexts where information may not always be black or white, accommodating scenarios of partial or...
Library "DynamicFunctions" Custom Dynamic functions that allow an adaptive calculation beginning from the first bar RoC(src, period) Dynamic RoC Parameters: src (float) : and period Custom function to calculate the actual period considering non-na source values period (int) dynamicMedian(src, length) Dynamic Median Parameters: src...
Library "footprint_logic" Footprint logic getting internal buy/sell volume, inbalance... get_buy_sell_volume(previos_close, tick_close, tick_high, tick_low, row_size, global_inbalance_high, global_inbalance_low, global_line_inbalance_high, global_line_inbalance_low, footprint_price, footprint_volume, tick_close_prev, level_group, tick_vol, stacked_input,...