█ OVERVIEW Library "e2hray" A drawing library that contains the hray() function, which draws a horizontal ray/s with an initial point determined by a specified condition. It plots a ray until it reached the price. The function let you control the visibility of historical levels and setup the alerts. █ HORIZONTAL RAY FUNCTION hray(condition, level, color,...
Library "FunctionCosineSimilarity" Cosine Similarity method. function(sample_a, sample_b) Measure the similarity of 2 vectors. Parameters: sample_a : float array, values. sample_b : float array, values. Returns: float. diss(cosim) Dissimilarity helper function. Parameters: cosim : float, cosine similarity value (0 > 1) Returns: float
Library "FunctionPatternDecomposition" Methods for decomposing price into common grid/matrix patterns. series_to_array(source, length) Helper for converting series to array. Parameters: source : float, data series. length : int, size. Returns: float array. smooth_data_2d(data, rate) Smooth data sample into 2d points. Parameters: data...
Library "FunctionGenerateRandomPointsInShape" Generate random vector points in geometric shape (parallelogram, triangle) random_parallelogram(vector_a, vector_b) Generate random vector point in a parallelogram shape. Parameters: vector_a : float array, vector of (x, y) shape. vector_b : float array, vector of (x, y) shape. Returns: float array,...
Library "eHarmonicpatterns" Library provides an alternative method to scan harmonic patterns. This is helpful in reducing iterations scan_xab(bcdRatio, err_min, err_max, patternArray) Checks if bcd ratio is in range of any harmonic pattern Parameters: bcdRatio : AB/XA ratio err_min : minimum error threshold err_max : maximum error...
Library "harmonicpatterns" harmonicpatterns: methods required for calculation of harmonic patterns. These are customised to be used in my scripts. But, also simple enough for others to make use of :) isGartleyPattern(xabRatio, abcRatio, bcdRatio, xadRatio, err_min, err_max) isGartleyPattern: Checks for harmonic pattern Gartley Parameters: xabRatio :...
Library "LinearRegressionLibrary" contains functions for fitting a regression line to the time series by means of different models, as well as functions for estimating the accuracy of the fit. Linear regression algorithms: RepeatedMedian(y, n, lastBar) applies repeated median regression (robust linear regression algorithm) to the input time series...
Library "FunctionGeometricLineDrawings" array_delete_all_lines(lines) deletes all lines in array. Parameters: lines : line array, array with line objects to delete. Returns: void. triangle(sample_x, sample_y, xloc, extend, color, style, width) Draw a Triangle with 3 vector2D(x, y) coordinates. Parameters: sample_x : int array, triangle...
Library "CreateAndShowZigzag" Functions in this library creates/updates zigzag array and shows the zigzag getZigzag(zigzag, prd, max_array_size) calculates zigzag using period Parameters: zigzag : is the float array for the zigzag (should be defined like "var zigzag = array.new_float(0)"). each zigzag points contains 2 element: 1. price level of the zz...
Library "LineGetPriceOnLogScale" This library provides a way to calculate the y-coordinate of a line on a specified bar when the chart scale is Log. The built-in `line.get_price()` function only works with linear scale and gives incorrect results when the chart is in Log scale. The library only works with `bar_index` values and `xloc.bar_index`-based lines,...
Library "MathGeometryCurvesChaikin" 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. Parameters: points_x : float array, the x value of points. points_y : float array, the y value of points. closed : bool,...
Library "HarmonicPattern" Functions to detect/check harmonic patterns from provided values. line_price_rate(point_c, point_b, point_a) Compute the price rate of the line AB divided by the the line BC Parameters: point_c : float, the price at point C. point_b : float, the price at point B. point_a : float, the price at point A. Returns: float ...
This is a script to draw a square wave on the chart, with an indicator for current price. Markets undergoing Dow Jones or Wyckoff Accumulation/Distribution cycles tend to move in such waves, and if the period of the cycles are detected, a signal for accumulation/distribution phases can be created as an early warning. Useful inputs: - Average True Range as the...
This script plots a a square composed of 8 equilateral triangles ("grid"). User can set the frequency of calculation/interval by adjusting the 't' parameter. Steps for calculating grid: 1. Find the highest high and lowest low for last 't' periods. 2. Calculate midpoint for prices during that interval (highest high + lowest low) / 2. 3. Center of the grid =...
Murrey Math Lines are support and resistance lines based on geometric mathematical formulas developed by T. H. Murrey. MM lines are a derivation of the observations of W.D. Gann. Murrey's geometry facilitate the use of Gann's theories in a somewhat easier application. According to Gann's theory, price tends to trend and retrace in 1/8th intervals. The most...
functions using the new line functions in V4 to draw multiple geometric shapes.
MC Market Structure © is one of the five MC Fractal Studies © MC Fractal Studies (c) disassemble the market data in an objective way and organize charts information in order to identify all the various Waves on all the various fractal scales, that make up the typical market charts, and show them to the eyes of investors in an inclusive but detailed way. The...
MC Waves Oscillator © is one of the five MC Fractal Studies © MC Fractal Studies (c) disassemble the market data in an objective way and organize charts information in order to identify all the various Waves on all the various fractal scales, that make up the typical market charts, and show them to the eyes of investors in an inclusive but detailed way. The...