OPEN-SOURCE SCRIPT
Clean EMA Pullback Indicator v6

The Clean EMA Pullback Indicator v6 is a trend-following and pullback confirmation indicator designed for traders who want a simple, objective way to identify high-probability continuation trades. It combines moving average trend analysis, market structure, multi-timeframe confirmation, and price action into a single, easy-to-read indicator.
Unlike indicators that generate frequent signals, this script is designed to filter out lower-quality setups and only alert when multiple conditions align.
Features
📈 Trend Identification
Dynamic 200 EMA that changes color:
🟢 Green = Bullish trend
🔴 Red = Bearish trend
20 EMA Pullback Channel to identify retracement zones.
50 EMA for additional trend alignment and confirmation.
📊 Market Structure
Automatically identifies key swing structure:
Higher High (HH)
Higher Low (HL)
Lower High (LH)
Lower Low (LL)
This helps traders visually confirm whether the market is making bullish or bearish price structures.
🎯 Entry Signals
The indicator generates:
BUY signals after a confirmed bullish pullback and breakout.
SELL signals after a confirmed bearish pullback and breakdown.
Signals are based on trend direction, EMA alignment, pullback confirmation, and market structure—not simply moving average crossovers.
🔄 Optional Re-Entry Signals
Optional re-entry triangles identify opportunities to rejoin an existing trend after a healthy pullback, allowing traders to participate in continuation moves without chasing price.
🕯 Trend Candle Coloring
Candles are color-coded to quickly show whether momentum favors buyers or sellers, making trend recognition easier at a glance.
📋 Multi-Timeframe Dashboard
Displays trend direction for:
15 Minute
30 Minute
4 Hour
The dashboard also provides an overall alignment status:
✅ Strong Buy
✅ Strong Sell
⚠ Mixed
This helps traders avoid trading against higher-timeframe momentum.
📅 Previous Day Range
Plots:
Previous Day High
Previous Day Low
These levels often act as key support, resistance, breakout, or reversal areas.
📦 Trend-Filtered Fair Value Gaps (FVG)
Automatically highlights Fair Value Gaps that align with the current 200 EMA trend, helping traders focus on higher-probability imbalance zones while filtering out counter-trend gaps.
📏 ATR Trade Management
Built-in ATR-based trade management automatically plots:
Entry level
Stop Loss
Take Profit 1
Take Profit 2
This provides a consistent, rules-based framework for managing risk and reward.
Best Used For
Futures (MNQ, NQ, RTY, M2K, ES, MES, GC, MGC)
Forex
Stocks
ETFs
Cryptocurrency
Recommended for intraday trading on 1-minute, 3-minute, 5-minute, and 15-minute charts while using higher timeframes for trend confirmation.
Trading Philosophy
This indicator is built around a simple principle:
Trade with the trend, wait for the pullback, and enter only after the market confirms continuation.
Rather than predicting market direction, the script is designed to help traders remain patient, reduce emotional decision-making, and focus on disciplined, high-quality setups.
Disclaimer: This indicator is intended as a decision-support tool and should not be considered financial advice. Always practice sound risk management and test any strategy thoroughly before using it in a live trading environment.
Unlike indicators that generate frequent signals, this script is designed to filter out lower-quality setups and only alert when multiple conditions align.
Features
📈 Trend Identification
Dynamic 200 EMA that changes color:
🟢 Green = Bullish trend
🔴 Red = Bearish trend
20 EMA Pullback Channel to identify retracement zones.
50 EMA for additional trend alignment and confirmation.
📊 Market Structure
Automatically identifies key swing structure:
Higher High (HH)
Higher Low (HL)
Lower High (LH)
Lower Low (LL)
This helps traders visually confirm whether the market is making bullish or bearish price structures.
🎯 Entry Signals
The indicator generates:
BUY signals after a confirmed bullish pullback and breakout.
SELL signals after a confirmed bearish pullback and breakdown.
Signals are based on trend direction, EMA alignment, pullback confirmation, and market structure—not simply moving average crossovers.
🔄 Optional Re-Entry Signals
Optional re-entry triangles identify opportunities to rejoin an existing trend after a healthy pullback, allowing traders to participate in continuation moves without chasing price.
🕯 Trend Candle Coloring
Candles are color-coded to quickly show whether momentum favors buyers or sellers, making trend recognition easier at a glance.
📋 Multi-Timeframe Dashboard
Displays trend direction for:
15 Minute
30 Minute
4 Hour
The dashboard also provides an overall alignment status:
✅ Strong Buy
✅ Strong Sell
⚠ Mixed
This helps traders avoid trading against higher-timeframe momentum.
📅 Previous Day Range
Plots:
Previous Day High
Previous Day Low
These levels often act as key support, resistance, breakout, or reversal areas.
📦 Trend-Filtered Fair Value Gaps (FVG)
Automatically highlights Fair Value Gaps that align with the current 200 EMA trend, helping traders focus on higher-probability imbalance zones while filtering out counter-trend gaps.
📏 ATR Trade Management
Built-in ATR-based trade management automatically plots:
Entry level
Stop Loss
Take Profit 1
Take Profit 2
This provides a consistent, rules-based framework for managing risk and reward.
Best Used For
Futures (MNQ, NQ, RTY, M2K, ES, MES, GC, MGC)
Forex
Stocks
ETFs
Cryptocurrency
Recommended for intraday trading on 1-minute, 3-minute, 5-minute, and 15-minute charts while using higher timeframes for trend confirmation.
Trading Philosophy
This indicator is built around a simple principle:
Trade with the trend, wait for the pullback, and enter only after the market confirms continuation.
Rather than predicting market direction, the script is designed to help traders remain patient, reduce emotional decision-making, and focus on disciplined, high-quality setups.
Disclaimer: This indicator is intended as a decision-support tool and should not be considered financial advice. Always practice sound risk management and test any strategy thoroughly before using it in a live trading environment.
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。