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...
Library "Double_Triple_EMA" Provides the functions to calculate Double and Triple Exponentional Moving Averages (DEMA & TEMA). dema(_source, _length) Calculates Double Exponentional Moving Averages (DEMA) Parameters: _source : -> Open, Close, High, Low, etc ('close' is used if no argument is supplied) _length : -> DEMA length Returns: Double...
Library "Library_All_In_One" fnRSI() fnTSI() Discription: Contains several functions of Pinescript all in one Library. This reduce your coding. How to use: import Wilson-IV/Library_All_In_One/1 as _lib Examples of plotting the RSI and TSI: plot(_lib.fnRSI(close, 14)) plot(_lib.fnTSI(close, 25, 14)) Markets: It can be used to all markets. ...
Library "multiMa" Provides function that returns the type of moving average requested. ma(type, src, len) Returns the moving average requested. Parameters: type : The type of moving average (choose one of "EMA", "SMA", "DEMA", "TEMA", "WMA", "VWMA", "SMMA", "HMA") src : The source len : The length Returns: The moving average requested or `na`
Library "NumberOfSharesBuy" Library for the number of shares purchased SizeCalc(totalAssets, unit, lossPercent, maxLossPerShere) Calculate the number of shares to be purchased from the initial capital and the maximum loss per share Parameters: totalAssets : Initial capital unit : A unit of the number of shares to be traded in one trade lossPercent :...
Library "enhanced_ta" Collection of all custom and enhanced TA indicators ma(source, maType, length) returns custom moving averages Parameters: source : Moving Average Source maType : Moving Average Type : Can be sma, ema, hma, rma, wma, vwma, swma, highlow length : Moving Average Length Returns: moving average for the given type and length ...
Library "RS" Utility methods for Relative Strength analysis This is the first library test publication with ratio() method. More functions will be added. ratio(symbol, benchmark) Simple ratio of symbol vs benchmark Parameters: symbol : to be compared benchmark : to be compared Returns: ratio of symbol to benchmark
Library "SupportResitanceAndTrend" Contains utilities for finding key levels of support, resistance and direction of trend. superTrendPlus(multiple, h, l, atr, closeBars) A more flexible version of SuperTrend that allows for supplying the series used and sensitivity adjustment by confirming close bars. Parameters: multiple : The multiple to apply to the...
Library "MovingAverages" Contains utilities for generating moving average values including getting a moving average by name and a function for generating a Volume-Adjusted WMA. vawma(len, src, volumeDefault) VAWMA = VWMA and WMA combined. Simply put, this attempts to determine the average price per share over time weighted heavier for recent values. Uses a...
Library "Matrix_Functions_Lib_JD" This is a library to add matrix / 2D array functionality to Pinescript. once you import the library at the beginning of your script, you can add all the functions described below just by calling them like you do any other built'in function. Enjoy, Gr, JD. PS. if you find functionality or calculation errors in the functions,...