jwammo12

Linear Regression Channel [jwammo12]

This is a non-repaint version of the built-in linear regression indicator in pine. It creates moving bands where the current bar matches the built-in Linear Regression indicator exactly (see screenshot). The key to replicating the built-in function is calculating the std deviation across the length of bars away from the current Linear Regression line, as opposed to the linear regression line that would have been calculated at the historic bar.

Release Notes: update to version 3
Remove from Favorite Scripts Add to Favorite Scripts
Software Engineer and FX, Options, Crypto Trader. Previously worked at large options market maker. If you like my scripts and would like to donate:
Bitcoin: 179ETrGo3FCVcnBV8i1uc4J8YHFRknYytz
Eth: 0x73d59A8214FD70053aF37E9700692e25de441245
Thank you for sharing this
+1 Reply
jwammo12 LucemAnb
@LucemAnb, you are welcome!
Reply
HI, could you plz post the code to plot lines exactly the original one?
+1 Reply
Oh my god I have been looking for this for ages, writing in the forum, contacting TV support... all with no luck.
I'm so grateful for you posting it, THANK YOU!
+2 Reply
jwammo12 peterlondon
@peterlondon, you are welcome!
Reply
Very simple and effective, good work my friend
+1 Reply
Home Stock Screener Forex Screener Crypto Screener Economic Calendar How It Works Chart Features Pricing House Rules Moderators Website & Broker Solutions Widgets Charting Solutions Help Center Feature Request Blog & News FAQ Wiki Twitter
Profile Profile Settings Account and Billing TradingView Coins My Support Tickets Help Center Ideas Published Followers Following Private Messages Chat Sign Out