Returns the smoothed hyperbolic tangent of the input series.
src : The input series (i.e., the first-order derivative for price).
quadraticMeanLength : The length of the quadratic mean (RMS).
Returns: nDeriv The normalized derivative of the input series.
Library with calculation logic for fib retracement, extension and ratios
retracement(a, b, ratio, logScale, precision)
Calculates the retracement for points a, b with given ratio and scale
a : Starting point a
b : Second point b
ratio : Ratio for which we need to calculate retracement c
logScale : Flag...
Collection of types and functions that can be used for the calculation of the percentage of a distance from a barrier price using several methods. Methods supported are percentagewise (PERC), atr-based (ATR), local extrema (LOC), tick-based (TICKS) and risk reward ratio (RR)
Collection of functions created for simplification/easy referencing. Includes variations of moving averages, length value oscillators, and a few other simple functions based upon HH/LL values.
ma(source, length, type)
Apply a moving average to a float value
source : Value to be used
length : Number of bars to...
This library provides non-repainting kernel functions for Nadaraya-Watson estimator implementations. This allows for easy substitution/comparison of different kernel functions for one another in indicators. Furthermore, kernels can easily be combined with other kernels to create newer, more customized kernels. Compared to Moving...
Collection of Dominant Cycle estimators. Length adaptation used in the Adaptive Moving Averages and the Adaptive Oscillators try to follow price movements and accelerate/decelerate accordingly (usually quite rapidly with a huge range). Cycle estimators, on the other hand, try to measure the cycle period of the current market, which does not reflect price movement...
General Fibonacci functions. Get fib numbers, ratios, etc.
Get the precise Fibonacci ratio, to the specified number of decimal places
f : Fibonacci ratio (string, in form #.###)
precision : Number of decimal places (optional int, dft = 16, max = 32)
Returns: Precise Fibonacci ratio...
This is a new indicator release, Using the principle of Murrey Math Line Trading Systems. It will be easier for someone to add alerts on an oscillator rather than a overlay.
Currently, I did add some aesthetics for those who like to view different colors, can be turned off.
Oscillator Color Definition -
Green = Above MidLine
Red = Below Midline
Blue = Below...
line_fromXy(x1, y1, x2, y2)
Get line slope and y-intercept from coordinates
x1 : x coordinate 1 (int - bar index)
y1 : y coordinate 1 (float - price/value)
x2 : x coordinate 2 (int - bar index)
y2 : y coordinate 2 (float - price/value)
Returns: of line
rt_get_angleAlpha(a, b, c, deg)
Get angle α of a right triangle, given the lengths of its sides
a : length of leg a (float)
b : length of leg b (float)
c : length of hypotenuse (float)
deg : flag to return angle in degrees (bool - default = false)
Returns: angle α in radians (or...
Collection of experimental kNN functions. This is a work in progress, an improvement upon my original kNN script:
The script can be recreated with this library. Unlike the original script, that used multiple arrays, this has been reworked with the new Pine Script matrix features.
To make a kNN prediction, the following data should be supplied...
Functions for interpolating values. Can be useful in signal processing or applied as a sigmoid function.
linear(k, delta, offset, unbound) Returns the linear adjusted value.
k : A number (float) from 0 to 1 representing where the on the line the value is.
delta : The amount the value should change as k reaches...
Implements the chaikin algorithm to create a curved path, from assigned points.
chaikin(points_x, points_y, closed) Chaikin algorithm method, uses provided points to generate a smoothed path.
points_x : float array, the x value of points.
points_y : float array, the y value of points.
closed : bool,...
subroutine part of LAPACK: Linear Algebra Package,
performs one of the symmetric rank k operations
C := alpha*A*A**T + beta*C, or C := alpha*A**T*A + beta*C,
where alpha and beta are scalars, C is an n by n symmetric matrix
and A is an n by k matrix in the first case and a k by n matrix
in the second...
Hello, Murrey Math lovers, Thanks for those who showed interest on this. Based on a request, I have updated the plot / candle coloring, for Version - 2.
This has been in the queue for a while.
There was a Glitch found with the Multiplier. Will Fix in the next version. The Current Version (and the previous version) only supports 1/8 fractions. Will not support...