Library "TurntLibrary" Collection of functions created for simplification/easy referencing. Includes variations of moving averages, length value oscillators, and a few other simple functions based upon HH/LL values. ma(source, length, type) Apply a moving average to a float value Parameters: source : Value to be used length : Number of bars to...
TableBuilder is a library designed to make it easier to create tables in PineScript. It allows you to more flexibly define the structure of a table before actually building it. Features: Style inheritance: styles are inherited from Table, to Column, to Row, and then Cell. Columns are useful for propagating/reusing style but they are not required. Add rows...
Utility for working with colors. Get the luminosity of a color and determine the optimal (black or white) foreground color.
Library "ISODateTime" getDateParts(dateStr) Get year, month, day from date string. Parameters: dateStr : : ISO 8601 format, i.e. "2022-05-04T14:00:00.001000-04:00" or "2022-05-04T14:00:00Z" Returns: array of int getTimeParts(dateStr) Get hour, minute, seconds from date string. Parameters: dateStr : : ISO 8601 format, i.e....
Library "Obj_XABCD_Harmonic" Harmonic XABCD Pattern object and associated methods. Easily validate, draw, and get information about harmonic patterns. See example code at the end of the script for details. init_params(pct_error, pct_asym, types, w_e, w_p, w_d) Create a harmonic parameters object (used by xabcd_harmonic object for pattern validation and...
This library contains functions that try to analyze trading signals performance. Like the % of average returns after a long or short signal is provided or the number of times that signal was correct, in the inmediate 2 candles after the signal.
Library "json" JSON Easy Object Create/stringiffy Functions to add/write JSON new (name , kind) -> object set (_item , _obj , _key ) -> key index for parent object's array add (_obj , _key , _item ) -> key index for parent object's array write (object , kind ) -> stringified object // (enter kind to cut off key...
█ OVERVIEW This is a simplest example of user-defined types (UDT) or objects , which simplify as alternative to hello world. █ CREDITS Tradingview █ USAGE These are the types used during initializations, commonly variables. export type Settings int bar float price string phrase ... Example of library function to print out label. ...
█ OVERVIEW This library is a Pine Script™ programmer’s tool containing custom user-defined types and functions to calculate Zig Zag indicators within their scripts. It is not a stand-alone indicator. Pine Script™ libraries are publications that contain reusable code for importing into Pine Script™ indicators, strategies, and other libraries. For more...
Library "FrizBug" Debug Tools | Pinescript Debugging Tool Kit All in one Debugger - the benefit of wrapper functions to simply wrap variables or outputs and have the code still execute the same. Perfect for Debugging on Pine str(inp) Overloaded tostring like Function for all type+including Object Variables will also do arrays and matricies of all...
Library "BinaryInsertionSort" Library containing functions which can help create sorted array based on binary insertion sort. This sorting will be quicker than array.sort function if the sorting needs to be done on every bar and the size of the array is comparatively big. This is created with the intention of using this to solve a bigger problem posted by...
Library "POA" This library is a client script for making a webhook signal formatted string to POABOT server. entry_message(password, percent, leverage, kis_number) Create a entry message for POABOT Parameters: password : (string) The password of your bot. percent : (float) The percent for entry based on your wallet balance. leverage :...
Library "PlurexSignalStrategy" Provides functions that wrap the built in TradingView strategy functions so you can seemlessly integrate with Plurex Signal automation. NOTE: Be sure to: - set your strategy default_qty_value to the default entry percentage of your signal - set your strategy default_qty_type to strategy.percent_of_equity - set your strategy...
Library "datTable" Dynamic Array Table.... Configurable Shape/Size Table from Arrays Allows for any data in any size combination of arrays to join together with: all possible orientations! filling all cells contiguously and/or flipping at boundaries vertical or horizontal rotation x/y axis direction swapping all types array inputs for data. ...
Library "PlurexSignalCore" General purpose functions and helpers for use in more specific Plurex Signal alerting scripts and libraries plurexMarket() Build a Plurex market string from a base and quote asset symbol. Returns: A market string that can be used in Plurex Signal messages. tickerToPlurexMarket() Builds Plurex market string from the...
Library "ExpansionContraction" Library for Expansion Contraction Indicator, a zero-lag dual perspective indicator created by Brian Latta based on Jake Bernstein’s principles of Moving Average Channel system. calc(shortLookback, longLookback) Calculates Expansion Contraction values. Parameters: shortLookback : Integer for the short lookback...
Library "Stringify" Cast variable types and enumerations to human-readable Strings timeframe(string) Cast a timeframe enumeration to readable string. Parameters: string : `T` is a timeframe enumeration ('3D', '120', '15', '5s' ...) Returns: A string representation of the timeframe or 'NA' if `x` is `na`
Library "EMAFlow" Functions that manipulate a set of 5 MAs created within user-supplied maximum and minimum lengths. The MAs are spaced out (within the range) in a way that approximates how Fibonnaci numbers are spaced. Using MA flow, as opposed to simple crosses of the minimum and maximum lengths, gives more detail, and can result in faster changes and more...