PROTECTED SOURCE SCRIPT
已更新

MTF Step EMA With Color

26
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!
發行說明
With Alert

免責聲明

這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。