RicardoSantos

Function Polynomial Regression

Description:
A function that returns a polynomial regression and deviation information for a data set.

Inputs:
_X: Array containing x data points.
_Y: Array containing y data points.

Outputs:
_predictions: Array with adjusted _Y values.
_max_dev: Max deviation from the mean.
_min_dev: Min deviation from the mean.
_stdev/_sizeX: Average deviation from the mean.

Resources:
https://en.wikipedia.org/wiki/Polynomial...
https://rosettacode.org/wiki/Polynomial_...
릴리즈 노트: optional colors as input
즐겨찾기 스크립트에서 빼기 즐겨찾기 스크립트에 넣기

코멘트

This is a stunningly beautiful masterpiece in Pine, I must admit. That is some elegant array() work there! I do believe this is exemplary for the necessity for even more line.new(). It's definitely a top honors choice, if we had a yearly spotlight of the year's greatest achievements from adept "mathemagicians" via the "Power of Pine".
+15 응답
racer8 midtownsk8rguy
@midtownsk8rguy, I couldn't agree more with you on that note. Great job RicardoSantos! You just made everyone's day. I bet most mathematicians would be proud of this work. This should be implemented into TV's charting tools!!
응답
This publication is now featured in our Editors' Picks. In the name of all TradingView traders, thank you for your valuable contribution to the TradingView community, and congrats!
+12 응답
After testing this out this is 100 times more useful the stock linear regression. Holy this is game changing. Thank you again Ricardo, especially for keeping your scripts free for everyone to use. Truly a good man!
+3 응답
This also triggers me thinking how to apply Polynomial regression for TA. Is that possible to make Polynomial regression "adaptive". I understand markets show volatile nature...
+3 응답
An excellent implementation example of array, thanks. Does array support newly introduced variable length?
+2 응답
Respect
+1 응답
Wow, this script shows how powerful PINE can be with the array function! Before I start the array application, let's learn these excellent cases first. This is what advanced PINE script programming can use: D
+1 응답
Great work ! Can you make it show values and change colors and width of lines, also add more lines, please ?
+1 응답
홈으로 스탁 스크리너 포렉스 스크리너 크립토 스크리너 이코노믹 캘린더 사용안내 차트 특징 프라이싱 프렌드 리퍼하기 하우스룰(내부규정) 헬프 센터 웹사이트 & 브로커 솔루션 위젯 차팅 솔루션 라이트웨이트 차팅 라이브러리 블로그 & 뉴스 트위터
프로화일 프로화일설정 계정 및 빌링 리퍼드 프렌즈 코인 나의 서포트 티켓 헬프 센터 공개아이디어 팔로어 팔로잉 비밀메시지 채팅 로그아웃