OPEN-SOURCE SCRIPT

Exponential Moving Average + ATR MTF [YSFX]

93
Description:
This indicator is a reupload of a previously published EMA + ATR tool, updated and enhanced after a house rule violation to provide additional features and a cleaner, more versatile experience for traders.

It combines trend analysis and volatility measurement into one intuitive tool, allowing traders to visualize market direction, dynamic support and resistance, and adaptive risk levels—all in a clean, minimal interface.

The indicator calculates a customizable moving average (MA) type—EMA, SMA, WMA, HMA, RMA, DEMA, TEMA, VWMA, LSMA, or KAMA—and surrounds it with ATR-based bands that expand and contract with market volatility. This creates a dynamic envelope around price, helping traders identify potential breakouts, pullbacks, or high-probability entry/exit zones.

Advanced Features:

  • Multiple MA types: Supports all major moving averages, including advanced options like KAMA, DEMA, and TEMA.
  • KAMA customization: Adjustable fast and slow lengths for precise tuning.
  • Dual timeframe support: Optionally use separate timeframes for the MA and ATR, or a global timeframe for both.
  • Dynamic ATR bands: Automatically adjust to market volatility, useful for setting adaptive stop-loss levels.
  • Optional fill: Shade the area between upper and lower ATR bands for a clear visual representation of volatility.
  • Flexible for all markets: Works across any timeframe or asset class.


Who It’s For:
This indicator is ideal for trend-following traders, swing traders, and volatility-focused analysts who want to:

  • Confirm trend direction while accounting for volatility
  • Identify high-probability trade entries and exits
  • Implement dynamic, ATR-based stop-loss strategies
  • Keep charts clean and uncluttered while still capturing key market information


This reuploaded version ensures compliance with platform rules while offering enhanced flexibility and clarity for modern trading workflows.

Exención de responsabilidad

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.