OPEN-SOURCE SCRIPT

EMA Gradient

A method of visualising whether an EMA is moving at a faster rate than in previous bars. It uses a linear regression analysis to plot a line of best fit to an exponential moving average of the price (the purple dashed line on the chart).

The gradient of this line of best fit is then compared to the gradient of the line of best fit over a range of previous candles. If the absolute value of the EMA gradient is greater than 75% (configurable) of the set of previous gradients then the line is coloured green for positive gradients and red for negative gradients. A yellow line indicates that the gradient is lower than the threshold.
Exponential Moving Average (EMA)Linear Regression

开源脚本

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

想在图表上使用此脚本?

免责声明