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 "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
This script is to remind you of how much you would lose if the price went down to the all time low. This will make you think twice about your purchases!
This is a bespoke, unfinished script for Kyle. It is primarily designed to be used to provide useful data for unusually volatile stocks premarket, and for some other situations too. Featuring: Pre/post market volume Short data RVOL ATR and turnover
This script was inspired by STEPN, where we should always be aware of the price change between GSTUSDT and SOLUSDT to make better profit. We can easily compare any trading pair price from any desired exchange we want even if they don't have direct trading pair on certain exchange to monitor thier price correlation. We can define the lower range we are prefer to...
True Bar Volume, or TB Volume, is an indicator that measures the volume against the price action that has occurred. Volume can sometimes be miss leading as it does not necessary show whether it had an impact on the price of the underlying, as one individual (represented as one volume) who has put $100 into the underlying can impact the underlying the same as...
Flip a coin every Monday. Heads, go long. Tail, go short. Stoploss at 1 ATR, and Take profit at 1 ATR too. 1:1 risk to reward ratio. After backtesting 2018, 2019, and 2020 with 28 major currency pairs. We are getting close to a 50% win rate with an 8% standard deviation. Believe it or not, this simple performs better than lots of the popular indicators out...
A simple year-to-date (YTD) % return calculation, displayed on a panel.
A simple table with up to 9 key financials on your chart. Simple, easy and configurable.
Library "least_squares_regression" least_squares_regression: Least squares regression algorithm to find the optimal price interval for a given time period basic_lsr(series, series, series) basic_lsr: Basic least squares regression algorithm Parameters: series : int t: time scale value array corresponding to price series : float p: price scale...
Library "simple_squares_regression" simple_squares_regression: simple squares regression algorithm to find the optimal price interval for a given time period basic_ssr(series, series, series) basic_ssr: Basic simple squares regression algorithm Parameters: series : float src: the regression source such as close series : int region_forward: number...
Library "moving_average" moving_average: moving average variants variant(string, series, simple) variant: moving average variants Parameters: string : type: type in series : float src: the source series of moving average simple : int len: the length of moving average Returns: float: the moving average variant value
Simple tool that will calculate the percent change from multiple entry points. Use this to keep track of where you bought and the % change since You can add your entry price to the EntryPrices array and your amount to the EntryAmounts arrays.
Library "MovingAverages" Contains utilities for generating moving average values including getting a moving average by name and a function for generating a Volume-Adjusted WMA. sma(_D, _len) Simple Moving Avereage Parameters: _D : The series to measure from. _len : The number of bars to measure with. ema(_D, _len) Exponential Moving...
Library "historicalrange" Library provices a method to calculate historical percentile range of series. hpercentrank(source) calculates historical percentrank of the source Parameters: source : Source for which historical percentrank needs to be calculated. Source should be ranging between 0-100. If using a source which can beyond 0-100, use short...
Library "FunctionPatternDecomposition" Methods for decomposing price into common grid/matrix patterns. series_to_array(source, length) Helper for converting series to array. Parameters: source : float, data series. length : int, size. Returns: float array. smooth_data_2d(data, rate) Smooth data sample into 2d points. Parameters: data...
Library "statistics" General statistics library. erf(x) The "error function" encountered in integrating the normal distribution (which is a normalized form of the Gaussian function). Parameters: x : The input series. Returns: The Error Function evaluated for each element of x. erfc(x) Parameters: x : The input series Returns: The...