Library "HelperTA" This library contains useful technical indicators that I use regularly in my charts. `stockRSI` is not mine, but included because used often and referenced by internal functions. `DCO` is a normalisation of the donchian channels; the price relative to the donchian channels, on a range. `MarketCycle` is a weighted aggregate of RSI,...
Library "Vector3" Representation of 3D vectors and points. This structure is used to pass 3D positions and directions around. It also contains functions for doing common vector operations. Besides the functions listed below, other classes can be used to manipulate vectors and points as well. For example the Quaternion and the Matrix4x4 classes are useful for...
Library "MAD_MATH" This is a mathematical library where I store useful kernels, filters and selectors for the different types of computations. This library also contains opensource code from other scripters. Future extensions are very likely, there are some functions I would like to add, but I have to wait for approvals so i can include them. ...
█ ARRAY BROWSER Add you arrays to the array browser window and scroll them away left and right. Flexible formatting options (see below). Many thanks to @kaigouthro for his beautiful matrixautotable library. (import kaigouthro/matrixautotable/14) How to use Copy the "ARRAY BROWSER" commented code section below to your script and uncomment. See DEMO...
Library "toString" Contains methods for conversion to string of int/float/bool/string/line/label/box and arrays and matrices thereof. Also contains a string wrapping function. method getXloc(line/label/box) returns true if line/box/label are xloc.bar_time, false otherwise nzs(string) Analogue of nz() but for strings. Returns "" is _s is na. method...
This library provides a JavaScript-style debug console to Pine Coders. It supports the most commonly used utilities from the WHATWG Console Standard including the following: • console.log • console.debug • console.info • console.warn • console.error • console.assert • console.count • console.countReset • console.group • console.groupEnd •...
Library "biased_price_target" Collection of functions that can be used for the calculation of biased price targets like stop loss and take profit from a reference price using several methods that are already provided by the "distance_ratio" library plus the 'HHLL'. Methods supported are percentagewise (PERC), atr-based (ATR), fixed profit (PROF), tick-based...
Library "Position_control" This is a library for defining positions and working with them. f_calculateLeverage(_Leverage, _maintenance, _value, _direction) Calculate the leverage used in a trade. @description This function calculates the leverage used in a trade, based on the value of the trade, the maintenance margin, and the direction of the...
Library "Mad_Standardparts" This are my Standardparts used in upcoming scipts roundTo(_value, _decimals) Round a floating point value to a specified number of decimal places. @description This function takes a floating point value and rounds it to a specified number of decimal places. Parameters: _value (float) : The floating point value to be...
Library "APT_Metrics" Portfolio metrics using alternative portfolio theory metrics(init, cur, start, end, alpha) Calculates APT metrics Parameters: init (float) : Starting Equity (strategy.initial) cur (float) start (int) : Start date (UNIX) end (int) : End Date (UNIX) alpha (float) : Confidence interval for DaR/CDaR. Defval =...
Library "WebhookJsonMsg" This webhook json message library provides convenient functions for building JSON messages Used to manage automatic transaction orders and positions method buildWebhookJson(msg) Builds the final JSON payload from a WebhookMessage type. Namespace types: WebhookMessage Parameters: msg (WebhookMessage) Returns: A JSON...
Library "logger" ◼ Overview A dual logging library for developers. Tradingview lacks logging capability. This library provides logging while developing your scripts and is to be used by developers when developing and debugging their scripts. Using this library would potentially slow down you scripts. Hence, use this for debugging only. Once your code is as...
Library "cleanscreens" Screener Panel. This indicator displays a panel with a list of symbols and their indications. It can be used as a screener for multiple timess and symbols in any timeframe and with any indication in any combination. #### Features Multiple timeframes Multiple symbols Multiple indications per group Vertical or...
Library "typeandcast" Contains the following methods: _type() - Returns the type of the variable in the forms "int", "array", "matrix" _type_item() - Returns the type of the variable or of the element (for array/matrix). (e.g. `arrayFloat._type_item()` returns 'float'). _type_struct() - Returns the type of the structure only (i.e....
In the world of data visualization, heatmaps are an invaluable tool for understanding complex datasets. They use color gradients to represent the values of individual data points, allowing users to quickly identify patterns, trends, and outliers in their data. In this post, we will delve into the history of heatmaps, and then discuss how its implemented. The...
Library "BenfordsLaw" Methods to deal with Benford's law which states that a distribution of first and higher order digits of numerical strings has a characteristic pattern. "Benford's law is an observation about the leading digits of the numbers found in real-world data sets. Intuitively, one might expect that the leading digits of these numbers would be...