Library "ADX" adx(dilen, adxLen) Parameters: dilen : Length of the Directional Index. adxLen : Length (smoothing) of the Average Directional Index. Returns:
Library "honestpersonallibrary" thestratnumber() this will return the number 1,2 or 3 using the logic from Rob Smiths #thestrat which uses these type of bars for setups getBodySize() Gets the current candle's body size (in POINTS, divide by 10 to get pips) Returns: The current candle's body size in POINTS getTopWickSize() Gets the current candle's...
Library "FunctionIntrabarCrossValue" intrabar_cross_value(a, b, step) Find the minimum difference of a intrabar cross and return its median value. Parameters: a : float, series a. b : float, series b. step : float, step to iterate x axis, default=0.01 Returns: float
Library "BitcoinHalving" Displays where Bitcoin's halvings have been getDates() List of Bitcoin halving dates Returns: array with timestamp dates isHalvingDay() Checks if the current day is a halving day Returns: bool
Library "matrixautotable" Automatic Table from Matrixes with pseudo correction for na values and default color override for missing values. uses overloads in cases of cheap float only, with additional addon for strings next, then cell colors, then text colors, and tooltips last.. basic size and location are auto, include the template to speed this up... TODO...
Library "IntradayHighLow" Provides functions calculating the intraday high/low of values. IntradayHigh(val) Calculates the intraday high of a series. Parameters: val : Series to use ('high' is used if no argument is supplied). Returns: The intraday high for the series. IntradayLow(val) Calculates the intraday low of a series. Parameters: ...
Library "MonthlyReturnsVsMarket" is a repackaging of the script here Credits to @QuantNomad for orginal script Now you can avoid to pollute your own strategy's code with the monthly returns table code and just import the library and call displayMonthlyPnL(int precision) function To be used in strategy scripts.
Library "StapleIndicators" This Library provides some common indicators commonly referenced from other studies in Pine Script squeeze(bbSrc, bbPeriod, bbDev, kcSrc, kcPeriod, kcATR, signalPeriod) Volatility Squeeze Parameters: bbSrc : (Optional) Bollinger Bands Source. By default close bbPeriod : (Optional) Bollinger Bands Period. By default...
Library "AllTimeHighLow" Provides functions calculating the all-time high/low of values. hi(val) Calculates the all-time high of a series. Parameters: val : Series to use (`high` is used if no argument is supplied). Returns: The all-time high for the series. lo(val) Calculates the all-time low of a series. Parameters: val : Series to use...
Library "HighTimeframeSampling" Library for sampling high timeframe (HTF) data. Returns an array of historical values, an arbitrary historical value, or the highest/lowest value in a range, spending a single security() call. An optional pass-through for the chart timeframe is included. Other than that case, the data is fixed and does not alter over the course...
█ OVERVIEW This library provides string manipulation functions to complement the Pine Script™ `str.*()` built-in functions. █ CONCEPTS At the time our String Manipulation Framework was published, there was little in the way of built-in functions to manipulate strings. Since then, we have witnessed several meaningful developments on this front by the...
This is a collection of functions either found on the internet, or made by me. This is only public so my other scripts that reference this can also be public. If you find anything useful for you here, be my guest.
Library "Canvas" A library implementing a kind of "canvas" using a table where each pixel is represented by a table cell and the pixel color by the background color of each cell. To use the library, you need to create a color matrix (represented as an array) and a canvas table. The canvas table is the container of the canvas, and the color matrix determines...
Library "RicardoLibrary" Ricardo's personal Library GetPipValue() GetPipValue Returns: Pip value of Symbol Calculate_SL(IsLong) Calculate_SL: Calcultes Stop Loss Parameters: IsLong : If true, then I am going to enter a long position, if false then Short position Returns: Stop loss Price
Library "STPFunctions" These functions are used as part of the STP trading strategy and include commonly used candle patterns, trade triggers and frequently monitored stock parameters MAs() Determines if the last price is abover or below key moving averages. MAs used on the daily are SMA20, SMA50 and SMA200. SMA20 and SMA50 are used intraday. Returns: 1 if...
Library "mZigzag" Matrix implementation of zigzag to allow further possibilities. Main advantage of this library over previous zigzag methods is that you can attach any number of indicator/oscillator information to zigzag calculate(length, ohlc, indicatorHigh, indicatorLow, numberOfPivots) calculates zigzag and related information Parameters: length...
Library "merge_pinbar" merge_pinbar: merge bars and check whether the bar is a pinbar merge_pinbar(simple, simple) merge_pinbar: merge bars and check whether the bar is a pinbar Parameters: simple : int period: the statistic bar period simple : int max_bars: the max bars to be merged Returns: array: