ucsgears

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?
Reply
ucsgears PRO SwingTradeProfits
Yes, Use the Bollinger Band code and replace the SMA/EMA with the LRC.
Reply
cbezuid ucsgears
Well played
Reply
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!!!
Reply
ucsgears PRO DiegoKatzman
src = input (close, title = "Source")

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

Thank you!!!! :)
Reply
United States
United Kingdom
India
Deutschland
France
España
Italia
Polska
Türkiye
Россия
Brasil
Indonesia
Malaysia
Việt Nam
日本
한국
简体
繁體
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 Priority Support Contact Support Ideas Published Followers Following Private Messages Chat Sign Out