This library was designed to create three different datasets using Bill Williams fractals. The goal is to spot trends in reversal data and ultimately use these datasets to help predict future price reversals. First, the pivot() function is used to initialize and populate three separate arrays (high pivot , low pivot , all pivots ). Since each high/low price...
Library "table_library" TODO: With this library, you can add tables to your strategies. strategy_table() Returns: Strategy Profit Table Adds a table to the graph of the strategy for which you are calling the function. You can see data such as net profit in this table. No parameters. Just call the function inside the strategy. Example Code : import...
█ OVERVIEW This library is a Pine Script™ programmer’s tool containing a variety of time related functions to calculate or measure time, or format time into string variables. █ CONCEPTS `formattedTime()`, `formattedDate()` and `formattedDay()` Pine Script™, like many other programming languages, uses timestamps in UNIX format, expressed as the...
Library "HTV_LibraryV2" up_bar() 'up_bar' checks true for every candle that closed above open price. Returns: custom Series Bool last_up_bar() 'last_up_bar' checks true for every last candle that closed above open price. Returns: custom Series Bool down_bar() 'down_bar' checks true for every candle that closed below open price. Returns: custom...
Library "AutoFiboRetrace" TODO: add library description here fun(x) TODO: add function description here Parameters: x : TODO: add parameter x description here Returns: TODO: add what function returns
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...