PROTECTED SOURCE SCRIPT

Scaled Exponential Moving Average width

957
What
The script calculates a normalized view of the width of multiple exponential moving averages.

How
  • Find the maximum difference between any two exponential moving averages (from 10, 20, 50, 100, 150, 200)
  • Divide that difference by the bar's closing price
  • Multiply the result by a user-configurable scale

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.