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. method binary_search_basic(sortedArray, item, order) binary_search_basic - finds the...
Library "analytics_tables" 📝 Description This library provides the implementation of several performance-related statistics and metrics, presented in the form of tables. The metrics shown in the afforementioned tables where developed during the past years of my in-depth analalysis of various strategies in an atempt to reason about the performance of each...
Killzones & Macros Library for Trading Sessions This Pine Script library is designed to help traders identify and act during high-volatility trading windows, commonly referred to as "Killzones." These are specific times during the day when institutional traders are most active, resulting in increased liquidity and price movement. The library provides boolean...
Library "MarkovChains" Markov Chains library by @metacamaleo. Created in 09/08/2024. This library provides tools to calculate and visualize Markov Chain-based transition matrices and probabilities. This library supports two primary algorithms: a rolling window Markov Chain and a conditional Markov Chain (which operates based on specified conditions). The...
Library "TimeLibrary" TODO: add library description here Line_Type_Control(Type) Line_Type_Control: This function changes between common line types options available are "Solid","Dashed","Dotted" Parameters: Type (string) : : The string to choose the line type from Returns: Line_Type : returns the pine script equivalent of the string...
█ OVERVIEW The library allows to automatically draw a table based on a string or float matrix (or both) controlling all of the parameters of the table (including merging cells) with parameter matrices (like, e.g. matrix of cell colors). All things you would normally do with table.new() and table.cell() are now possible using respective parameters of...
Library "bollingerBands" Bollinger bands related functions get_multiple_bollinger_bands(stdv1, stdv2, stdv3, stdv4, stdv5, stdv6, stdv7, length, source) Parameters: stdv1 (int) stdv2 (int) stdv3 (int) stdv4 (int) stdv5 (int) stdv6 (int) stdv7 (int) length (simple int) source (float) ...
Library "Waves" Methods for elliot wave detection method delete(this) deletes the subwave drawing Namespace types: Subwave Parameters: this (Subwave) : Subwave object to be deleted Returns: deleted subwave object method delete(this) deletes the wave drawing and the corresponding subwaves Namespace types: Wave Parameters: this...
Library "movingAveragesUtilities" get_movingAverages_data(source, length_fast, length_medium, length_slow) Parameters: source (float) length_fast (simple int) length_medium (simple int) length_slow (simple int)
█ OVERVIEW Contains a type HTFMA used to return data on six moving averages from a higher timeframe. Several types of MA's are supported. █ HOW TO USE Please see instructions in the code (in library description). (Important: first fold all sections of the script: press Cmd + K then Cmd + - (for Windows Ctrl + K then Ctrl + -) █ FULL LIST OF FUNCTIONS AND...
Library "Drawing" User Defined types and methods for basic drawing structure. Consolidated from the earlier libraries - DrawingTypes and DrawingMethods method get_price(this, bar) get line price based on bar Namespace types: Line Parameters: this (Line) : (series Line) Line object. bar (int) : (series/int) bar at which line price need to be...
█ OVERVIEW The library contains functions for parsing and importing complex CSV configurations (with a special simple syntax) into a special hierarchical object (of type objProps ) as follows: Functions: parseConfig() - reads CSV text into an objProps object. toT() - displays the contents of an objProps object in a table form, which allows to...
█ OVERVIEW Contains various functions for manipulation with strings: - padright() / padleft() - Pad a string to the right or left with a given char. - trim2() - Trims not only spaces but also line breaks. - nz(string) - like nz(), replaces na with a supplied string █ FUNCTIONS nz(s, replacement) Similar to nz() but for strings. However,...
OVERVIEW This script is a tinny library for creating and displaying formatted values in TradingView scripts. It provides a structured way to present key information like titles, percentages, currency values, decimals, and integers with clear formatting. This allows you to coordinate your strings in advance and hold one item to use for calling your string to a...
█ OVERVIEW Contains functions for concatenation and wrapping of the strings: - concatTrunc() / concatTrunc2() - Concatenate via a separator up to a given length truncating from left or right. concatTrunc2 returns also the number of overflowing chars (in a tuple) - print() - A powerful concatenate function truncating chars from left or right and/or lines...
█ OVERVIEW This library contains regular expression (regex) search functions which are helpful, in particular, in reading configuration inputs. feedRgx(): Searches for the first occurrence of `regex` pattern in the `src` and returns `src` split into parts as a tuple: ` `. If no match returns ` ` countRgx(): Counts `regex` occurrences in the...
Library "dataTableUtilities" generate_dataTable(dataTable_map, title, tableYpos, tableXpos) : Generates and shows a data table. Parameters: dataTable_map (map) title (string) : (string): Title of the table tableYpos (string) : (string): Vertical position of the table tableXpos (string) : (string):...
Library "mlivs" TODO: add library description here adx(high, low, adxlen, dilen) TODO: add function description here Parameters: high (float) low (float) adxlen (simple int) dilen (simple int) Returns: TODO: add what function returns adxMA() impulseMACD(lengthMA, lengthSignal) Parameters: lengthMA (simple int) ...