UCSgears_Linear Regression Curve

The Linear Regression Slope is based on the Curve.

List of All my Indicators - https://www.tradingview.com/p/stocks/?sort=recent&time=day&by=ucsgears
Remove from Favorite Scripts Add to Favorite Scripts
// Created by UCSgears -- Version 1 
study(title="UCSGEARS - Linear Regression Curve", shorttitle="UCS-LRC", overlay=true)
src = close
len = input(defval=25, minval=1, title="Linear Regression Length")
lrc = linreg(src, len, 0)
plot(lrc, color = red, title = "Linear Regression Curve", style = line, linewidth = 2)
Is there a way to put standard deviations onto this indicator so it is a moving linear regression channel?
ucsgears PRO SwingTradeProfits
Yes, Use the Bollinger Band code and replace the SMA/EMA with the LRC.
cbezuid ucsgears
Well played
Thanks for a great work as usual, USC!

I would like to ask you for a small improvement to this one: the ability to apply the price calculations of the slope to High-Low-Open-Close prices.

I also need the ability to do the same in a DEMA (Double Exp MA) if you can help me :)

Thanks in advance!!!
ucsgears PRO DiegoKatzman
src = input (close, title = "Source")

This will fix it. Will give you options
+1 Reply
Wow! That was easy!

Thank you!!!! :)
EN English
EN English (UK)
EN English (IN)
DE Deutsch
FR Français
ES Español
IT Italiano
PL Polski
TR Türkçe
RU Русский
PT Português
ID Bahasa Indonesia
MS Bahasa Melayu
TH ภาษาไทย
VI Tiếng Việt
JA 日本語
KO 한국어
ZH 简体中文
ZH 繁體中文
Home Stock Screener Forex Signal Finder Cryptocurrency Signal Finder Economic Calendar How It Works Chart Features House Rules Moderators Website & Broker Solutions Widgets Stock Charting Library Feature Request Blog & News FAQ Help & Wiki Twitter
Profile Profile Settings Account and Billing My Support Tickets Contact Support Ideas Published Followers Following Private Messages Chat Sign Out