An experiment using Pinescript's candle plotting feature. This indicator performs a linear regression on the lows, highs, and moving average, and plots them all in the form of a candlestick. If the close is below the prediction, the candlestick is red, if the close is above the regression, the candlestick is green. Effective and aesthetic way to analyze trends.

47

Relative slope metric Description: I was in need to create a simple, naive and elegant metric that was able to tell how strong is the trend in a given rolling window. While abstaining from using more complicated and arguably more precise approaches, I’ve decided to use Linearly Weighted Linear Regression slope for this goal. Outright values are useful, but the...

37

Library "FunctionPolynomialFit" Performs Polynomial Regression fit to data. In statistics, polynomial regression is a form of regression analysis in which the relationship between the independent variable x and the dependent variable y is modelled as an nth degree polynomial in x. reference: en.wikipedia.org www.bragitoff.com gauss_elimination(A, m, n) ...

86

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...

8606

This indicator builds upon the previously posted Nadaraya-Watson Estimator. Here we have created an envelope indicator based on kernel smoothing with integrated alerts from crosses between the price and envelope extremities. Unlike the Nadaraya-Watson Estimator, this indicator follows a contrarian methodology. For more information on the Nadaraya-Watson Estimator...

4131

Due to public demand Linear Regression Formula Scraped Calculation With Alerts Here is the Linear Regression Script For traders Who love rich features Features ++ Multi time frame -> Source Regression from a different Chart ++ Customized Colors -> This includes the pine lines ++ Smoothing -> Allow Filtered Regression; Note: Using 1 Defaults to the original...

4635

Fit a quadratic polynomial (parabola) to the last length data points by minimizing the sum of squares between the data and the fitted results. The script can extrapolate the results in the future and can also display the R-squared of the model. Note that this script is subject to some limitations (more in the "Notes" section). Settings Length : Number of...

1957

The following tool smooths the price data using the Nadaraya-Watson estimator, a simple Kernel regression method. We make use of the Gaussian kernel as a weighting function. Kernel smoothing allows the estimating of underlying trends in the price and has found certain applications in stock prices pattern detection. Note that results are subject to repainting,...

3467

This is my first public release of indicator code and my PSv4.0 version of "Linear Regression Channel", as it is more commonly known. It replicates TV's built-in "Linear Regression" without the distraction of heavy red/blue fill bleeding into other indicators. We can't fill() line.new() at this time in Pine Script anyways. I entitled it Linear Regression Trend...

977

This script is a combination of different logarithmic regression fits on weekly BTC data. It is meant to be used only on the weekly timeframe and on the BLX chart for bitcoin. The "fair value" line is still subjective, as it is only a regression and does not take into account other metrics.

1254

There are many linear regression indicators out there, most of them draw lines or channels, but this one actually draws a chart.

473

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...

2892

This is an experimental study which calculates a linear regression channel over a specified period or interval using custom moving average types for its calculations. Linear regression is a linear approach to modeling the relationship between a dependent variable and one or more independent variables. In linear regression, the relationships are modeled using...

2439

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....

3116

Version 2 - Linear Regression Slope. This version will have more freedom on picking your own length for all the Inputs. One of the main reason I changed it is because, Slope calculation on transition period was not being computed properly. Because the Version 1, looks back the length assigned, and compute the slope based on two candle readings, could be 10 days...

2247

Introduction Back when i started using pine i made a script called periodic channel who aimed to rescale an average correlated sine wave to the price...don't worked very well. So i tried to fix problems induced by the indicator without much success, i had to redo it from scratch while abandoning the idea of rescaling correlated smooth functions to the price, at...

269

This is an experimental study designed to calculate polynomial regression for any order polynomial that TV is able to support. This study aims to educate users on polynomial curve fitting, and the derivation process of Least Squares Moving Averages (LSMAs). I also designed this study with the intent of showcasing some of the capabilities and potential applications...

1354

Hi fellow traders.. Happy to share a Linear Regression & RSI Multi-Function Custom Screener with Table-Labels... The Screener scans for Linear Regression 2-SD Breakouts and RSI OB/OS levels for the coded tickers and gives Summary alerts Uses Tables (dynamica resizing) for the scanner output instead of standard labels! This Screener cum indicator collection has...

323