PROTECTED SOURCE SCRIPT
Diupdate

MTF Step EMA With Color

25
MTF Stepped EMA – Dynamic & Color-Coded (Green / Red / Yellow)

This indicator plots a higher-timeframe EMA as a stepped line (staircase style) directly on your current chart, with smart dynamic coloring:

- Green → The stepped EMA is actively rising (higher highs in the staircase) → bullish higher-timeframe momentum
- Red → The stepped EMA is actively falling (lower lows in the staircase) → bearish higher-timeframe momentum
- Yellow → The EMA has been flat (no new step) for a user-defined number of bars → consolidation / range phase

Features
• Fully dynamic – updates instantly when the higher-timeframe EMA changes
• Clean step-line style (plot.style_stepline) – no diagonal lines, pure staircase
• Automatic color switching based on the actual direction of the last step
• Yellow "flat" detection after X bars without movement (customizable)
• Thin reference line of the original smooth higher-timeframe EMA (optional)
• Very lightweight and repaints-free (uses proper request.security)

How to use
• Classic setup: Daily or Weekly EMA 50/200 on 1H or 4H charts
• Green steps → look for longs in lower timeframes
• Red steps → look for shorts
• Yellow → caution or stay out – higher timeframe is ranging

Perfect for multi-timeframe trend confirmation, pullback trading, and avoiding choppy markets.

Enjoy & trade safe!
Catatan Rilis
With Alert

Pernyataan Penyangkalan

Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.