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精神中,這個腳本的作者以開源的方式發佈,這樣交易員可以理解和驗證它。請向作者致敬!您可以免費使用它,但在出版物中再次使用這段程式碼將受到網站規則的約束。 您可以收藏它以在圖表上使用。

想在圖表上使用此腳本?

免責聲明