TradingView
m_b_round
26 Th10 2022 21:55

EMA Gradient 

BTCUSDT Perpetual ContractBybit

Mô tả

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.
Bình luận
alf0282
Many thanks, works great, I especially like the gradient function!
donjazon
Thanks for sharing!
Thêm nữa