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...
Library "CurrentlyPositionIndicator" Currently position indicator run(_index, _price, _stoploss, _high, _low, _side, _is_entered, _colors, _position_left, _box_width) Currently positions indicator Parameters: _index (int) : entry index _price (float) : entry price _stoploss (float) : stoploss price _high (float) : range high _low...
This library comprises valuable functions for implementing strategies on TradingView, articulated in a professional writing style. The initial version features a monthly Profit & Loss table with percentage variations, utilizing a modified version of the script by @QuantNomad. Library "strategy_utilities" monthly_table(results_prec, results_dark)...
This library is for identifying uptrends and downtrends using a loopback candle analysis method. Which contains two functions: uptrendLoopbackCandleIdentification() and downtrendLoopbackCandleIdentification() . These functions check if the current candle is part of an uptrend or downtrend, respectively, based on the specified lookback period. The ...
Library "BankNifty_CSM" TODO: add library description here getLtp_N_Chang(openPrice, closePrice, highPrice, hl2Price, lowPrice, hlc3Price, bankNiftyClose) Parameters: openPrice (float) closePrice (float) highPrice (float) hl2Price (float) lowPrice (float) hlc3Price (float) bankNiftyClose (float)
Library "MovingAverages" Exotic or Interesting Moving Averages Collection. Just the one right now! alphaConfigurableEma(src, alpha, nSmooth) Calculates a variation of the EMA by specifying a custom alpha value. Parameters: src (float) : a float series to get the EMA for, e.g. close, hlc3, etc. alpha (float) : a value between 0 (ideally greater,...
Introduction: Spider charts, also known as radar charts or web charts, are a powerful data visualization tool that can display multiple variables in a circular format. They are particularly useful when you want to compare different data sets or evaluate the performance of a single data set across multiple dimensions. In this blog post, we will dive into the world...
Library "ReversalChartPatternLibrary" User Defined Types and Methods for reversal chart patterns - Double Top, Double Bottom, Triple Top, Triple Bottom, Cup and Handle, Inverted Cup and Handle, Head and Shoulders, Inverse Head and Shoulders method delete(this) Deletes the drawing components of ReversalChartPatternDrawing object Namespace types:...
Library "TradeTracker" Simple Library for tracking trades method track(this) tracks trade when called on every bar Namespace types: Trade Parameters: this (Trade) : Trade object Returns: current Trade object Trade Has the constituents to track trades generated by any method. Fields: id (series int) direction (series int) :...
Library "MathEasingFunctions" A collection of Easing functions. Easing functions are commonly used for smoothing actions over time, They are used to smooth out the sharp edges of a function and make it more pleasing to the eye, like for example the motion of a object through time. Easing functions can be used in a variety of applications, including animation,...