Library "Volatility" Functions for determining if volatility (true range) is within or exceeds normal. The "True Range" (ta.tr) is used for measuring volatility. Values are normalized by the volume adjusted weighted moving average (VAWMA) to be more like percent moves than price. current(len) Returns the current price adjusted volatitlity...
Library "LeoLibrary" A collection of custom tools & utility functions commonly used with my scripts getDecimals() Calculates how many decimals are on the quote price of the current market Returns: The current decimal places on the market quote price truncate(float, float) Truncates (cuts) excess decimal places Parameters: float : _number The...
Library "GenericTA" What is it? The real generic library. Which means it is just covering most built-in indicators / functions, but with more parameters, so the user don't have to write more few lines to achieve something simple and replicative. Development process? Will tidy it up, and setting up in later stage. Welcome to inbox me to improve the library...
Library "PivotPointsDailyTraditional" Provides the traditional daily pivot values and a pivot vacinity function. P(level, daysPrior) Returns the P value. Parameters: level : The level to caclulate. daysPrior : The number of days in the past to do the calculation. R(level, daysPrior) Calculates the R value for a given pivot...
Library "DailyLevels" Functions for acquiring daily timeframe data by number of prior days. openD(daysPrior, spec, res) Gets the open for the number of days prior. Parameters: daysPrior : Number of days back to get the open from. spec : session.regular (default), session.extended or other time spec. res : The resolution (default =...
Library "pNRTR" Provides functions for calculating Nick Rypock Trailing Reverse (NRTR) trend values with higher precision offsets for both low, and high points rather than the standard single offset. pnrtr(float low_offset = 0.2, float high_offset = 0.2, float value = close) low_offset Offset used for nrtr low_point calculations. Default is 0.2. ...
Library "customcandles" customcandles: Contains methods which can send custom candlesticks based on the input macandles(maType, length, o, h, l, c) macandles: Provides OHLC of moving average candles Parameters: maType : - Moving average Type. Can be sma, ema, hma, rma, wma, vwma, swma, linreg, median length : - Defaulted to 20. Can chose custom...
Library "lib_Indicators_DT" This library functions returns some Moving averages and indicators. Created it to feed my indicator/strategy "INDICATOR & CONDITIONS COMBINATOR FRAMEWORK v1 " which I will publish it as soon as possible. Credits: Library includes some public indicators, snippets from tradingview & @03.freeman's ("All MAs displayed") scripts. (I...
Library "DrawIndicatorOnTheChart" this library is used to show an indicator (such RSI, CCI, MOM etc) on the main chart with indicator's horizontal lines in a window. Location of the window is calculated dynamically by last price movemements drawIndicator(indicatorName, indicator, indicatorcolor, period, indimax_, indimin_, levels, precision, xlocation) draws...
Library "ZenLibrary" A collection of custom tools & utility functions commonly used with my scripts. getDecimals() Calculates how many decimals are on the quote price of the current market Returns: The current decimal places on the market quote price truncate(float, float) Truncates (cuts) excess decimal places Parameters: float : _number The...
This is same as existing zigzag library with respect to functionality. But, there is a small update with respect to how arrays are used internally. This also leads to issues with backward compatibility. Hence I decided to make this as new library instead of updating the older one. Below are the major changes: Earlier version uses array.unshift for adding...
Library "MA_library" OVERVIEW This library contains moving average functions that calculate values for which they do not exist by default in PineScript Functions tema(source,length) : Triple Exponencial Moving Average dema(source,length) : Double Exponencial Moving Average wwma(source,length) : Welles Wilder Moving Average gma(source,length) :...
Library "FunctionPolynomialRegression" TODO: polyreg(sample_x, sample_y) Method to return a polynomial regression channel using (X,Y) sample points. Parameters: sample_x : float array, sample data X points. sample_y : float array, sample data Y points. Returns: tuple with: _predictions: Array with adjusted Y values. _max_dev: Max...
Library "FunctionLinearRegression" Method for Linear Regression using array sample points. linreg(sample_x, sample_y) Performs Linear Regression over the provided sample points. Parameters: sample_x : float array, sample points X value. sample_y : float array, sample points Y value. Returns: tuple with: _predictions: Array with adjusted Y...
Library "raf_BollingerBandsSqueezy" B Bands with some squeese indicating additions bbands_lines() Calcs BB Returns: the tree lines, upper, basis and lower bbands_fast_ma() calcs the fast moving average, to be used to compare how prise is positioned against BB Returns: the fast EMA line, and the difference between it and the BB basis line ...
Here is an extensive library on different variations of supertrend. Library "supertrend" supertrend : Library dedicated to different variations of supertrend supertrend_atr(length, multiplier, atrMaType, source, highSource, lowSource, waitForClose, delayed) supertrend_atr: Simple supertrend based on atr but also takes into consideration of custom MA Type,...
⬜ Zigzag at your fingertips. Creating zigzag array is more simpler than ever. All you need to do is: ▶ Import library: import HeWhoMustNotBeNamed// as zgi ▶ And invoke zigzag to get all the details. zgi.drawzigzag(zigzagLength) More examples in the code where you can get retracement ratios, zigzag direction, divergence etc. Library "zigzag"...
Library "ta" █ OVERVIEW This library holds technical analysis functions calculating values for which no Pine built-in exists. Look first. Then leap. █ FUNCTIONS cagr(entryTime, entryPrice, exitTime, exitPrice) It calculates the "Compound Annual Growth Rate" between two points in time. The CAGR is a notional, annualized growth rate that...