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)
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
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
United States
United Kingdom
India
España
France
Italia
Polska
Brasil
Россия
Türkiye
Indonesia
日本
한국
Home Stock Screener Forex Signal Finder 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 Account and Billing Sign Out