this script is based on "Optimized Linear Regression Channel" by alexgrover, whose page I recommend you to visit, to read the extensive description he provides
the main difference with the original version is the fact that the start point of the channel (left point) is fixed by setting the time (Begin time input). This way, the channel size is automatically set, meaning that the channel grows larger as new data comes in, while the starting point remains at the same spot
this can be useful to track a new trend that may be forming from an inflection point or pivot, by selecting begin time as the time of the inflection
also, an end date input is provided to limit the size of the channel.
The script provides two channels:
the main channel that contain all data from begin to end time
the best fit channel that finds the best linear fit inside data from begin to end time
one issue that the script has is the limit in the number of points of size of the channel, that if too large then make the channel disappear (sigh)
릴리즈 노트
Added the possibility to choose which channel to show (or both)
Added the possibility to choose color and style for lines of the channels
릴리즈 노트
Converted to pinescript v5 ...
릴리즈 노트
solved the issue of the limit in bars back
now by default the beginning of the channel is set to today's first bar, see the new input tick
오픈 소스 스크립트
진정한 트레이딩뷰 정신에 따라 이 스크립트 작성자는 트레이더가 기능을 검토하고 검증할 수 있도록 오픈소스로 공개했습니다. 작성자에게 찬사를 보냅니다! 무료로 사용할 수 있지만 코드를 다시 게시할 경우 하우스 룰이 적용된다는 점을 기억하세요.
차트에서 빠르게 액세스하려면 이 스크립트를 즐겨찾기에 추가하세요 — 여기에서 자세히 알아보기.