OPEN-SOURCE SCRIPT

Price strength around MA

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

Skript med en öppen källkod

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. Du kan ange den som favorit för att använda den i ett diagram.

Vill du använda det här skriptet i ett diagram?

Frånsägelse av ansvar