OPEN-SOURCE SCRIPT

Multi EMA + Indicators + Mini-Dashboard + Reversals v6

75
📘 Multi EMA + Indicators + Mini-Dashboard + Reversals v6
🧩 Overview

This indicator is a multi-EMA setup that combines trend, momentum, and reversal analysis in a single visual framework.
It integrates four exponential moving averages (EMAs), key oscillators (RSI, MACD, Stochastic, CCI), volatility filtering (ATR), and a dynamic mini-dashboard that summarizes all signals in real time.

Its purpose is to help traders visually confirm trend alignment, filter valid entries, and identify possible trend continuation or reversal points.
It can display buy/sell arrows, detect reversal candles, and issue alerts when trading conditions are met.

⚙️ Core Components
1. Moving Averages (EMA Setup)

EMA1 (fast) and EMA2 (medium) define the short-term trend and trigger bias.

When the price is above both EMAs → bullish bias.

When below → bearish bias.

EMA3 and EMA4 act as trend filters. Their slopes (up or down) confirm overall momentum and help validate signals.

Each EMA has customizable lengths, sources, and colors for up/down trends.

This “EMA stack” is the foundation of the setup — a structured trend-following framework that adapts to market speed and volatility.

2. Momentum and Confirmation Filters

Each indicator can be individually enabled or disabled for flexibility.

RSI: confirms direction (above/below 50).

MACD: detects momentum crossover (MACD > Signal for bullish confirmation).

Stochastic: identifies trend continuation (K > D for longs, K < D for shorts).

CCI: adds trend bias above/below a threshold.

ATR Filter: filters out small, low-volatility candles to reduce noise.

You can activate only the filters that fit your trading plan — for instance, trend traders often use RSI and MACD, while scalpers may rely on Stochastic and ATR.

3. Reversal Detection

The indicator includes an optional Reversal Section that independently detects potential turning points.

It combines multiple configurable criteria:

Candlestick patterns (Bullish Hammer, Shooting Star).

Large Candle filter — detects unusually large bars (relative to close).

Price-to-EMA distance — identifies overextended moves that might revert.

RSI Divergence — detects potential momentum shifts.

RSI Overbought/Oversold zones (70/30 by default).

Doji Candles — sign of indecision.

A bullish or bearish reversal signal appears when enough selected criteria are met.
All sub-modules can be toggled on/off individually, giving you full control over sensitivity.

4. Signal Logic

Buy and sell signals are triggered when EMA alignment and the chosen confirmations agree:

Buy Signal
→ Price above EMA1 & EMA2
→ Confirmations (RSI/MACD/Stoch/CCI/ATR) pass
→ Trend filters (EMA3/EMA4) point upward

Sell Signal
→ Price below EMA1 & EMA2
→ Confirmations align bearishly
→ Trend filters (EMA3/EMA4) slope downward

Reversal signals can appear independently, even against the current EMA trend, depending on your settings.

5. Visual Dashboard

A mini-dashboard appears near the chart showing:

Current trade bias (LONG / SHORT / NEUTRAL)

EMA3 and EMA4 trend directions (↑ / ↓)

Quick visual bars (🟩 / 🟥) for each filter: RSI, MACD, Stoch, ATR, CCI, EMA filters

Reversal criteria status (Doji, RSI divergence, candle size, etc.)

This panel gives you a compact overview of all indicator states at a glance.
The color of the panel changes dynamically — green for bullish, red for bearish, gray for neutral.

6. Alerts

Built-in alerts allow automation or notifications:

Buy Alert

Sell Alert

Reversal Buy

Reversal Sell

You can connect these alerts to TradingView notifications or external bots for semi-automated execution.

💡 How to Use
✅ Trend-Following Setup

Focus on trades in the direction of EMA1 & EMA2.

Confirm with EMA3 & EMA4 trending in the same direction.

Use RSI/MACD/Stoch filters to ensure momentum supports the trade.

Avoid entries when ATR filter indicates low volatility.

🔄 Reversal Setup

Enable the Reversal section for potential tops/bottoms.

Look for reversal buy signals near support zones or after strong downtrends.

Use RSI divergence or Doji + Hammer signals as confirmation.

Combine with key chart areas (supply/demand or previous swing levels).

⚖️ Combination Approach

Trade continuation signals when all EMAs are aligned and filters are green.

Trade reversals only when at a key area (support/resistance) and confirmed by reversal conditions.

Always check higher-timeframe bias before entering a trade.

🧭 Practical Tips

Use different EMA sets for different timeframes:

9/21/50/100 for swing or trend trades.

5/13/34/89 for intraday scalping.

Turn off filters you don’t use to reduce lag.

Always validate signals with price structure, not just indicator alignment.

Practice in replay mode before live trading.

🗺️ Key Chart Confluence (Highly Recommended)

Although the indicator provides structured signals, its best use is in confluence with:

Support and resistance levels

Supply/demand zones

Trendlines and channels

Liquidity pools

Volume clusters

Signals aligned with strong key areas on the chart tend to have greater reliability than isolated indicator triggers.

I use EMA 1 - 20 Open ; EMA 2 - 20 Close ; EMA 3 - 50 ; EMA 4 - 200 or 100 , but that's me...

⚠️ Important Disclaimer

This indicator is a technical tool, not a guarantee of results.
Trading involves risk, and no signal is ever 100% accurate.
Every trader should develop a personal strategy, use proper risk management, and adapt settings to their instrument and timeframe.
Always combine indicator signals with key chart areas, higher-timeframe context, and your own analysis before taking a trade.

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.