Vector Scaler is like Stochastic but it uses a different method to scale the input. The method is very similar to vector normalization but instead of keeping the "vector" we just sum the three points and average them. The blue line is the signal line and the orange line is the smoothed signal line. I have added the "J" line from the KDJ indicator to help spot...
This script uses a reverse function of the famous Ehler Instantaneous Trendline to calculate the source price required in order to change from Bullish to bearish From my analysis, the reverse price does appear to be rather choppy, though it is 100% accurate. This is because Ehler's Instantaneous Trendline tends to remain trending for longer periods of time with...
Example overload functions accept loading of _value for types float, int, or string, then positively identifies the actual argument type of that specific loaded _value.
Example function accepts loading of _value for types float, int, or string, then identifies whether the loaded _value is a string number, string, or number.
Custom f_nDecimals() function returns precision of decimal numbers of the following forms: const, input, simple, and series of the following types: float, integer, and string. Error checking is performed for valid numbers and invalid values return NaN. NOTICE: This is an example script and not meant to be used as an actual strategy. By using this script or any...
This script plots vertical lines on charts or indicators. Unfortunately pinescript is lacking a vertical line plotting function. Vertical lines are useful to mark events, such as crossover of levels, indicators signals or as a time marker. After searching the internet for a long time and trying different scripts, this script is the simplest and visually the...
This is a function that you can use in strategies. Not a strategy in and of itself. Example thumbnail is showing the function applied to a strategy. Oftentimes, I am asked a question regarding how to hold a variable at a specific, constant level over a conditional period of time. This question is always asked in a very long convoluted way like "I want the...
Hi fellow traders.. Happy to share a Linear Regression & RSI Multi-Function Custom Screener with Table-Labels... The Screener scans for Linear Regression 2-SD Breakouts and RSI OB/OS levels for the coded tickers and gives Summary alerts Uses Tables (dynamica resizing) for the scanner output instead of standard labels! This Screener cum indicator collection has...
Functions to handle Box-Cox Transform from sample data.
Some functions to handle Arithmetic Geometric Mean.
Calculates weighted mean, variance, standard deviation, MSE and RMSE from time series variables or arrays. When calculating from arrays, the function expects index 0 to be the most recent sample and weight values.
a function for relative weighted average using arrays
function to get sorted indices from a array using bubble sort.
Function to convert unix time to a datestamp string.
Function to calculate a forecast using a linear regression approach, this is the same function used on excel and other data sheet programs. reference: - support.microsoft.com - stackoverflow.com
Function to create a array from a sample taken from a series (ex:. close, hlc3...).
function to calculate Chebyshev Inequality. wich can be used to compute the probability that we will diverge from what we expect to obtain. reference: - www.omnicalculator.com - github.com - statisticstopics.wordpress.com - en.wikipedia.org
function to retrieve Gini Impurity / Gini Index. reference: - victorzhou.com - en.wikipedia.org