OPEN-SOURCE SCRIPT

Price strength around MA

Por ludi_zhang1101
This indicatorit takes the HMA and calculates the difference between close and HMA. Within a lookback period it adds all values together where price is above/below the HMA. However, it squares the values before adding them together, so that larger differences have a bigger impact (this is to detect breakouts). After that it subtracts all the negative values from the positive ones so that in the end we have one single number that represents price behavior in the lookback period. This number is then added to the difference between an EMA and a SMA to produce the final signal of this indicator.
Moving Averages

Script de código aberto

No verdadeiro espírito do TradingView, o autor desse script o publicou como código aberto, para que os traders possam compreendê-lo e analisá-lo. Parabéns ao autor! Você pode usá-lo gratuitamente, mas a reutilização desse código em publicações é regida pelas Regras da Casa. Você pode favoritá-lo para usá-lo em um gráfico.

Quer usar esse script no gráfico?

Aviso legal