OPEN-SOURCE SCRIPT
EMA Multi Cross + VWAP + Support/Resistance Breaks & Retests

Overview
The EMA Multi Cross + VWAP + Support/Resistance Breaks & Retests indicator is an all-in-one technical analysis tool that combines trend-following moving averages, VWAP, and dynamic support/resistance detection. It helps traders identify trend direction, institutional price levels, momentum shifts, and high-probability breakout or pullback opportunities.
The indicator overlays all information directly on the price chart, making it suitable for intraday, swing, and positional trading.
Features
1. Multiple Exponential Moving Averages (EMAs)
The indicator plots the following EMAs:
EMA 9
EMA 13
EMA 15
EMA 21
EMA 40
EMA 50
EMA 60
EMA 120
EMA 125
EMA 200
EMA 250
EMA 350
These EMAs help identify:
Short-term momentum
Intermediate trend
Long-term trend
Dynamic support and resistance
Trend alignment
2. Volume Weighted Average Price (VWAP)
The indicator includes a configurable Session VWAP, calculated using the Typical Price (HLC3), matching TradingView's standard VWAP calculation.
Why VWAP?
VWAP represents the average price traded throughout the session, weighted by volume. It is widely used by institutional traders as a benchmark for fair value.
Uses
Identify the intraday trend.
Determine whether price is trading at a premium or discount relative to the session average.
Spot dynamic support and resistance.
Filter EMA crossover signals.
Improve trade timing by avoiding entries against the prevailing intraday bias.
Typical Interpretation
Bullish
Price above VWAP
VWAP sloping upward
Bearish
Price below VWAP
VWAP sloping downward
Range-bound
Price repeatedly crossing VWAP
Flat VWAP
3. EMA Cross Detection
The indicator continuously monitors EMA crossovers.
Visual Cross Marker
A cross (✚) is plotted whenever:
EMA 9 crosses above EMA 21
EMA 9 crosses below EMA 21
Bullish crosses are displayed in green.
Bearish crosses are displayed in red.
The marker is plotted directly on the EMA 9 line for precise visualization.
4. EMA Alerts
Built-in alert conditions include:
EMA 9 / EMA 15
Bullish crossover
Bearish crossover
EMA 9 / EMA 21
Bullish crossover
Bearish crossover
EMA 13 / EMA 50
Bullish crossover
Bearish crossover
EMA 21 / EMA 200
Bullish crossover
Bearish crossover
5. VWAP Alerts (if enabled in the script)
Optional alerts can notify when:
Price crosses above VWAP.
Price crosses below VWAP.
EMA 9 crosses above VWAP.
EMA 9 crosses below VWAP.
These alerts can help identify changes in intraday momentum and confirm trend direction.
6. Dynamic Support & Resistance
Instead of plotting fixed horizontal levels, the indicator automatically identifies important support and resistance zones using:
Price pivots
Delta volume
ATR-based zone width
This creates adaptive support/resistance zones rather than single price lines.
7. Pivot Detection
The indicator identifies:
Support
Swing lows (pivot lows)
Resistance
Swing highs (pivot highs)
The pivot lookback period is user-configurable.
8. Delta Volume Filter
Only pivots with meaningful buying or selling pressure are considered.
Delta volume is estimated as:
Positive volume for bullish candles.
Negative volume for bearish candles.
This helps filter out weaker levels and focus on areas with stronger market participation.
9. ATR-Based Support & Resistance Zones
Rather than drawing thin horizontal lines, the indicator creates zones whose width is based on the Average True Range (ATR).
This approach provides:
More realistic support and resistance areas.
Better handling of normal price fluctuations.
Clearer visualization of supply and demand zones.
10. Support Zones
Support zones are created when:
A pivot low forms.
Positive delta volume exceeds the configured threshold.
Support is displayed as a green rectangle.
11. Resistance Zones
Resistance zones are created when:
A pivot high forms.
Negative delta volume exceeds the configured threshold.
Resistance is displayed as a red rectangle.
12. Automatic Zone Extension
Support and resistance boxes automatically extend with each new bar, ensuring key price levels remain visible until a new qualifying zone is established.
13. Breakout Detection
The indicator identifies when price breaks through significant support or resistance zones.
Resistance Breakout
When price moves above a resistance zone:
The zone changes to green.
The border becomes dashed.
A "Break Res" label is displayed.
Support Breakdown
When price moves below a support zone:
The zone changes to red.
The border becomes dashed.
A "Break Sup" label is displayed.
14. Retest / Hold Detection
The indicator also highlights successful retests.
Support Hold
Occurs when price revisits support and bounces.
Displayed as:
Green support zone.
Green ◆ marker below the candle.
Resistance Hold
Occurs when price revisits resistance and gets rejected.
Displayed as:
Red resistance zone.
Red ◆ marker above the candle.
Visual Elements
The indicator includes:
12 Exponential Moving Averages (EMAs).
Session VWAP.
EMA 9/21 crossover markers.
Dynamic support zones.
Dynamic resistance zones.
Breakout labels.
Retest (hold) markers.
Alerts Included
The indicator supports alerts for:
EMA 9 ↔ EMA 15 crossover.
EMA 9 ↔ EMA 21 crossover.
EMA 13 ↔ EMA 50 crossover.
EMA 21 ↔ EMA 200 crossover.
Price ↔ VWAP crossover (if enabled).
EMA 9 ↔ VWAP crossover (if enabled).
Best Use Cases
This indicator is designed for:
Intraday trading.
Swing trading.
Positional trading.
Trend-following strategies.
Breakout trading.
Pullback trading.
VWAP-based trading.
Support and resistance analysis.
Suggested Trading Approach
Bullish Setup
Price is above VWAP.
EMA 9 is above EMA 21.
Medium- and long-term EMAs are aligned upward.
Price breaks above resistance or bounces from support with confirmation.
Bearish Setup
Price is below VWAP.
EMA 9 is below EMA 21.
Medium- and long-term EMAs are aligned downward.
Price breaks below support or is rejected from resistance.
Combining the trend indicated by the EMAs, the institutional benchmark provided by VWAP, and the dynamically generated support and resistance zones can help improve trade selection and reduce false signals.
The EMA Multi Cross + VWAP + Support/Resistance Breaks & Retests indicator is an all-in-one technical analysis tool that combines trend-following moving averages, VWAP, and dynamic support/resistance detection. It helps traders identify trend direction, institutional price levels, momentum shifts, and high-probability breakout or pullback opportunities.
The indicator overlays all information directly on the price chart, making it suitable for intraday, swing, and positional trading.
Features
1. Multiple Exponential Moving Averages (EMAs)
The indicator plots the following EMAs:
EMA 9
EMA 13
EMA 15
EMA 21
EMA 40
EMA 50
EMA 60
EMA 120
EMA 125
EMA 200
EMA 250
EMA 350
These EMAs help identify:
Short-term momentum
Intermediate trend
Long-term trend
Dynamic support and resistance
Trend alignment
2. Volume Weighted Average Price (VWAP)
The indicator includes a configurable Session VWAP, calculated using the Typical Price (HLC3), matching TradingView's standard VWAP calculation.
Why VWAP?
VWAP represents the average price traded throughout the session, weighted by volume. It is widely used by institutional traders as a benchmark for fair value.
Uses
Identify the intraday trend.
Determine whether price is trading at a premium or discount relative to the session average.
Spot dynamic support and resistance.
Filter EMA crossover signals.
Improve trade timing by avoiding entries against the prevailing intraday bias.
Typical Interpretation
Bullish
Price above VWAP
VWAP sloping upward
Bearish
Price below VWAP
VWAP sloping downward
Range-bound
Price repeatedly crossing VWAP
Flat VWAP
3. EMA Cross Detection
The indicator continuously monitors EMA crossovers.
Visual Cross Marker
A cross (✚) is plotted whenever:
EMA 9 crosses above EMA 21
EMA 9 crosses below EMA 21
Bullish crosses are displayed in green.
Bearish crosses are displayed in red.
The marker is plotted directly on the EMA 9 line for precise visualization.
4. EMA Alerts
Built-in alert conditions include:
EMA 9 / EMA 15
Bullish crossover
Bearish crossover
EMA 9 / EMA 21
Bullish crossover
Bearish crossover
EMA 13 / EMA 50
Bullish crossover
Bearish crossover
EMA 21 / EMA 200
Bullish crossover
Bearish crossover
5. VWAP Alerts (if enabled in the script)
Optional alerts can notify when:
Price crosses above VWAP.
Price crosses below VWAP.
EMA 9 crosses above VWAP.
EMA 9 crosses below VWAP.
These alerts can help identify changes in intraday momentum and confirm trend direction.
6. Dynamic Support & Resistance
Instead of plotting fixed horizontal levels, the indicator automatically identifies important support and resistance zones using:
Price pivots
Delta volume
ATR-based zone width
This creates adaptive support/resistance zones rather than single price lines.
7. Pivot Detection
The indicator identifies:
Support
Swing lows (pivot lows)
Resistance
Swing highs (pivot highs)
The pivot lookback period is user-configurable.
8. Delta Volume Filter
Only pivots with meaningful buying or selling pressure are considered.
Delta volume is estimated as:
Positive volume for bullish candles.
Negative volume for bearish candles.
This helps filter out weaker levels and focus on areas with stronger market participation.
9. ATR-Based Support & Resistance Zones
Rather than drawing thin horizontal lines, the indicator creates zones whose width is based on the Average True Range (ATR).
This approach provides:
More realistic support and resistance areas.
Better handling of normal price fluctuations.
Clearer visualization of supply and demand zones.
10. Support Zones
Support zones are created when:
A pivot low forms.
Positive delta volume exceeds the configured threshold.
Support is displayed as a green rectangle.
11. Resistance Zones
Resistance zones are created when:
A pivot high forms.
Negative delta volume exceeds the configured threshold.
Resistance is displayed as a red rectangle.
12. Automatic Zone Extension
Support and resistance boxes automatically extend with each new bar, ensuring key price levels remain visible until a new qualifying zone is established.
13. Breakout Detection
The indicator identifies when price breaks through significant support or resistance zones.
Resistance Breakout
When price moves above a resistance zone:
The zone changes to green.
The border becomes dashed.
A "Break Res" label is displayed.
Support Breakdown
When price moves below a support zone:
The zone changes to red.
The border becomes dashed.
A "Break Sup" label is displayed.
14. Retest / Hold Detection
The indicator also highlights successful retests.
Support Hold
Occurs when price revisits support and bounces.
Displayed as:
Green support zone.
Green ◆ marker below the candle.
Resistance Hold
Occurs when price revisits resistance and gets rejected.
Displayed as:
Red resistance zone.
Red ◆ marker above the candle.
Visual Elements
The indicator includes:
12 Exponential Moving Averages (EMAs).
Session VWAP.
EMA 9/21 crossover markers.
Dynamic support zones.
Dynamic resistance zones.
Breakout labels.
Retest (hold) markers.
Alerts Included
The indicator supports alerts for:
EMA 9 ↔ EMA 15 crossover.
EMA 9 ↔ EMA 21 crossover.
EMA 13 ↔ EMA 50 crossover.
EMA 21 ↔ EMA 200 crossover.
Price ↔ VWAP crossover (if enabled).
EMA 9 ↔ VWAP crossover (if enabled).
Best Use Cases
This indicator is designed for:
Intraday trading.
Swing trading.
Positional trading.
Trend-following strategies.
Breakout trading.
Pullback trading.
VWAP-based trading.
Support and resistance analysis.
Suggested Trading Approach
Bullish Setup
Price is above VWAP.
EMA 9 is above EMA 21.
Medium- and long-term EMAs are aligned upward.
Price breaks above resistance or bounces from support with confirmation.
Bearish Setup
Price is below VWAP.
EMA 9 is below EMA 21.
Medium- and long-term EMAs are aligned downward.
Price breaks below support or is rejected from resistance.
Combining the trend indicated by the EMAs, the institutional benchmark provided by VWAP, and the dynamically generated support and resistance zones can help improve trade selection and reduce false signals.
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.