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)
DiegoKatzman
2 years ago
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
2 years ago
src = input (close, title = "Source")

This will fix it. Will give you options
+1 Reply
DiegoKatzman ucsgears
2 years ago
Wow! That was easy!

Thank you!!!! :)
Reply
SwingTradeProfits
7 months ago
Is there a way to put standard deviations onto this indicator so it is a moving linear regression channel?
Reply
ucsgears PRO SwingTradeProfits
7 months ago
Yes, Use the Bollinger Band code and replace the SMA/EMA with the LRC.
Reply
cbezuid ucsgears
4 months ago
Well played
Reply
Ideas Scripts Chart
United States
United Kingdom
India
España
Italia
Brasil
Россия
Türkiye
日本
한국
Home Stock Screener Economic Calendar How It Works Chart Features House Rules Moderators For the WEB Widgets Stock Charting Library Priority Support Feature Request Blog & News FAQ Help & Wiki Twitter
Private Messages Chat Ideas Published Followers Following Priority Support Public Profile Profile Settings Billing Sign Out