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.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.