Library "TradingHook" This library is a client script for making a webhook signal formatted string to TradingHook webhook server. buy_message(password, amount, order_name) Make a buy Message for TradingHook. Parameters: password : (string) password that you set in .env file. amount : (float) amount. If not set, your strategy qty will be...
Library "PlurexSignalIntegration" Provides tools for integrating Strategies and Alerts into plurex.io signals. plurexMarket() Build a Plurex market from a base and quote asset symbol. Returns: A market string that can be used in Plurex Signal messages. tickerToPlurexMarket() Builds simple Plurex market string from the syminfo Returns: A market string...
Library "fontilab" Provides function's indicators for pivot - trend - resistance. pivots(src, lenght, isHigh) Detecting pivot points (and returning price + bar index. Parameters: src : The chart we analyse. lenght : Used for the calcul. isHigh : lookging for high if true, low otherwise. Returns: The bar index and the price of the pivot. ...
Library "ColorArray" Simple color array gradient tool. makeGradient(size, _col1, _col2, _col3, _col4, _col5) Color Gradient Array from 5 colors. Parameters: size : : default 10 _col1 : : default #ff0000 _col2 : : default #ffff00 _col3 : : default #00ff00 _col4 : : default #00ffff _col5 : : default #0000ff Returns: array of...
Library "WpProbabilisticLib" Library that contains functions to calculate probabilistic based on historical candle analysis CandleType(open, close) This function check what type of candle is, based on its close and open prices Parameters: open : series float (open price) close : series float (close price) Returns: This function return the...
Library "external_input_utils" Collection of external input utilities for conversion and other hacky functions str_to_src(value) str_to_src - Convert the string value to the coresponding source series. It can be used to limit the "input.source" choices provided to the end user. The most interesting part is that it can be used to overcome the "one...
A Magical little helper friend for Candle Math. When composing scripts, it is often necessary to manipulate the math around the OHLC. At times, you want a scalar (absolute) value others you want a vector (+/-). Sometimes you want the open - close and sometimes you want just the positive number of the body size. You might want it in ticks or you might want it in...
Library "SizeAndPlace" size and location shortcuts posYtoInt(string) posYtoInt as titled.. Parameters: string : _inp posXtoInt(string) posXtoInt as titled.. Parameters: string : _inp sizeToInt(string) sizeToInt as titled.. Parameters: string : size sizeToString(int) sizeToString as titled.. Parameters: int : size ...
This library was designed to create three different datasets using Bill Williams fractals. The goal is to spot trends in reversal data and ultimately use these datasets to help predict future price reversals. First, the pivot() function is used to initialize and populate three separate arrays (high pivot , low pivot , all pivots ). Since each high/low price...
Library "table_library" TODO: With this library, you can add tables to your strategies. strategy_table() Returns: Strategy Profit Table Adds a table to the graph of the strategy for which you are calling the function. You can see data such as net profit in this table. No parameters. Just call the function inside the strategy. Example Code : import...
█ OVERVIEW This library is a Pine Script™ programmer’s tool containing a variety of time related functions to calculate or measure time, or format time into string variables. █ CONCEPTS `formattedTime()`, `formattedDate()` and `formattedDay()` Pine Script™, like many other programming languages, uses timestamps in UNIX format, expressed as the...
Library "HTV_LibraryV2" up_bar() 'up_bar' checks true for every candle that closed above open price. Returns: custom Series Bool last_up_bar() 'last_up_bar' checks true for every last candle that closed above open price. Returns: custom Series Bool down_bar() 'down_bar' checks true for every candle that closed below open price. Returns: custom...
Library "AutoFiboRetrace" TODO: add library description here fun(x) TODO: add function description here Parameters: x : TODO: add parameter x description here Returns: TODO: add what function returns
Library "ADX" adx(dilen, adxLen) Parameters: dilen : Length of the Directional Index. adxLen : Length (smoothing) of the Average Directional Index. Returns:
Library "honestpersonallibrary" thestratnumber() this will return the number 1,2 or 3 using the logic from Rob Smiths #thestrat which uses these type of bars for setups getBodySize() Gets the current candle's body size (in POINTS, divide by 10 to get pips) Returns: The current candle's body size in POINTS getTopWickSize() Gets the current candle's...
Library "FunctionIntrabarCrossValue" intrabar_cross_value(a, b, step) Find the minimum difference of a intrabar cross and return its median value. Parameters: a : float, series a. b : float, series b. step : float, step to iterate x axis, default=0.01 Returns: float