OPEN-SOURCE SCRIPT
Güncellendi EMA Trend Dash Board by [Itto Ryu]

# EMA Trend Dash Board — Trend stage classifier on a 5-EMA stack
A pure-EMA trend dashboard. Five exponential moving averages (10/20/50/100/200)
plus three derived signals — stack alignment, EMA50 slope, and the fast-vs-trend
gap — classify the market into one of four trend stages: ACCEL → MATURE → DECEL
→ REVERSAL. A 0-to-100 Bull/Bear score and a state-machine VERDICT row summarise
all of it in a single glance.
## What's different from a generic EMA ribbon
Most EMA-ribbon scripts only colour the EMAs. This one adds:
1. **Stage classification** — instead of "trending vs ranging", the script tells
you *where in the trend you are*. Stage 1 (ACCEL) is for adds; Stage 3 (DECEL)
warns to trim; Stage 4 (REVERSAL) tells you the stack has lost alignment.
2. **Bull/Bear score (0–100)** — composed of:
- Price-above-EMA: 8 pts each (max 40)
- Stack-pair ordering: 10 pts each (max 40)
- Trend-EMA slope direction: 10 pts
- Gap expansion (only when stack aligned): 10 pts
3. **Verdict state machine** — combines stage + score into one action label
(STRONG SETUP, SIGNAL CLEAR, TREND ACCEL, EASE, WATCH, EXIT, ...).
## Defaults (and why)
| Input | Default | Reasoning |
|---|---|---|
| EMA lengths | 10 / 20 / 50 / 100 / 200 | Classic Stan Weinstein / Mark Minervini ladder |
| Slope/Gap lookback | 5 bars | Catches turns without over-smoothing on intraday |
| Slope flat threshold | 0.1% | Below this magnitude the trend EMA is treated as flat — avoids false up/down on chop |
| Gap expansion threshold | 0.05% | Min change in |gap| to count as expanding/compressing |
| Dashboard | top_right, normal | Standard placement; tiny/small for low-res screens |
## Visual elements
| Element | Meaning |
|---|---|
| 5 EMA lines | EMA 1 (fast, yellow) → EMA 5 (long, slate). EMA 3 (Trend, pink) drawn thicker as the slope reference |
| Fast-Trend fill | Green when EMA1 > EMA3, red otherwise. Quick visual on momentum direction |
| Right-edge labels | EMA name tags at the latest bar |
| Dashboard | Trend / EMA Stack / Trend Dynamics / Scoring / Signal / Verdict sections |
## Who this is for
- Trend-following swing traders who already use EMA stacks but want a state read-out
- Discretionary traders who want a "what stage am I in?" check without staring at the chart
- Anyone replacing 3-4 separate EMA indicators with one consolidated dashboard
## Who this is NOT for
- Pure mean-reversion / range traders — EMAs are the wrong tool
- Tick scalpers — the stage/gap thresholds are tuned for swing+intraday, not sub-minute
- Anyone needing entry/exit signals automated — this is a *read-out*, not a strategy
## How to use
1. Apply on standard candle chart, any timeframe (works best 15m → Daily)
2. Read the **Stage** row first — that's your context
3. Cross-check with **Verdict** row — that's your action
4. The Bull/Bear bars give a confidence reading; the SIGNAL row gives the discrete label
5. Configure alerts on STRONG Long/Short or Stack Broken for hands-off monitoring
## Common mistakes
- **Entering on Stage 4 just because Verdict says STRONG SETUP** — Stage 4 = stack lost alignment, by design it forces a re-check. Wait for re-alignment.
- **Reading dashboard on Heikin Ashi** — EMAs are calculated on HA close (a smoothed value), not real close. Numbers will not match a standard-chart EMA. Use standard candles for the dashboard.
- **Tuning EMA lengths for one symbol and assuming portability** — re-test on each instrument; trend EMAs are regime-dependent.
## Disclosure
- **Pine version**: v6
- **Repaint**: NO — all calculations use confirmed-bar data. Dashboard and right-edge labels refresh on the last bar (cosmetic only) and do not modify historical bars.
- **Lookahead**: NONE — no `request.security` calls.
- **Chart type**: Designed for standard candle charts. On Heikin Ashi / Renko / Range / PnF / Kagi the EMA values are calculated against the chart's synthetic close and will not match a standard-chart EMA.
- **Originality**: Generic 5-EMA inputs; novel additions are the Stage classifier, Bull/Bear scoring weights, and Verdict state machine.
- **Predecessor**: Extracted from the author's earlier "Ichimoku Trend Dash Board" (Ichimoku + EMA combined). This EMA-only variant strips Ichimoku, ADX, RSI, MACD, and SL/TP logic for a focused trend-stage read.
## Disclaimer
For educational purposes only. Not financial advice. Trading involves
substantial risk of loss — past performance does not guarantee future results.
You are solely responsible for your own trading decisions. Script provided
"as is" with no warranty; author is not liable for any losses.
A pure-EMA trend dashboard. Five exponential moving averages (10/20/50/100/200)
plus three derived signals — stack alignment, EMA50 slope, and the fast-vs-trend
gap — classify the market into one of four trend stages: ACCEL → MATURE → DECEL
→ REVERSAL. A 0-to-100 Bull/Bear score and a state-machine VERDICT row summarise
all of it in a single glance.
## What's different from a generic EMA ribbon
Most EMA-ribbon scripts only colour the EMAs. This one adds:
1. **Stage classification** — instead of "trending vs ranging", the script tells
you *where in the trend you are*. Stage 1 (ACCEL) is for adds; Stage 3 (DECEL)
warns to trim; Stage 4 (REVERSAL) tells you the stack has lost alignment.
2. **Bull/Bear score (0–100)** — composed of:
- Price-above-EMA: 8 pts each (max 40)
- Stack-pair ordering: 10 pts each (max 40)
- Trend-EMA slope direction: 10 pts
- Gap expansion (only when stack aligned): 10 pts
3. **Verdict state machine** — combines stage + score into one action label
(STRONG SETUP, SIGNAL CLEAR, TREND ACCEL, EASE, WATCH, EXIT, ...).
## Defaults (and why)
| Input | Default | Reasoning |
|---|---|---|
| EMA lengths | 10 / 20 / 50 / 100 / 200 | Classic Stan Weinstein / Mark Minervini ladder |
| Slope/Gap lookback | 5 bars | Catches turns without over-smoothing on intraday |
| Slope flat threshold | 0.1% | Below this magnitude the trend EMA is treated as flat — avoids false up/down on chop |
| Gap expansion threshold | 0.05% | Min change in |gap| to count as expanding/compressing |
| Dashboard | top_right, normal | Standard placement; tiny/small for low-res screens |
## Visual elements
| Element | Meaning |
|---|---|
| 5 EMA lines | EMA 1 (fast, yellow) → EMA 5 (long, slate). EMA 3 (Trend, pink) drawn thicker as the slope reference |
| Fast-Trend fill | Green when EMA1 > EMA3, red otherwise. Quick visual on momentum direction |
| Right-edge labels | EMA name tags at the latest bar |
| Dashboard | Trend / EMA Stack / Trend Dynamics / Scoring / Signal / Verdict sections |
## Who this is for
- Trend-following swing traders who already use EMA stacks but want a state read-out
- Discretionary traders who want a "what stage am I in?" check without staring at the chart
- Anyone replacing 3-4 separate EMA indicators with one consolidated dashboard
## Who this is NOT for
- Pure mean-reversion / range traders — EMAs are the wrong tool
- Tick scalpers — the stage/gap thresholds are tuned for swing+intraday, not sub-minute
- Anyone needing entry/exit signals automated — this is a *read-out*, not a strategy
## How to use
1. Apply on standard candle chart, any timeframe (works best 15m → Daily)
2. Read the **Stage** row first — that's your context
3. Cross-check with **Verdict** row — that's your action
4. The Bull/Bear bars give a confidence reading; the SIGNAL row gives the discrete label
5. Configure alerts on STRONG Long/Short or Stack Broken for hands-off monitoring
## Common mistakes
- **Entering on Stage 4 just because Verdict says STRONG SETUP** — Stage 4 = stack lost alignment, by design it forces a re-check. Wait for re-alignment.
- **Reading dashboard on Heikin Ashi** — EMAs are calculated on HA close (a smoothed value), not real close. Numbers will not match a standard-chart EMA. Use standard candles for the dashboard.
- **Tuning EMA lengths for one symbol and assuming portability** — re-test on each instrument; trend EMAs are regime-dependent.
## Disclosure
- **Pine version**: v6
- **Repaint**: NO — all calculations use confirmed-bar data. Dashboard and right-edge labels refresh on the last bar (cosmetic only) and do not modify historical bars.
- **Lookahead**: NONE — no `request.security` calls.
- **Chart type**: Designed for standard candle charts. On Heikin Ashi / Renko / Range / PnF / Kagi the EMA values are calculated against the chart's synthetic close and will not match a standard-chart EMA.
- **Originality**: Generic 5-EMA inputs; novel additions are the Stage classifier, Bull/Bear scoring weights, and Verdict state machine.
- **Predecessor**: Extracted from the author's earlier "Ichimoku Trend Dash Board" (Ichimoku + EMA combined). This EMA-only variant strips Ichimoku, ADX, RSI, MACD, and SL/TP logic for a focused trend-stage read.
## Disclaimer
For educational purposes only. Not financial advice. Trading involves
substantial risk of loss — past performance does not guarantee future results.
You are solely responsible for your own trading decisions. Script provided
"as is" with no warranty; author is not liable for any losses.
Sürüm Notları
EMA Trend Dash Board Pro — a single-pane trend cockpit built on 5 EMAs. It readstrend health, classifies the trend's life-stage, checks multi-timeframe agreement,
and flags pullback entry timing — all in one on-chart dashboard.
── PURPOSE ──
Most EMA tools tell you what the trend IS. This one tells you what to DO about it:
whether to ride, hold, trim, or stand aside — and whether the higher timeframes agree.
It condenses a 5-EMA ribbon (10/20/50/100/200) into a Bull/Bear score (0–100), a
4-stage trend life-cycle, an MTF confluence panel, and entry-timing cues, then prints
a one-line VERDICT. Built for discretionary trend & swing traders who want structure
without flipping through six indicators.
── METHODOLOGY ──
1. EMA STACK — counts how many of the 4 adjacent EMA pairs are in order (10>20>50>100>200
for bull). ≥3 of 4 = "aligned".
2. SCORE (0–100) — price-vs-EMA position (×8 per EMA, max 40) + stack pairs (×10, max 40)
+ trend-EMA slope (10) + gap expansion (10). Bull and bear scored independently.
3. STAGE — combines stack alignment with the EMA10–EMA50 gap momentum:
Stage 1 ACCEL — aligned + gap expanding (trend accelerating)
Stage 2 MATURE — aligned + gap stable (trend intact, steady)
Stage 3 DECEL — aligned + gap compressing (momentum fading)
Stage 4 — stack alignment lost; split into:
4a WATCH — broke but score still ≥60 (likely deep pullback, not reversal)
4b EXIT — broke and score 40–59 (trend breaking down)
4c BUILD — a NEW opposite-side trend is forming
4 IDLE — no edge either way
4. MTF — runs the same engine on up to 3 higher timeframes via request.security and
reports each TF's trend + stage + net score, plus a confluence count.
5. ENTRY TIMING — pullback detection (dip to the EMA20 zone in an aligned stack, then
reclaim EMA10), EMA cross tracking, and a next-bar cross-price projection (pure EMA
math, no repaint).
── DEFAULTS ──
EMAs ................. 10 / 20 / 50 / 100 / 200 (classic fast→long ribbon)
Slope/Gap lookback ... 5 bars
Higher timeframes .... 60m / 240m / D (toggle each on/off)
Use closed HTF bars .. ON (anti-repaint — see Disclosure)
Pullback window ...... 5 bars from EMA20 touch to EMA10 reclaim
ATR length ........... 14
Extension warning .... 2.0 ATR from the trend EMA (flags "too far to chase")
Ribbon percentile .... 100-bar lookback (squeeze ≤ P20, wide ≥ P80)
── VISUAL ELEMENTS ──
5 EMA lines + fast/trend fill (green when EMA10>EMA50, red otherwise)
▲ / ▼ first bar of STRONG LONG / STRONG SHORT
◆ pullback trigger (long below bar / short above)
✕ stack-break (entry into Stage 4)
GC / DC golden / death cross (EMA50 × EMA200)
Bar coloring by stage (optional, OFF by default)
Dashboard table — the primary output: Trend · MTF · EMA Stack · Trend Dynamics
(slope, accel, gap, ribbon, age, extension, stage) · Entry Timing
(pullback, crosses, X-price) · Scoring · Signal · Verdict
── WHO IT'S FOR / NOT FOR ──
FOR: trend & swing traders who execute manually and want one read on trend strength,
maturity, MTF agreement, and pullback timing.
NOT FOR: scalpers needing tick-precise entries, or anyone expecting auto buy/sell
orders — this is an analysis dashboard, not a strategy or signal-only tool.
── HOW TO USE ──
1. Run it on an intraday timeframe so the MTF rows populate (on Daily, intraday HTFs
read "n/a" by design).
2. Read STAGE first: 1 = ride, 2 = hold, 3 = trim/tighten, 4 = watch or exit.
3. Check MTF Align — take trades in the direction the higher timeframes agree on.
4. Time entries with the PULLBACK row (dip-and-reclaim) or a fresh Stage 1 in your bias.
5. Respect the EXTENDED warning — when price is >2 ATR from the trend EMA, wait for a
pullback instead of chasing.
6. VERDICT is the plain-language summary of all of the above.
── COMMON MISTAKES ──
• Chasing while "EXTENDED ⚠" is showing — that's the late-entry zone.
• Trading against MTF disagreement (e.g., long signal while higher TFs read BEAR).
• Treating WEAK BULL/BEAR like STRONG — score < 60 is a lean, not a setup.
• Reading the live (forming) bar as final — values settle at bar close.
• Using on Heikin Ashi / Renko — synthetic prices distort every EMA/ATR reading.
── DISCLOSURE ──
Pine version : v6
Repaint : NO on closed bars. With the default "Use closed HTF bars only = ON",
the MTF panel reads the last CLOSED higher-timeframe bar
(request.security with lookahead_off + previous-bar offset) — it does
not repaint. The live forming bar updates tick-by-tick and settles at
close (standard for any real-time indicator). Turning that input OFF
makes the MTF panel read the live HTF bar, which updates intrabar.
Lookahead : NONE — no barmerge.lookahead_on anywhere.
Chart type : Use on STANDARD candlestick charts. Heikin Ashi, Renko, Range, Point &
Figure and Kagi feed synthetic OHLC into the EMAs and ATR and will
distort the dashboard.
Originality : 100% own work. Evolves my earlier "EMA Trend Dash Board" — adds MTF
confluence, pullback detection, ATR extension, ribbon-compression
percentile, slope acceleration, score delta, cross projection, and a
reworked Stage-4 model. Open-source.
Changelog
Pro v1 — added MTF rows, pullback detection, ATR extension, ribbon compression
percentile, slope acceleration + EMA200 slope, score delta, EMA cross +
next-bar cross-price projection, on-chart markers, stage bar coloring,
and a reworked Stage 4 (4a WATCH / 4b EXIT / 4c BUILD / IDLE).
This script is for education and analysis only. It is not financial advice. Test on
your own instruments and timeframes before trading. Past behavior does not guarantee
future results.
Sürüm Notları
Update name changeAçık kaynak kodlu komut dosyası
Gerçek TradingView ruhuyla, bu komut dosyasının mimarı, yatırımcıların işlevselliğini inceleyip doğrulayabilmesi için onu açık kaynaklı hale getirdi. Yazarı tebrik ederiz! Ücretsiz olarak kullanabilseniz de, kodu yeniden yayınlamanın Topluluk Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, alım satım veya diğer türden tavsiye veya öneriler anlamına gelmez ve teşkil etmez. Kullanım Koşulları bölümünde daha fazlasını okuyun.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuyla, bu komut dosyasının mimarı, yatırımcıların işlevselliğini inceleyip doğrulayabilmesi için onu açık kaynaklı hale getirdi. Yazarı tebrik ederiz! Ücretsiz olarak kullanabilseniz de, kodu yeniden yayınlamanın Topluluk Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, alım satım veya diğer türden tavsiye veya öneriler anlamına gelmez ve teşkil etmez. Kullanım Koşulları bölümünde daha fazlasını okuyun.