OPEN-SOURCE SCRIPT
Multi-Confirmation Swing Indicator

Multi-Confirmation Swing Indicator is a multi-confirmation technical analysis indicator designed for traders who want to analyze trend direction, momentum, support/resistance, breakouts and potential swing entries from one chart.
Instead of relying on a single indicator, the system combines several independent components to provide a broader view of market structure.
The indicator combines:
EMA trend structure
RSI momentum confirmation
Smoothed Heikin Ashi
Dynamic trendlines with breakout detection
Volume-based support and resistance zones
Zone Shift trend detection
Trend initiation and retest levels
Impulse MACD
Swing BUY/SELL signals
Support/resistance breakout and hold signals
The objective is not to predict every market move, but to help traders determine whether multiple pieces of technical evidence are aligned.
How to Read the Indicator
The easiest way to use the indicator is to think of it as a confirmation system.
Don't treat every individual marker as a trade signal.
Instead, look for confluence.
🟢 Bullish Environment
A stronger bullish setup occurs when several of the following are aligned:
EMA 21 > EMA 55
Price is above the EMA structure.
EMA 21 and EMA 55 are rising.
RSI is above the bullish threshold.
Smoothed Heikin Ashi is bullish.
Zone Shift indicates an upward trend.
Price breaks above a resistance/trendline.
Former resistance begins behaving as support.
Impulse MACD confirms positive momentum.
A BUY signal appears after the above conditions align.
The more confirmations that agree, the stronger the overall technical picture.
🔴 Bearish Environment
A stronger bearish setup occurs when:
EMA 21 < EMA 55
Price is below the EMA structure.
EMA 21 and EMA 55 are falling.
RSI is below the bearish threshold.
Smoothed Heikin Ashi is bearish.
Zone Shift indicates a downward trend.
Price breaks below support/trendline.
Former support begins behaving as resistance.
Impulse MACD confirms negative momentum.
A SELL signal appears after the above conditions align.
Again, the objective is confirmation rather than prediction.
Understanding the Main Components
1. EMA Trend Structure
The EMA component uses three moving averages:
Fast EMA — 9
Trend EMA — 21
Major Trend EMA — 55
The basic interpretation is:
Bullish
Price > EMA 9 > EMA 21 > EMA 55
Bearish
Price < EMA 9 < EMA 21 < EMA 55
This helps identify whether short-, medium- and longer-term momentum are aligned.
The EMA settings can be adjusted from the indicator inputs.
2. RSI Confirmation
RSI is used as a momentum filter.
Default thresholds:
Bullish: RSI > 55
Bearish: RSI < 45
The purpose isn't to simply buy when RSI is high or sell when RSI is low.
Instead, RSI helps answer:
"Is momentum supporting the current trend?"
3. Smoothed Heikin Ashi
The Smoothed Heikin Ashi component attempts to reduce some of the noise present in normal candles.
It can help visually identify:
bullish phases
bearish phases
trend transitions
continuation periods
A series of bullish Smoothed Heikin Ashi candles together with bullish EMA structure provides stronger trend confirmation than either component alone.
Likewise for bearish conditions.
4. Dynamic Trendlines
The trendline component identifies swing highs and swing lows and creates dynamic trendlines from them.
It can identify:
Upward breakout
Price breaks through a descending resistance trendline.
Downward breakout
Price breaks through an ascending support trendline.
The B markers represent detected trendline breaks.
These are useful for identifying potential changes in short-term market structure.
5. Volume-Based Support & Resistance
The support/resistance component identifies potential zones around significant pivot areas while incorporating volume information.
The zones can help traders identify:
potential support
potential resistance
support breaks
resistance breaks
resistance becoming support
support becoming resistance
Example
If resistance is broken:
Resistance → Support
A subsequent successful retest of that level can provide additional bullish confirmation.
Similarly:
Support → Resistance
can provide bearish confirmation after a downside break.
6. Zone Shift
Zone Shift provides another view of the broader trend.
It uses a combination of:
EMA
HMA
price range/distance
trend initiation level
The indicator can switch between bullish and bearish states.
It also identifies potential retests of the trend initiation level.
This can be particularly useful for swing traders because it provides context beyond a single candle.
7. Impulse MACD
Impulse MACD provides an additional momentum layer.
It helps identify:
positive momentum
negative momentum
momentum expansion
momentum contraction
It should not be interpreted independently as a buy/sell system.
Instead, use it as another confirmation layer.
BUY Signal
The BUY signal is designed to appear when the primary swing-trend conditions become bullish.
The underlying logic considers factors such as:
EMA trend
EMA alignment
EMA slope
price position relative to the fast EMA
two-bar confirmation
RSI momentum
The system also prevents repeated BUY labels while the same bullish condition remains continuously active.
Ideal interpretation
Trend + momentum + structure + confirmation = stronger setup
Not:
"BUY label = guaranteed buy."
SELL Signal
The SELL signal works in the opposite direction.
It considers:
bearish EMA trend
bearish EMA alignment
declining EMA structure
price below the fast EMA
two-bar confirmation
RSI weakness
Repeated SELL signals are also filtered.
How I Recommend Using It
Rather than trading every signal, use a 3-stage approach.
Stage 1 — Identify the Trend
First ask:
Is the market bullish, bearish or unclear?
Look at:
EMA 21/55
EMA stacking
Zone Shift
Smoothed Heikin Ashi
If these disagree significantly, consider the market unclear.
Stage 2 — Look for Structure
Once the trend is identified, look for:
support/resistance
trendline breakout
breakout/retest
resistance becoming support
support becoming resistance
This helps avoid entering simply because an indicator changed color.
Stage 3 — Look for Momentum Confirmation
Finally check:
RSI
Impulse MACD
EMA slope
BUY/SELL confirmation
A setup where multiple components agree is generally more interesting than an isolated signal.
Example Bullish Setup
A potential swing-long setup could look like:
1. EMA 21 > EMA 55
↓
2. Price > EMA 9 > EMA 21
↓
3. Zone Shift turns bullish
↓
4. Resistance/trendline breaks
↓
5. Price retests the broken resistance
↓
6. RSI remains above bullish threshold
↓
7. Impulse MACD supports bullish momentum
↓
8. BUY signal appears
This creates a confluence-based setup rather than relying on one indicator.
Example Bearish Setup
The reverse:
EMA 21 < EMA 55
↓
Price < EMA 9 < EMA 21 < EMA 55
↓
Zone Shift bearish
↓
Support/trendline breaks
↓
Retest fails
↓
RSI below bearish threshold
↓
Impulse MACD bearish
↓
SELL signal
Again, this is a framework for analysis—not a guarantee of future price movement.
Best Use Cases
The indicator is primarily designed for:
Swing Trading
Good fit for traders holding positions for several candles to several weeks.
Trend Following
Useful when markets establish clear directional movement.
Breakout Trading
The trendline and support/resistance components can help identify structural breaks.
Breakout Retests
Useful for watching former resistance become support or former support become resistance.
Trend Confirmation
Useful when traders want multiple technical factors visible on a single chart.
What This Indicator Is NOT
This is important for the TradingView publication.
This indicator does not guarantee profitable trades or predict future prices.
It should not be treated as:
financial advice
a standalone automated trading system
a guarantee of trend continuation
a guaranteed entry/exit system
a substitute for risk management
Signals can fail, particularly during:
sideways markets
low-volume markets
sudden news events
high volatility
false breakouts
Always combine the indicator with appropriate position sizing and risk management.
Instead of relying on a single indicator, the system combines several independent components to provide a broader view of market structure.
The indicator combines:
EMA trend structure
RSI momentum confirmation
Smoothed Heikin Ashi
Dynamic trendlines with breakout detection
Volume-based support and resistance zones
Zone Shift trend detection
Trend initiation and retest levels
Impulse MACD
Swing BUY/SELL signals
Support/resistance breakout and hold signals
The objective is not to predict every market move, but to help traders determine whether multiple pieces of technical evidence are aligned.
How to Read the Indicator
The easiest way to use the indicator is to think of it as a confirmation system.
Don't treat every individual marker as a trade signal.
Instead, look for confluence.
🟢 Bullish Environment
A stronger bullish setup occurs when several of the following are aligned:
EMA 21 > EMA 55
Price is above the EMA structure.
EMA 21 and EMA 55 are rising.
RSI is above the bullish threshold.
Smoothed Heikin Ashi is bullish.
Zone Shift indicates an upward trend.
Price breaks above a resistance/trendline.
Former resistance begins behaving as support.
Impulse MACD confirms positive momentum.
A BUY signal appears after the above conditions align.
The more confirmations that agree, the stronger the overall technical picture.
🔴 Bearish Environment
A stronger bearish setup occurs when:
EMA 21 < EMA 55
Price is below the EMA structure.
EMA 21 and EMA 55 are falling.
RSI is below the bearish threshold.
Smoothed Heikin Ashi is bearish.
Zone Shift indicates a downward trend.
Price breaks below support/trendline.
Former support begins behaving as resistance.
Impulse MACD confirms negative momentum.
A SELL signal appears after the above conditions align.
Again, the objective is confirmation rather than prediction.
Understanding the Main Components
1. EMA Trend Structure
The EMA component uses three moving averages:
Fast EMA — 9
Trend EMA — 21
Major Trend EMA — 55
The basic interpretation is:
Bullish
Price > EMA 9 > EMA 21 > EMA 55
Bearish
Price < EMA 9 < EMA 21 < EMA 55
This helps identify whether short-, medium- and longer-term momentum are aligned.
The EMA settings can be adjusted from the indicator inputs.
2. RSI Confirmation
RSI is used as a momentum filter.
Default thresholds:
Bullish: RSI > 55
Bearish: RSI < 45
The purpose isn't to simply buy when RSI is high or sell when RSI is low.
Instead, RSI helps answer:
"Is momentum supporting the current trend?"
3. Smoothed Heikin Ashi
The Smoothed Heikin Ashi component attempts to reduce some of the noise present in normal candles.
It can help visually identify:
bullish phases
bearish phases
trend transitions
continuation periods
A series of bullish Smoothed Heikin Ashi candles together with bullish EMA structure provides stronger trend confirmation than either component alone.
Likewise for bearish conditions.
4. Dynamic Trendlines
The trendline component identifies swing highs and swing lows and creates dynamic trendlines from them.
It can identify:
Upward breakout
Price breaks through a descending resistance trendline.
Downward breakout
Price breaks through an ascending support trendline.
The B markers represent detected trendline breaks.
These are useful for identifying potential changes in short-term market structure.
5. Volume-Based Support & Resistance
The support/resistance component identifies potential zones around significant pivot areas while incorporating volume information.
The zones can help traders identify:
potential support
potential resistance
support breaks
resistance breaks
resistance becoming support
support becoming resistance
Example
If resistance is broken:
Resistance → Support
A subsequent successful retest of that level can provide additional bullish confirmation.
Similarly:
Support → Resistance
can provide bearish confirmation after a downside break.
6. Zone Shift
Zone Shift provides another view of the broader trend.
It uses a combination of:
EMA
HMA
price range/distance
trend initiation level
The indicator can switch between bullish and bearish states.
It also identifies potential retests of the trend initiation level.
This can be particularly useful for swing traders because it provides context beyond a single candle.
7. Impulse MACD
Impulse MACD provides an additional momentum layer.
It helps identify:
positive momentum
negative momentum
momentum expansion
momentum contraction
It should not be interpreted independently as a buy/sell system.
Instead, use it as another confirmation layer.
BUY Signal
The BUY signal is designed to appear when the primary swing-trend conditions become bullish.
The underlying logic considers factors such as:
EMA trend
EMA alignment
EMA slope
price position relative to the fast EMA
two-bar confirmation
RSI momentum
The system also prevents repeated BUY labels while the same bullish condition remains continuously active.
Ideal interpretation
Trend + momentum + structure + confirmation = stronger setup
Not:
"BUY label = guaranteed buy."
SELL Signal
The SELL signal works in the opposite direction.
It considers:
bearish EMA trend
bearish EMA alignment
declining EMA structure
price below the fast EMA
two-bar confirmation
RSI weakness
Repeated SELL signals are also filtered.
How I Recommend Using It
Rather than trading every signal, use a 3-stage approach.
Stage 1 — Identify the Trend
First ask:
Is the market bullish, bearish or unclear?
Look at:
EMA 21/55
EMA stacking
Zone Shift
Smoothed Heikin Ashi
If these disagree significantly, consider the market unclear.
Stage 2 — Look for Structure
Once the trend is identified, look for:
support/resistance
trendline breakout
breakout/retest
resistance becoming support
support becoming resistance
This helps avoid entering simply because an indicator changed color.
Stage 3 — Look for Momentum Confirmation
Finally check:
RSI
Impulse MACD
EMA slope
BUY/SELL confirmation
A setup where multiple components agree is generally more interesting than an isolated signal.
Example Bullish Setup
A potential swing-long setup could look like:
1. EMA 21 > EMA 55
↓
2. Price > EMA 9 > EMA 21
↓
3. Zone Shift turns bullish
↓
4. Resistance/trendline breaks
↓
5. Price retests the broken resistance
↓
6. RSI remains above bullish threshold
↓
7. Impulse MACD supports bullish momentum
↓
8. BUY signal appears
This creates a confluence-based setup rather than relying on one indicator.
Example Bearish Setup
The reverse:
EMA 21 < EMA 55
↓
Price < EMA 9 < EMA 21 < EMA 55
↓
Zone Shift bearish
↓
Support/trendline breaks
↓
Retest fails
↓
RSI below bearish threshold
↓
Impulse MACD bearish
↓
SELL signal
Again, this is a framework for analysis—not a guarantee of future price movement.
Best Use Cases
The indicator is primarily designed for:
Swing Trading
Good fit for traders holding positions for several candles to several weeks.
Trend Following
Useful when markets establish clear directional movement.
Breakout Trading
The trendline and support/resistance components can help identify structural breaks.
Breakout Retests
Useful for watching former resistance become support or former support become resistance.
Trend Confirmation
Useful when traders want multiple technical factors visible on a single chart.
What This Indicator Is NOT
This is important for the TradingView publication.
This indicator does not guarantee profitable trades or predict future prices.
It should not be treated as:
financial advice
a standalone automated trading system
a guarantee of trend continuation
a guaranteed entry/exit system
a substitute for risk management
Signals can fail, particularly during:
sideways markets
low-volume markets
sudden news events
high volatility
false breakouts
Always combine the indicator with appropriate position sizing and risk management.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.