This script generates pseudo-random asset data . Due to the nature of the random generator, it is impossible to use this indicator as input for other indicators because the instance of the script that the indicator is applied to will automatically be different from the instance that is plotted on the chart. Therefore, the idea is to use this script in other...
Add MTF capabilities to "seconds" timeframes!! This script is not intended to be used as an indicator but gives you a workaround to solve the missing seconds MTF capabilities. The "resolution" function in Pinescript doesn't allow for seconds values to be put in MTF So I wrote a little helper code with arrays to get MTF on seconds timeframes. If you want...
Introducing the Moving Regression Prediction Bands indicator. Here I aimed to combine the principles of traditional band indicators (such as Bollinger Bands), regression channel and outlier detection methods. Its upper and lower bands define an interval in which the current price was expected to fall with a prescribed probability, as predicted by the...
FINALLY! As everyone who tried to create, understand, or even find the Buff Pelz Dormeier Anti-volume stop-loss indicator knows that - it's not easy. Personally, I have partially, or perhaps completely figured out, the tips Buff had given in Investing with Volume Analysis book. AVSL now is ready. Please do some test and give me a feedback how it works in your...
Volume swings are defined as increasing volume and higher highs/lower lows over a minimum of three bars. This script tracks volume swings over an intraday chart and stores the final lowest low swing / highest high swing over the course of the day. The final high swing and low swing are then plotted over the following day as possible retracement / support &...
Maximum Drawdown and Maximum Relative Drawdown% calculating functions. I needed a way to calculate the maxDD% of a serie of datas from an array (the different values of my balance account). I didn't find any builtin pinescript way to do it, so here it is. There are 2 algorithms to calculate maxDD and relative maxDD%, one non optimized needs n*(n - 1)/2...
Delta-RSI Oscillator Strategy: This strategy illustrates the use of the recently published Delta-RSI Oscillator as a stand-alone indicator. Delta-RSI represents a smoothed time derivative of the RSI, plotted as a histogram and serving as a momentum indicator. There are three optional conditions to generate trading signals (set separately for Buy, Sell and Exit...
The indicator calculates Triangularity over Stoch RSI Overbought and Oversold Conditions So Ever wondered how a overbought and oversold condition looks if the values are triangualrised The indicator plots auto band levels on top of price Enjoy!
You don't need loops to get the rolling correlation between an input series and a linear sequence of values, this can be obtained from the normalized difference between a WMA and an SMA of the input series. The closed-form solutions for the moving average and standard deviation of a linear sequence can be easily calculated, while the same rolling statistics for...
█ OVERVIEW This script presents a new function to help coders use security() in both repainting and non-repainting modes. We revisit this often misunderstood and misused function, and explain its behavior in different contexts, in the hope of dispelling some of the coder lure surrounding it. The function is incredibly powerful, yet misused, it can become a...
This indicator was invented in 2001 by Konstantin Kopyrkin. The name "Nick Rypock" is derived from his surname reading in the opposite direction: Kopyrkin -> Kopyr Kin -> Kin Kopyr -> Nik Rypok The idea of the indicator is similar to the Chandelier Exit, but doesn't involve ATR component and uses a percentage instead. A dynamic price channel is used to...
Multi-timeframe Strategy based on Logistic Regression algorithm Description: This strategy uses a classic machine learning algorithm that came from statistics - Logistic Regression (LR). The first and most important thing about logistic regression is that it is not a 'Regression' but a 'Classification' algorithm. The name itself is somewhat misleading....
Dear all, I wish a Happy New Year! The last time I tried to developing a Volume Heatmap, that the Marketorders made. With the currently version I achieve my skills for that and I present it for everyone - some bugs I cannot solve today. It also possible to see the POC - also the dynamic of volume developing: The background for that is to find the...
█ OVERVIEW This indicator calculates relative volume, which is the ratio of present volume over an average of past volume. It offers two calculation modes, both using a time reference as an anchor. █ CONCEPTS Calculation modes The simplest way to calculate relative volume is by using the ratio of a bar's volume...
█ OVERALL Plot waindrops (custom volume profiles) on user defined periods, for each period you get high and low, it slices each period in half to get independent vwap, volume profile and the volume traded per price at each half. It works on intraday charts only, up to 720m (12H). It can plot balanced or unbalanced waindrops, and volume profiles up to 24H...
Moving Regression is a generalization of moving average and polynomial regression. The procedure approximates a specified number of prior data points with a polynomial function of a user-defined degree. Then, polynomial interpolation of the last data point is used to construct a Moving Regression time series. Application: Moving Regression allows one to smooth...
Hello Traders, There are several nice Linear Regression Channel scripts in the Public Library. and I tried to make one with some extra features too. This one can check if the Price breaks the channel and it shows where is was broken. Also it checks the momentum of the channel and shows it's increasing/decreasing/equal in a label, shape of the label also...
Greetings Traders! I have decided to release a few scripts as open-source as I'm sure others can benefit from them and perhaps make them better.(Be sure to check my Profile for the other scripts as well: www.tradingview.com). This one is called Projection. Projection is based off the same Principle as some of my other scripts, such as Trade Manager() and Price...