█ OVERVIEW This library is a Pine programmer’s tool containing functions that return values calculated from the range of visible bars on the chart. This is now possible in Pine Script™ thanks to the recently-released chart.left_visible_bar_time and chart.right_visible_bar_time built-ins, which return the opening time of the leftmost and rightmost bars...
Library "FunctionKellyCriterion" Kelly criterion methods. the kelly criterion helps with the decision of how much one should invest in a asset as long as you know the odds and expected return of said asset. simplified(win_p, rr) simplified version of the kelly criterion formula. Parameters: win_p : float, probability of winning. rr : float,...
Library "DatasetWeatherTokyoMeanAirTemperature" Provides a data set of the monthly mean air temperature (°C) for the city of Tokyo in Japan. this was just for fun, no financial implications in this. reference: www.data.jma.go.jp TOKYO WMO Station ID:47662 Lat 35o41.5'N Lon 139o45.0'E year_() the years of the data set. Returns: array : year values. ...
Library "PointofControl" POC_f() The genesis of this project was to create a POC library that would be available to deliver volume profile information via pine to other scripts of indicators and strategies. This is the indicator version of the library function. A few things that would be unique with the built in - it allows you to choose the kind of...
Library "FunctionArrayUnique" Method for retrieving the unique elements in a array. for example would retrieve a array with , the elements retrieved will be sorted by its first seen index in parent array. note: float values have no precision option. unique(source) method for retrieving the unique elements in a array. Parameters: source : array...
Library "FunctionDynamicTimeWarping" "In time series analysis, dynamic time warping (DTW) is an algorithm for measuring similarity between two temporal sequences, which may vary in speed. For instance, similarities in walking could be detected using DTW, even if one person was walking faster than the other, or if there were accelerations and decelerations...
Library "MiteTricks" Matrix Global Registry. Get, Set, automatic growing, universal get/set, multi-matrix dictionaries, multi-dictionary matrixes.. add slice matrixes of any type, share one common global key registry pull up an item from a category, and item name ie a table of info. same cell needs a color, a size, a string, a value, etc.. all of which can be...
Library "loxxdynamiczone" Dynamic Zones Derives Leo Zamansky and David Stendahl's Dynamic Zone, see "Stocks & Commodities V15:7 (306-310): Dynamic Zones by Leo Zamansky, Ph .D., and David Stendahl" What are Dynamic Zones? As explained in "Stocks & Commodities V15:7 (306-310): Dynamic Zones by Leo Zamansky, Ph .D., and David Stendahl" Most indicators use a...
Library "X48_LibaryStrategyStatus" // Thanks For Code by Cayoshi this code back up for my strategy, make sure when use libary direct the code in my libary //****** HOW TO ********// // COPY THIS CODE AND PASTE TO YOUR STRATEGY // ⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️ // >> เรียกใช้ library ( import lib) <<< import X4815162342/X48_LibaryStrategyStatus/1 as fuLi //>>>...
Library "Hex" Hex String Utility intToHex(_n) helper Binary half octet to hex character Parameters: _n : Digits to convert fromDigits(_input, _buffer) Digits to Hex String output Parameters: _input : Integer Input _buffer : Number of 0's to pad Hex with Returns: string output hex character value buffered to desired length (00-ff default)
Library "calc" Library for math functions. will expand over time. split(_sumTotal, _divideBy, _forceMinimum, _haltOnError) Split a large number into integer sized chunks Parameters: _sumTotal : (int) Total numbert of items _divideBy : (int) Groups to make _forceMinimum : (bool) force minimum number 1/group _haltOnError : (bool) force...
Library "loxxvarietyrsi" 7 varieties of RSI used in Loxx's indicators and strategies. Default is "rsi_rsi" which is just TV's built int ta.rsi() function. "rsi_rsi" is regular ta.rsi() "rsi_slo" is slowed down version of regular RSI "rsi_rap" is ta.rsi() but uses SMA instead of RMA, this is the same as Cuttlers RSI "rsi_har" is Michael Harris RSI, but a...
Library "LevelsManager" TODO: Track up to 6 TakeProfits and 1 StopLoss achievement for one or many of your buy/sell conditions. manageTrade(bool, bool, bool, string, string, float, float, bool, bool, bool, bool, bool, bool, float, float, float, float, float, float, float) Track TakeProfits and StopLoss achievement for one or many of your buy/sell...
Library "SumOfCandles" This function returns sum of candlestick's body. calc(_open, _close, _len, _malen, _usema) Returns the sum of candlestick body. Parameters: _open : Source _close : Source _len : Period _malen : MA Period _usema : A flag of using MA Returns: sum calc(_len, _malen, _usema) Returns the sum of...
Library "pta_plot" pta_plot: This library will help you to plot different value. I will keep updating with your requirement print_array(array_id, border_color) Display array element as a table. Parameters: array_id : Id of your array. border_color : Color for border (`color.black` is used if no argument is supplied). Returns: Display array...
Library "TR_HighLow_Lib" TODO: add library description here ShowLabel(_Text, _X, _Y, _Style, _Size, _Yloc, _Color) TODO: Function to display labels Parameters: _Text : TODO: text (series string) Label text. _X : TODO: x (series int) Bar index. _Y : TODO: y (series int/float) Price of the label position. _Style : TODO: style (series...
Library "threengine_global_automation_library" A collection of functions used for trade automation getBaseCurrency() Gets the base currency for the chart's ticker. Supported trade pairs are USD, USDT, USDC, BTC, and PERP. Returns: Base currency as a string getChartSymbol() Get the current chart's symbol without the base currency appended to it....