Library "lib_unit" functions for assertions and unit testing method init(this) Namespace types: Test Parameters: this (Test) method is_true(this, expression, message) assert that expression is true, if it's false a runtime error will be thrown Namespace types: Test Parameters: this (Test) expression (bool) : The value to be...
Library "lib_log" library for logging and debugging pine scripts method init(this) Namespace types: Logger Parameters: this (Logger) method debug(this, message, condition) Namespace types: Logger Parameters: this (Logger) : Logger to add the entry to message (string) : The Message to add condition (bool) : optional flag to...
Library "DerivativeAlertPlaceHolders" TODO: Creation of Placeholders for Alerts, for using in FNO segment. BasicPH(CustomMessage) Parameters: CustomMessage (string) : TODO: Requires Custom Input of Message Returns: TODO: String with PH CustomPlaceHoldersFNO(CustomInputMessage, InputPrice) Parameters: CustomInputMessage (string) : TODO:...
Library "VolatilityIndicators" This is a library of Volatility Indicators . It aims to facilitate the grouping of this category of indicators, and also offer the customized supply of the parameters and sources, not being restricted to just the closing price. @Thanks and credits: 1. Dynamic Zones: Leo Zamansky, Ph.D., and David Stendahl 2. Deviation: Karl...
Library "RiskManagement" This library keeps your money in check, and is used for testing and later on webhook-applications too. It has four volatility functions and two of them can be used to calculate a Stop-Loss, like Average True Range. It also can calculate Position Size, and the Risk Reward Ratio. But those calculations don't take leverage into account. ...
Library "Debug" Some debugging functions. label_on_each_bar(txt, y_position, label_size, label_color, txt_color) Prints a label on every bar to show text. By default, only the last 50 labels will be shown on the chart. You can increase this amount up to a maximum of 500 by using the max_labels_count parameter in your script’s indicator() or strategy()...
Library "Tooltip" This library helps creating and managing nice looking data (key/value) tooltips that you can use for labels. The tooltips data key/value will align automatically. It is optional to convert the data to a values only string too. method addSpacesToKey(this) Calculates the amount of spaces needed after the key to make it the key least 4...
Library "MyVolatilityBands" Just a lil' library of volatility bands that I use in some scripts bollingerbands(src, lkbk, mult, basis) Bollinger Bands Parameters: src (float) : float lkbk (int) : int mult (float) : float basis (float) Returns: Bollinger Bands donchianchannels(src, lkbk, band_width) Donchian...
Library "Pivot" This library helps you store and manage pivots. bias(isHigh, isHigher, prevWasHigher) Helper function to calculate bias. Parameters: isHigh (bool) : (bool) Wether the pivot is a pivot high or not. isHigher (bool) : (bool) Wether the pivot is a higher pivot or not. @return (bool) The bias (true = bullish, false = bearish,...
Library "LYGLibrary" 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(number, decimalPlaces) Truncates (cuts) excess decimal places Parameters: number...
The "Mizar_Library" is a powerful tool designed for Pine Script™ programmer’s, providing a collection of general functions that facilitate the usage of Mizar’s DCA (Dollar-Cost-Averaging) bot system. To begin using the Mizar Library, you first need to import it into your indicator script. Insert the following line below your indicator initiation line: import...
Library "MyMovingAveragesLibrary" alma(src, lkbk, alma_offset, alma_sigma) ALMA - Arnaud Legoux Moving Average Parameters: src (float) : float lkbk (int) : int alma_offset (simple float) alma_sigma (simple float) : float Returns: moving average frama(src, lkbk, FC, SC) FRAMA - Fractal Adaptive Moving Average Parameters: ...
Library "Absolute_ZigZag_Lib" This ZigZag Library is a Bit different. Instead of using percentages or looking more than 1 bar left or right, this Zigzag library calculates pivots by just looking at the current bar highs and lows and the ones of one bar earlier. This is the most accurate way of calculating pivots and it also eliminates lag. The library also...
Lib:Generator This library generate levels that could be used inside SNG scripts and strategies. Also uses beta version of SNG Types library
Library "Indicators" this has a calculation for the most used indicators. macd4C(fastMa, slowMa) this calculates macd 4c Parameters: fastMa (simple int) : is the period for the fast ma. the minimum value is 7 slowMa (simple int) : is the period for the slow ma. the minimum value is 7 Returns: the macd 4c value for the current bar ...
█ OVERVIEW This library is a Pine Script™ programmer's tool offering the ability to compute relative values, which represent comparisons of current data points, such as volume, price, or custom indicators, with their analogous historical data points from corresponding time offsets. This approach can provide insightful perspectives into the intricate dynamics...
Library "AoDivergenceLibrary_" this has functions which calculate and plot divergences which are used for ao divergences. essentially, this finds divergences by using the ao divergence logic. this logic has been used in "AO Hid & Reg Div with LC & Kernel". regBullDivergence(swingLow, osc, colour) Parameters: swingLow (bool) osc (float) ...