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) ...
You don't need to initialize anything.. After you import the library you can use .print() as easy as that..! Hope this helps * use a unique ID for each .print() call let me know if you run into any bugs by trying to make it as user friendly as possible i had to do some not ideal things so there's a chance it could present some bugs with a lot of labels...
Library "DarkWaveColorThemes" Description: A simple, binary color-theming library that provides you with easy-access 'bullish and bearish' colors which you can use to make your indicators more aesthetically pleasing. These color themes were developed to help the community make indicators look excellent with ease. Functions: 1. getThemeColor(themeName,...
Library "LibraryTimeframeHelper" Helper functions to work with timeframes: to get the next higher TF, and to make the string pretty for use in labels. Perhaps I'll add more later. f_getHigherTF(_TF) f_getHigherTF(): Converts the input timeframe into the next one up in the list of commonly used timeframes. NOTE: You can NOT use a TF from this function as...
Library "AlgebraLib" f_signaldraw(_side, _date) : Draw a simple label with Buy or Sell signal Parameters: _side (string) _date (int) Returns: : VOID, it draws a new label