Library "cphelper" ACPU helper library - for private use. Not so meaningful for others. calculate_rr(targetArray, rrArray, breakevenOnTarget1) calculates risk reward for given targets Parameters: targetArray (float ) : array of targets rrArray (float ) : array of risk reward breakevenOnTarget1 (simple bool) : option to breakeven Returns:...
Library "FinandyHookLib" TODO: add library description here createOrderJson(model, hook_secret, options) Parameters: model (orderModel type from Hamster-Coder/OrderLib/7) hook_secret (string) options (textFormatOptions) textFormatOptions Fields: price_format (series__string) percent_format (series__string)
Library "KernelFunctionsFilters" This library provides filters for non-repainting kernel functions for Nadaraya-Watson estimator implementations made by @jdehorty. Filters include a smoothing formula and zero lag formula. You can find examples in the code. For more information check out the original library KernelFunctions. rationalQuadratic(_src, _lookback,...
Library "MyCandleLibrary" TODO: Candle Pattern Library IsEngulfingCandle(n, trendRule) TODO: Identify Bullish Engulfing Candle Parameters: n (int) : TODO: Candle Number trendRule (string) Returns: TODO: If Identify Bullish Engulfing candle return True otherwise False
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...