LonesomeTheBlue

Volume-Supported Linear Regression Trend

LonesomeTheBlue Wizard 已更新   
Hello Traders,


Linear Regression gives us some abilities to calculate the trend and if we combine it with volume then we may get very good results. Because if there is no volume support at up/downtrends then the trend may have a reversal soon. we also need to check the trend in different periods. With all this info, I developed Volume-Supported Linear Regression Trend script. The script checks linear regression of price and volume and then calculates trend direction and strength.


You have option to set Source, Short-Term Period and Long-Term Period. you can set them as you wish.

By default:
Close is used as "Source"
Short-Term Period is 20
Long-Term Period is 50


in following screenshot I tried to explain short term trend (for uptrend). Volume supports the trend? any volume pressure on trend? possible reversal? same idea while there is downtrend.

in following screenshot I tried to explain long term trend:

You can also check Positive/Negative Divergences to figure out possible reversals (to automate it, you can use Divergence for Many Indicators v4, it has ability to check divergences on external indicators)


Enjoy!



版本注释:
_rate function fixed. (Thanks to @Earthless85)
版本注释:
Added explanation
unnecessary commands removed
版本注释:
options added for the lines and columns

开源脚本

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

免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。

想在图表上使用此脚本?