Hello, my friends. This is a new version of the trend line regression indicator, which always finds quantitive trend lines with three key points.
(1) Indicator description
This indicator finds a trend line with three key points on the historical K-line
Solving the problem of calculation timeout based on a faster trend line regression algorithm
Supports filtering unwanted trend lines by setting a trendline strength threshold
It's suitable for most markets and timeframes
(2) Key parameters - Pivot High/Low Settings
Pivot Lookback Left: Number of K-lines to look back left from the pivot top/bottom
Pivot Lookback Right: Number of K-lines to look back right from the pivot top/bottom
- Trend Line Regression
Max of Lookback Forward: The maximum number of historical K-lines
Min Regression Strength: The minimum strength threshold for trend line regression
Multiply Regression Std: The width of the trend line to display on the chart
(3) Script description
Due to some circumstances that I don't want to see, subsequent scripts will not be open source, but you can still use the script for free. Thanks for your understanding and support!
If you have any suggestions or comments about the script, please feel free to leave your comments!
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.