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 "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 "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,...
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 "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 "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...
©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...
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_)...
Library "aprox" It's a library of the aproximations of a price or Series float it uses Fourier transform and Euler's Theoreum for Homogenus White noice operations. Calling functions without source value it automatically take close as the default source value. Copy this indicator to see how each approximations interact between each other. import...
Library "DynamicMAs" Custom MA's that allow a dynamic calculation beginning from the first bar, irrespective of lookback period. SMA(src, length) Dynamic SMA Parameters: src (float) length (int) EMA(src, length) Dynamic EMA Parameters: src (float) length (int) DEMA(src, length) Dynamic DEMA Parameters: src...
Library "TimeSeriesRecurrencePlot" In descriptive statistics and chaos theory, a recurrence plot (RP) is a plot showing, for each moment i i in time, the times at which the state of a dynamical system returns to the previous state at `i`, i.e., when the phase space trajectory visits roughly the same area in the phase space as at time `j`. ``` A recurrence plot...
Library "TimeSeriesGrammianAngularField" provides Grammian angular field and associated utility functions. ___ Reference: *Time Series Classification: A review of Algorithms and Implementations*. www.researchgate.net method normalize(data, a, b) Normalize the series to a optional range, usualy within `(-1, 1)` or `(0, 1)`. Namespace types:...
Library "LIB_TradeAssist" This library is a collection of assistence tools saving me the need to copy same code again and again in my various indicators and strategies. Slop_Magnitude(val_now, val_older, mult_factor) Calculate the slop magnetude betwen current price and an older price. Since the change is usually minimal, we multiply it by def value of...
Library "series_collection" A personal collection of commonly used series types like moving averages that are supported directly by the pinescript library ('ALMA', 'DEMA', 'EMA', 'HMA', 'RMA', 'SMA', 'SWMA', 'VWMA', 'WMA'), highest and lowest source, median and pivots. One single function (with overloads) that can be configured easily by the user input and can...
Library "TimeSeriesClassificationActivationFunctions" Provides some activation functions useful in time series classification. ___ reference: github.com method scale(dist, weights) Activate values by a normalized scale. Namespace types: map Parameters: dist (map) : Source distribution map. weights (map) : Weights distribution map. Returns:...
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...