🔵 Introduction The "Zig Zag" indicator is an analytical tool that emerges from pricing changes. Essentially, it connects consecutive high and low points in an oscillatory manner. This method helps decipher price changes and can also be useful in identifying traditional patterns. By sifting through partial price changes, "Zig Zag" can effectively pinpoint...
This is the library version of VAcc (Velocity & Acceleration), a momentum indicator published by Scott Cong in Stocks & Commodities V. 41:09 (8–15). It applies concepts from physics, namely velocity and acceleration, to financial markets. VAcc functions similarly to the popular MACD (Moving Average Convergence Divergence) indicator when using a longer lookback...
Library "Utils" Utility functions. Mathematics, colors, and auxiliary algorithms. setTheme(vc, theme) Set theme for levels (predefined colors). Parameters: vc : (valueColorSpectrum) Object to associate a color with a value, taking into account the previous value and its levels. theme : (int) Theme (predefined colors). 0 = 'User defined' 1 =...
Library "loxxdynamiczone" Dynamic Zones Derives Leo Zamansky and David Stendahl's Dynamic Zone, see "Stocks & Commodities V15:7 (306-310): Dynamic Zones by Leo Zamansky, Ph .D., and David Stendahl" What are Dynamic Zones? As explained in "Stocks & Commodities V15:7 (306-310): Dynamic Zones by Leo Zamansky, Ph .D., and David Stendahl" Most indicators use a...
Library "FunctionSMCMC" Methods to implement Markov Chain Monte Carlo Simulation (MCMC) markov_chain(weights, actions, target_path, position, last_value) a basic implementation of the markov chain algorithm Parameters: weights : float array, weights of the Markov Chain. actions : float array, actions of the Markov Chain. target_path : float...
🔵 Introduction The "Refinement" feature allows you to adjust the width of the order block according to your strategy. There are two modes, "Aggressive" and "Defensive," in the "Order Block Refine". The difference between "Aggressive" and "Defensive" lies in the width of the order block. For risk-averse traders, the "Defensive" mode is suitable as it provides a...
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...
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 "Lex_3CR_Functions_Library2" This is a source code for a technical analysis library in Pine Script language, designed to identify and mark Bullish and Bearish Three Candle Reversal (3CR) chart patterns. The library provides three functions to be used in a trading algorithm. The first function, Bull_3crMarker, adds a dashed line and label to a Bullish...
Library "FunctionProbabilityViterbi" The Viterbi Algorithm calculates the most likely sequence of hidden states *(called Viterbi path)* that results in a sequence of observed events. viterbi(observations, transitions, emissions, initial_distribution) Calculate most probable path in a Markov model. Parameters: observations (int ) : array ....
Library "Vector2FunctionClip" Sutherland-Hodgman polygon clipping algorithm. reference: . rosettacode.org . clip(source, reference) Perform Clip operation on a vector with another. Parameters: source : array . Source polygon to be clipped. reference : array . Reference polygon to clip source. Returns: array.
Library "Library_Smoothers" CorrectedMA(Src, Len) CorrectedMA The strengths of the corrected Average (CA) is that the current value of the time series must exceed a the current volatility-dependent threshold, so that the filter increases or falls, avoiding false signals when the trend is in a weak phase. Parameters: Src Len Returns: The...
Library "POA" This library is a client script for making a webhook signal formatted string to POABOT server. entry_message(password, percent, leverage, kis_number) Create a entry message for POABOT Parameters: password : (string) The password of your bot. percent : (float) The percent for entry based on your wallet balance. leverage :...
Library "ctnd" Description: Double precision algorithm to compute the cumulative trivariate normal distribution found in A.Genz, Numerical computation of rectangular bivariate and trivariate normal and t probabilities”, Statistics and Computing, 14, (3), 2004. The cumulative trivariate normal is needed to price window barrier options, see G.F. Armstrong,...
Library "MovingAverages" vawma(len, src, volumeDefault) VAWMA = VWMA and WMA combined. Simply put, this attempts to determine the average price per share over time weighted heavier for recent values. Uses a triangular algorithm to taper off values in the past (same as WMA does). Parameters: len : The number of bars to measure with. src : The...
Library "FunctionDynamicTimeWarping" "In time series analysis, dynamic time warping (DTW) is an algorithm for measuring similarity between two temporal sequences, which may vary in speed. For instance, similarities in walking could be detected using DTW, even if one person was walking faster than the other, or if there were accelerations and decelerations...
Library "divergence" divergence: divergence algorithm with top and bottom kline tolerance regular_bull(series, series, simple, simple, simple, simple, simple) regular_bull: regular bull divergence, lower low src but higher low osc Parameters: series : float src: the source series series : float osc: the oscillator index simple : int lbL:...