Through this script you will be able to calculate in real time your total number of coins correlated to the value that is at that moment, so you will not need to log into the brokerage or be simulating sales to know what your total value is in the asset... To use it, just add it to your favorites and then right after adding it to the chart, clicking on its gear,...
- Wanted to check if price movement on a particular candle for day trading is less than my target movement. - A user can place this on chart and on the candles where the price movement is not as predicted from the open price, a red * will be placed above or below the bar - it is best used in fixed profit scalping strategy
Library "Canvas" A library implementing a kind of "canvas" using a table where each pixel is represented by a table cell and the pixel color by the background color of each cell. To use the library, you need to create a color matrix (represented as an array) and a canvas table. The canvas table is the container of the canvas, and the color matrix determines...
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...
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...
Library "divergence" divergence: divergence algorithm with top and bottom kline tolerance regular_bull(series, series, simple, simple, simple, simple, simple) regular_bull: regular bull divergence, lower low src but higher low osc Parameters: series : float src: the source series series : float osc: the oscillator index simple : int lbL:...
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 "on_balance_volume" on_balance_volume: custom on balance volume obv_diff(string, simple) obv_diff: custom on balance volume diff version Parameters: string : type: the moving average type of on balance volume simple : int len: the moving average length of on balance volume Returns: obv_diff: custom on balance volume diff value ...
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
This tool is a quantitative tip for analysts who study volumes or create volume based trading strategies. Like all our projects, we start with a statistical logic to which we add coding logic. This indicator can save a huge amount of time in calculating the variation of volume between sessions . How it work The indicator calculates the difference between...
Counts days to expected Return Of Investment from any given time. Works only with "1 Day" resolution
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 "FunctionCosineSimilarity" Cosine Similarity method. function(sample_a, sample_b) Measure the similarity of 2 vectors. Parameters: sample_a : float array, values. sample_b : float array, values. Returns: float. diss(cosim) Dissimilarity helper function. Parameters: cosim : float, cosine similarity value (0 > 1) Returns: float
Library "WIPNNetwork" this is a work in progress (WIP) and prone to have some errors, so use at your own risk... let me know if you find any issues.. Method for a generalized Neural Network. network(x) Generalized Neural Network Method. Parameters: x : TODO: add parameter x description here Returns: TODO: add what function returns
Library "FunctionBlackScholes" Some methods for the Black Scholes Options Model, which demonstrates several approaches to the valuation of a European call. // reference: // people.math.sc.edu // people.math.sc.edu asset_path(s0, mu, sigma, t1, n) Simulates the behavior of an asset price over time. Parameters: s0 : float, asset price at...
Library "FunctionMinkowskiDistance" Method for Minkowski Distance, The Minkowski distance or Minkowski metric is a metric in a normed vector space which can be considered as a generalization of both the Euclidean distance and the Manhattan distance. It is named after the German mathematician Hermann Minkowski. reference: en.wikipedia.org double(point_ax,...