Example function of a markov chain monte carlo simulation.
EXPERIMENTAL: the logistic equation and the market.. :)..
function to get sorted indices from a array using bubble sort.
Early/Delayed Signal Function (before the bar close or after) Usually, signals are considered to be valid at the bar close . Some traders may prefer to have a chance to enter earlier . It is of great risk , and the Strategy Tester is unable to provide consistent backtest data with regards to this. But for those who want to integrate such a choice in...
Nth-Occurrence Custom barssince() Function by Cryptorhythms Description The vanilla barssince() function in pine only finds the number of bars since the most recent occurrence of the condition. This version allows you to specify an Nth occurrence back to check the bars since! Its also a nice little one liner. I really hope you enjoy it and if you're...
Common String Functions Library by RagingRocketBull 2021 Version 1.0 Pinescript now has strong support for arrays with many powerful functions, but still lacks built-in string functions. Luckily you can easily process and manipulate strings using arrays. This script provides a library of common string functions for everyday use, such as: indexOf, substr, replace,...
This script plots both real and HA candles regardless or which are used on the chart in TV settings. (and has the functions for you to use.) Lots of people seem to misunderstand backtesting (or scam people) based on HA candles. Backtesting with HA candles leads to impossible trades. ALWAYS backtest with real candles. That doesn't mean you might not want to look...
Some functions to handle Arithmetic Geometric Mean.
Hi BIG PLAYERS Each of us makes mistakes and exceptions confirm the rule. However, if you disregard the rules of trading, you lose your money - without any ifs and buts! I have therefore created a reminder label for myself, which trading approaches I always want to stick to. These rules serve me as a guideline when I should trade. Through the permanent...
"In statistics, kernel density estimation (KDE) is a non-parametric way to estimate the probability density function of a random variable." from wikipedia.com KDE function with optional kernel: Uniform Triangle Epanechnikov Quartic Triweight Gaussian Cosinus Republishing due to change of function. deprecated script:
This script is for a triple moving average indicator where the user can select from different types of moving averages, price sources, lookback periods and resolutions. Features: - 3 Moving Averages with variable MA types, periods, price sources, resolutions and the ability to disable each individually - Crossovers are plotted on the chart with detailed...
Oftentimes a single look at the candlestick configuration happens to be enough to understand what is going on. The chandlestick function is an experiment in smart labelling that produces candles for various time frames, not only for the fixed 1m, 3m , 5m, 15m, etc. ones, and helps in decision-making when eye-balling the chart. This function generates up to 12 last...
Function - Number of digits before and after the decimal point Detect the number of digits in integers and floats, before the decimal and after it. It also works for negative numbers. There are some rounding issues, but the currently maximum supported number can have safely up to 3 digits after the decimal point.
This script is a continuation from Duyck's Unicode font function A different approach made on this function to able change font type on a single string Now you can call it as a function to change the font type on every string that you need, either it is for a Label or regular Text Shoutout to @Duyck for his amazing works on this function. Thank you to PineScript...
EXPERIMENTAL: WARNING: Martingale is subject to HUGE drawdown spikes, use at your own risk! updated function to also double(aply multiplier) on even trades, example with a MA's crossover.
First off, a huge thank you to the following people: LEGION: LazyBear: www.tradingview.com xSilas: www.tradingview.com Ni6HTH4awK: www.tradingview.com sco77m4r7and: SNOW_CITY: www.tradingview.com oh92: www.tradingview.com alexgrover: www.tradingview.com cI8DH: www.tradingview.com DonovanWall: www.tradingview.com Since I've been on TradingView I've become...
displays the distribution of the outcome of a event over the last event. similar to this script: