OPEN-SOURCE SCRIPT

Premium Linear Regression - The Quant Science

已更新
This script calculates the average deviation of the source data from the linear regression. When used with the indicator, it can plot the data line and display various pieces of information, including the maximum average dispersion around the linear regression.

The code includes various user configurations, allowing for the specification of the start and end dates of the period for which to calculate linear regression, the length of the period to use for the calculation, and the data source to use.

The indicator is designed for multi-timeframe use and to facilitate analysis for traders who use regression models in their analysis. It displays a green linear regression line when the price is above the line and a red line when the price is below. The indicator also highlights areas of dispersion around the regression using circles, with bullish areas shown in green and bearish areas shown in red.
版本注释
Added a function to adjust the linear regression deviation. The indicator adjusts the deviation data calculating only the time period selected by the user interface.
averageindicator-freelinear-regressionmathematicsquantitativeregressionsstatisticstatisticstooltoolsoftitansTrend Analysisvisualindicator

开源脚本

本着真正的TradingView精神,此脚本的作者已将其开源,以便交易者可以理解和验证它。向作者致敬!您可以免费使用它,但在出版物中重复使用此代码受网站规则约束。 您可以收藏它以在图表上使用。

想在图表上使用此脚本?


Develop your Pine code NOW:
thequantscience.com
更多:

免责声明