Library "DataCorrelation" Implementation of functions related to data correlation calculations. Formulas have been transformed in such a way that we avoid running loops and instead make use of time series to gradually build the data we need to perform calculation. This allows the calculations to run on unbound series, and/or higher number of samples 🎲...
▮ FEATURES Now as library version :) String-based transition-effects Performance optimization. Reduced memory consumption up to >90% by kicking the output to the "stdout". Use marquee- or loader-effect on any possible string location. Example: UI Price-Ticker ---------------------------------------------------------------------------- Library ...
Library "eHarmonicpatternsLogScale" Library provides functions to scan harmonic patterns both or normal and log scale getSupportedPatterns() get_prz_range(x, a, b, c, patternArray, errorPercent, start_adj, end_adj, logScale) Provides PRZ range based on BCD and XAD ranges Parameters: x : X coordinate value a : A coordinate value b : B...
Library "ZigzagObjects" User Defined Types to be used for Zigzag related libraries. This library just contain types. There be be another library ZigzagMethods which will implement using these types. Advantage of having types defined in separate library is that we do not have to update types for changing the implementation. Indicator Indicator is collection...
Library "MLExtensions" normalizeDeriv(src, quadraticMeanLength) Returns the smoothed hyperbolic tangent of the input series. Parameters: src : The input series (i.e., the first-order derivative for price). quadraticMeanLength : The length of the quadratic mean (RMS). Returns: nDeriv The normalized derivative of the input series. ...
Library "FibRatios" Library with calculation logic for fib retracement, extension and ratios retracement(a, b, ratio, logScale, precision) Calculates the retracement for points a, b with given ratio and scale Parameters: a : Starting point a b : Second point b ratio : Ratio for which we need to calculate retracement c logScale : Flag...
Style Made Easy with 175 Reversable light/dark themes Built on to of my theme engine, so any tools built with one will work with the other. getTheme(_input) Get a theme by name. (see lib for copy/paste list) Parameters: _input : string Name of Theme to use. apathy() Theme preset -> "Apathy" Returns: Theme object apprentice() Theme preset...
Library "HSupertrend" Supertrend implementation based on harmonic patterns hsupertrend(zProperties, pProperties, errorPercent, showPatterns, patternColor) derives supertrend based on harmonic patterns Parameters: zProperties : ZigzagProperties containing Zigzag length and source array pProperties : PatternProperties used for calculation ...
Hello everyone, Here is a perfectly replicated TradingView backtesting engine condensed into a single library function calculated with arrays. It includes TradingView's calculations for Net profit, Total Trades, Percent of Trades Profitable, Profit Factor, Max Drawdown (absolute and percent), and Average Trade (absolute and percent). Here's how TradingView...
Library "theme_engine" Theme Builder and Structure for live generative themes init(_name) New theme object. Parameters: _name : (string) opptional name Returns: a VAR theme (holds it's vals when updated if not overwritten) globals(theme, _h1, _h2, _h3, _h4, _s, _val, _contrast) Create light/dark theme globals Parameters: theme :...
█ OVERVIEW This library is a Pine Script™ programmer’s tool for incorporating TradingView's well-known technical ratings within their scripts. The ratings produced by this library are the same as those from the speedometers in the technical analysis summary and the "Rating" indicator in the Screener , which use the aggregate biases of 26 technical...
Library "distance_percentile" Collection of types and functions that can be used for the calculation of the percentage of a distance from a barrier price using several methods. Methods supported are percentagewise (PERC), atr-based (ATR), local extrema (LOC), tick-based (TICKS) and risk reward ratio (RR) getHigherDistPerc(dist, curr) getHigherDistPerc -...
Library "SH_Library" events() Returns the list of dates supported by this library as a string array. Returns: array : Names of events supported by this library fomcMeetings() Gets the FOMC Meeting Dates. The FOMC meets eight times a year to determine the course of monetary policy. The FOMC announces its decision on the federal funds rate at the...
Basic library for the visible range chart; with functions to allow plotting Fibs from body high/low as well as wick high/low -Thanks to code from @PineCoders Visible Chart library (PineCoders/VisibleChart/4), which is a much more comprehensive library than this, but which does not include some functions that I find useful: -Added the following exportable...
Library "string_extras" Additional String shortcuts, unshift and pop return the string ~without~ the first or last, so in use will still require to extract first or last character prior to overwriting a string with the output. can be imported "as str" to work side by side with regular pine last(_string) last char of a string Parameters: _string...
Library "Events" events() Returns the list of dates supported by this library as a string array. Returns: array : Names of events supported by this library fomcMeetings() Gets the FOMC Meeting Dates. The FOMC meets eight times a year to determine the course of monetary policy. The FOMC announces its decision on the federal funds rate at the...
Library "profitestimate" Simple profit Estimatr. Engages when Position != 0 and holds until posittion is na/0... if position changes sizes, it will update automatically and adjust. it has an input for comission to estmate exit fees update_avgprice(_sizewas, _delta, _pricewas, _newprice) Get a new Average position Price Parameters: _sizewas :...