Library "Graph" Library to collect data and draw scatterplot and heatmap as graph method init(this) Initialise Quadrant Data Namespace types: Quadrant Parameters: this (Quadrant) : Quadrant object that needs to be initialised Returns: current Quadrant object method init(this) Initialise Graph Data Namespace types: Graph Parameters: ...
Library "Spectrum" This library includes spectrum analysis tools such as the Fast Fourier Transform (FFT). method toComplex(data, polar) Creates an array of complex type objects from a float type array. Namespace types: array Parameters: data (array) : The float type array of input data. polar (bool) : Initialization coordinates;...
Library "FunctionTimeFrequency" Functions to encode time in a normalized space (-0.5, 0.5) that corresponds to the position of the current time in the referrence frequency of time. The purpose of normalizing the time value in this manner is to provide a consistent and easily comparable representation of normalized time that can be used for various calculations...
Library "Cinnamon_BearIndicatorsMALibrary" This is a personal Library of the NON built-in PineScript Moving Average function used to code indicators ma_dema(source, length) Double Exponential Moving Average (DEMA) Parameters: source (simple float) length (simple int) Returns: A double level of smoothing helps to follow price movements more...
Library "MarketAnalysis" A collection of frequently used market analysis functions in my scripts. bullFibRet(priceLow, priceHigh, fibLevel) Calculates a bullish fibonacci retracement value. Parameters: priceLow (float) : (float) The lowest price point. priceHigh (float) : (float) The highest price point. fibLevel (float) : (float) The...
Library "Complex" This library includes user-defined complex type, and functions to perform basic arithmetic operations on complex numbers. real(radius, angle) Calculates the real part of a complex number based on its polar coordinates. Parameters: radius (float) angle (float) imag(radius, angle) Calculates the imaginary part of a...
Library "Binary" This library includes functions to convert between decimal and binary numeral formats, and logical and arithmetic operations on binary numbers. method toBin(value) Converts the provided boolean value into binary integers (0 or 1). Namespace types: series bool, simple bool, input bool, const bool Parameters: value (bool) :...
Library "TradingUtils" Utility library for common trading functions calcVariation(price, threshold) Calculates variation of a price based on a threshold Parameters: price (float) : (float) The price to be varied threshold (float) : (float) The threshold for the variation Returns: (float) The varied price sendAlert(action, symbol, orderType,...
Library "MathTransform" Auxiliary functions for transforming data using mathematical and statistical methods scaler_zscore(x, lookback_window) Calculates Z-Score normalization of a series. Parameters: x (float) : : floating point series to normalize lookback_window (int) : : lookback period for calculating mean and standard deviation Returns:...
Library "TRIG" degreesToRadians(degrees) Parameters: degrees (float) radiansToDegrees(radians) Parameters: radians (float) rt_get_angleAlphaFromLine(x1, y1, x2, y2, inDegrees) Parameters: x1 (int) y1 (float) x2 (int) y2 (float) inDegrees (bool) rt_get_angleBetaFromLine(x1, y1, x2, y2)...
Library "ALGEBRA" line_fromXy(x1, y1, x2, y2) Parameters: x1 (int) y1 (float) x2 (int) y2 (float) line_getPrice(x, slope, yInt) Parameters: x (int) slope (float) yInt (float) line_length(x1, y1, x2, y2) Parameters: x1 (int) y1 (float) x2 (int) y2 (float) distance(x1, y1, x2, y2)...
Library "stats" stats factorial(x) factorial Parameters: x (int) standardize(x, length, lengthSmooth) standardize @description Moving Standardization of a time series. Parameters: x (float) length (int) lengthSmooth (int) dnorm(x, mean, sd) dnorm @description Approximation for Normal Density...
Library "MathOperator" Methods to handle operators. method add(value_a, value_b) Add value a to b. Namespace types: series float, simple float, input float, const float Parameters: value_a (float) : float, value a. value_b (float) : float, value b. Returns: float. method subtract(value_a, value_b) subtract value b from a. Namespace...
This library is designed to aid traders and developers in calculating risk metrics efficiently across different asset types like equities, futures, and forex. It includes comprehensive functions that calculate the number of units or contracts to trade, the value at risk, and the total value of the position based on provided entry prices, stop levels, and risk...
Library "math" It's a library of discrete aproximations of a price or Series float it uses Fourier Discrete transform, Laplace Discrete Original and Modified transform and Euler's Theoreum for Homogenus White noice operations. Calling functions without source value it automatically take close as the default source value. Here is a picture of Laplace and...
Library "AminioLibrary" : this is my personal library that is being used in different indicators and strategies calculateMA(source, len, maType) This fuction returns a moving average value based on the type Parameters: source (float) : Is the time series source to calculate average from len (simple int) : The length of the moving average, this...
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...