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 "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...
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 "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...
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 "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...
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 "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...
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 "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 "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 "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 "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,...
©2024, GoemonYae; copied from @jdehorty's "KernelFunctions" on 2024-03-09 to ensure future dependency compatibility. Will also add more functions to this script. Library "KernelFunctions" This library provides non-repainting kernel functions for Nadaraya-Watson estimator implementations. This allows for easy substition/comparison of different kernel functions...
Linear Time-Invariant (LTI) filters are fundamental tools in signal processing that operate with consistent behavior over time and linearly respond to input signals. They are crucial for analyzing and manipulating signals in various applications, ensuring the output signal's integrity is maintained regardless of when an input is applied or its magnitude. The...
Library "Functions" is_date_equal(date1, date2, time_zone) Parameters: date1 (int) date2 (int) time_zone (string) is_date_equal(date1, date2_str, time_zone) Parameters: date1 (int) date2_str (string) time_zone (string) is_date_between(date_, start_year, start_month, end_year, end_month, time_zone_)...