ImmortalFreedom

Enhanced Linear Regression Trend Channel

This is my PSv4.0 enhanced version of "Linear Regression Channel", as it is more commonly known. I entitled it Enhanced Linear Regression Trend Channel, simply because it seems more accurate as a proper description. However, this is actually a dual linear regression channel all-in-one Swiss army knife, nicely packaged within 104 lines of code. The primary one tracks in real-time, while the secondary, with an enabled "time warp" setting, is displayed monitoring the linear regression channel in the past for comparison, providing fully adjustable tandem tracking capabilities. It seemed like a superb novel idea to me to add this capability for super analytical approaches. The Pearson correlation displays in the rear middle of the primary linear regression trend channel. I did this because during a steep uptrend zoomed in, it often moves off the chart being placed on the bottom and is no longer visible for a while. Additionally, for the second time, I am releasing my "Neon Source" plot feature in a bright stunning yellow corona. Charts these days have so many plots on them, so I devised a unique way to resolve any confusion by emulating neon light. You may still easily use candles with this neon line too, or just simply disable it if you wish.

Features List Includes:
Enable/disable dark background for enhanced visibility
Dual "Source" selections
Dual "Period" adjustments
Dual "Deviation(s)" adjustments
Dual "Time Warp" adjustments
Dual selectable line extension method
"Pearson Correlation" color change selection for enhancing visual acuity amongst other indicators
Secondary "Linear Regression Trend Channel" time warped with enable/disable capability
"Neon Source" has a brightness control with an enable/disable capability

This is not a freely available indicator, FYI. To witness my Pine poetry in action, properly negotiated requests for unlimited access, per indicator, may ONLY be obtained by direct contact with me using TV's "Private Chats" or by "Message" hidden in my member name above. The comments section below is solely just for commenting and other remarks, ideas, compliments, etc... regarding only this indicator, not others. If you do have any questions or comments regarding this indicator, I will consider your inquiries, thoughts, and ideas presented below in the comments section, when time provides it. When my indicators achieve more prevalent use by TV members, I will implement more ideas when they present themselves as worthy additions. As always, "Like" it if you simply just like it, and also return to my scripts list occasionally for additional postings. Have a profitable future everyone!
Release Notes:
I added two more inner companion lines of regression to the primary linear regression channel, but these are a bit more dynamic. I don't know what to call them exactly, but "dyno-ranging regressive levels" is an attempt to put the new feature into words. I wasn't too thrilled with the ordinary deviation of the upper and lower channels as they commonly exist, so I mentally experimented with some ideas arriving at a unique result that seems analytically favorable with it's characteristics. With the primary linear regression channel only, I included an option so that you may show both sets simultaneously OR just the inner dyno-ranging lines alone OR just the standard levels by themselves. Other changes are primarily significant variable renaming with the new code so I can understand it better with the additions.
Invite-only script

Access to this script is restricted to users authorized by the author and usually requires payment. You can add it to your favorites, but you will only be able to use it after requesting permission and obtaining it from its author. Contact ImmortalFreedom for more information, or follow the author's instructions below.

TradingView does not suggest paying for a script and using it unless you 100% trust its author and understand how the script works. In many cases you can find a good open-source alternative for free in our Community Scripts.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?

Warning: please read before requesting access.