ImmortalFreedom

Quadratic Regression Trend Channel

ImmortalFreedom Wizard Zaktualizowano   
It's been a while since I have published anything meaningful for all members, but here is my next step in evolution of trend channel technology, my attempt at "Quadratic Regression Trend Channel" custom tailored for regression enthusiasts. I'm actually doing a lot more than my profile shall ever reveal. Many members may have heard of "polynomial regression channel"(PRC), but I wouldn't accurately label this as having the "poly-" capability in it with differing amounts of nth degrees/orders.

This indicator is derived from my "HLC Banded Quadratic Regression" indicator, the 3rd indicator I had ever published in my earliest days of tinkering around with Pine Script. It always had a destiny, and TV has graciously delivered on upgrading Pine with many new capabilities to run this algorithm with ease and in the manner that I wished to write it. Any subscribing TradingViewer has the freedom to use this indicator and as many as they shall desire.

Blessed is the "Immense Power of Pine" in 2021, as I utilized a multitude of new Pine features including extensive use of arrays for the quadratic regression formula, arrays of line.new(), input(group=), and input(inline=). I spent an incredible amount of time creating this, and it was no easy task to condense this amount of sophistication within less than 150 lines of code at the time of this original debut release. I have striven to achieve the indicator's computational efficiency potential to be as fast as possible with highly optimized code to handle the large amount of sampling it utilizes and is capable of. I hope you find it analytically favorable and beyond your expectations.

First of all, it has different sampling methods I haven't seen in any other PRC available, providing tightly snug and fit curvatures dependent on my optional choices not found in comparable indicators. This yields the best quality of fit I can provide by employing quadratic regression in order to provide a superb "visual analysis" of your price action in high noise environments. I also included my novel time warp feature to rewind the indicator regression into a previous state of time. If you're trading on really fast timeframes, I included an option to only calculate once per bar at it's closure. This will aid with computational efficiency of the TV servers, and it's intended to not to slow down your charting experience amongst a wide assortment of other indicators in your overlay chart.

I allowed a couple of variability methods for the confidence bands. A variety of coloring options, line thickness, and other perks are there to accommodate your distinct visual acuity. There is also a nifty option to color the regression by the slope of the curvatures. This is enabled by default, and I anticipate that you may find that color option uniquely useful. The amount of chords in the curvature are automatically calculated depending on the regression period selected to achieve a nice fluid arch for any setting.

Anyhow, I believe that sums up most of it's important characteristics in a brief explanation. It's potential is best personally discovered by simply using it with the myriad of control settings available. I published it with protected code, because I simply wanted to confine this monstrosity to my TradingView laboratory. I would rather not have this thing uncaged, rabidly running around the planet frothing out of the mouth on a Frankenstein AI later, unless it's mine on a short leash. Besides, I'm still trying to figure out the math behind "cubic regression". :)

Sorry in advance about not providing the source code, I hope you'll understand... We ALL know what devastation happens when things are "unleashed" from a BSL-4 lab to run amok. Countless billions have yet to learn a horrific lesson about the mania of evil at a future Geneva convention. If you don't know the mythical story about Pandora's box(a jar actually), look it up!

Features List Includes:
Calculation Throttling
Regression Period
Time Warp
Multiple Sampling Methods
Confidence Bands Variability Controls
Indicator Customization Options

When available time provides itself, I will consider your inquiries, thoughts, and concepts presented below in the comments section, should you have any questions or comments regarding this indicator. When my indicators achieve more prevalent use by TV members , I may implement more ideas when they present themselves as worthy additions. Have a profitable future everyone!
Informacje o Wersji:
I am pleased to report that QRTC has undergone dramatic enhancements. I would now consider this to be another one of my finest indicators. Don't worry, this isn't the end of the internet for a regression trend channel (RTC). I have another RTC version in the works that makes this look like a simpler toy, but that's far beyond "quadratic". Anyways here's a short list of significant improvements to QRTC:

#1 - This has been completely rewritten in PSv5, overcoming all prior limitations encountered. It's not just a simple translation from PSv4 to PSv5 that I performed.
#2 - With the aid of an "artificially intuitive" program from E.M., the formula has been extremely optimized to provide warp speed calculations. Basically, the load time and calc time are lightning-fast now. Experienced QRTC users will undoubtedly recognize the difference.
#3 - Another upgrade to QRTC is the utilization of linefill.new(), which provides two background fill colors for the trend channel. Colors can be changed to any shade or transparency you wish in Settings. I'm sure regression enthusiasts will appreciate this.
#4 - The "Regression Period" in Settings now has a maximum limit of 3000, far surpassing its former ability. Even when achieving a cranked-up setting of ~3000, the calculations are still performing at lightning speed. Keep in mind that using a period of 3000 is most often impractical, but at least now it's possible for those rare scenarios where it may have utility for you. This is a component that's 100% necessary to accomplish my next FrankenRTC...
Skrypt chroniony
Ten skrypt został opublikowany z zamkniętym kodem źródłowym i możesz z niego dowolnie korzystać. Możesz go dodać do ulubionych, żeby używać go na wykresie. Nie możesz przeglądać ani modyfikować jego kodu źródłowego.
Wyłączenie odpowiedzialności

Informacje i publikacje przygotowane przez TradingView lub jego użytkowników, prezentowane na tej stronie, nie stanowią rekomendacji ani porad handlowych, inwestycyjnych i finansowych i nie powinny być w ten sposób traktowane ani wykorzystywane. Więcej informacji na ten temat znajdziesz w naszym Regulaminie.

Chcesz użyć tego skryptu na wykresie?