OPEN-SOURCE SCRIPT

Exponential MA

112
This script is a Pine Script indicator that plots multiple exponential moving averages (EMAs) or simple moving averages (SMAs) on a TradingView chart. It provides a visual representation of market trends and momentum by calculating moving averages for different periods.

The script allows users to toggle between EMAs and SMAs using a boolean flag (exponential). Each moving average is assigned a color based on its trend direction and relationship to a reference moving average (MMA100). The primary moving average (MMA05) is highlighted with dynamic color changes, while the others follow a similar trend-based color scheme.

By displaying multiple moving averages, this indicator helps traders identify trend strength, potential reversals, and overall market direction.

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.