OPEN-SOURCE SCRIPT

MTF RSI Heatmap)

141
# MTF RSI Heatmap — v2.7.2

**Hybrid Higher-TF Trend + Intraday Impulse Detection + Smart Counters & Alerts**

Turn your lower pane into a **multi-timeframe market bias dashboard**. This heatmap blends classic RSI momentum with a **hybrid Daily/Weekly MA-stack trend** and an **intraday impulse override** that flags fast moves *as they happen*. Clean, configurable, and built for real trading flow.

---

## What it shows

* **6 stacked rows = 6 timeframes** (bottom → top).
* **Colors**: Green = Bull, Red = Bear, Yellow = Neutral.
* **Header counter**: `Bull X/6 | Bear Y/6` = live agreement across visible rows.
* **Impulse markers** ▲/▼ on intraday rows (5m/15m/60m/240m) when a shock move triggers.
* **Signal bar**: A thin column above the top row when at least **N of 6** rows align (configurable).

---

## Why it’s different

* **Impulse Override (intraday)**
Detects sharp moves using % change over the last *N* bars, optionally gated by **volume > SMA × multiplier**. This catches dumps/pops earlier than RSI alone.
* **Hybrid D/W (structure over noise)**
Daily/Weekly rows can use an **MA stack (8/21/55)** instead of RSI for a more stable higher-timeframe trend read. Optional **price > fast MA** filter for stricter confirmation.
* **Intrabar option**
Flip rows **during the bar** for early reads (accepting repaint on TF close), or keep it close-only for no surprises.

---

## Key features

* 🌈 **Theme**: Classic or High-Contrast colors.
* 🧠 **RSI thresholds**: Bull above 55, Bear below 45 (editable).
* 🧲 **RSI smoothing** (EMA) for intraday rows to reduce flicker.
* 🧰 **Compact left legend** with adjustable text size & opacity.
* 🚨 **Alerts**:

* **Impulse-only** (per TF and “any intraday”)
* **N-of-6 confirmation** (bull/bear)

---

## Recommended settings (fast opens & news)

* **Impulse**: `Bars = 1–2`, `Threshold = 0.25–0.35%`, `Vol confirm = ON`, `Multiplier = 1.3–1.5`.
* **Hybrid D/W**: `ON`, `EMA 8/21/55`, `Price filter = ON`.
* **Intrabar**: `ON` if you want intra-bar updates (repaints at TF close).

---

## How to read it

1. **Row scan**: Are the bottom (fast) rows aligning first? That’s early momentum.
2. **Header counter**: Look for 4+/6 agreement as momentum broadens.
3. **Signal bar**: Acts as a “go/no-go” confirmation when your threshold is met.
4. **Impulse ▲/▼**: Use as a **heads-up** for acceleration; then watch if rows cascade in that direction.

---

## Alerts (exact names)

Create alerts with these built-ins:

* **Impulse UP — any intraday**
* **Impulse DOWN — any intraday**
* **Impulse UP — TF1 / TF2 / TF3 / TF4**
* **Impulse DOWN — TF1 / TF2 / TF3 / TF4**
* **Bull confirmation** (N-of-6)
* **Bear confirmation** (N-of-6)

Tip: Use **Once per bar** or **Once per bar close** depending on whether you enabled *Intrabar*.

---

## Inputs overview

* **Timeframes & visibility** per row.
* **RSI**: length, bull/bear thresholds, optional EMA smoothing (intraday only).
* **Impulse**: bars, %, volume confirm, SMA length, multiplier, markers.
* **Hybrid D/W**: MA type (EMA/SMA/HMA), 8/21/55 lengths, price filter.
* **Theme & Legend**: color theme, label size (Tiny/Small/Normal), legend opacity.
* **Signal**: N required for confirmation (default 4).

---

## Pro tips

* Combine with **session opens**, **VWAP**, and **liquidity levels**.
* If you trade breakouts, let **impulse triggers** cue attention, then wait for **N-of-6** confirmation.
* For swing bias, lean on **Hybrid D/W**—it changes slower, but with intent.

---

## Notes & limitations

* **Intrabar = repaint expected** on higher-TF closes—by design for earlier context.
* Colors/thresholds are general guidance, not signals by themselves.
* Past performance ≠ future results; **this is not financial advice**.

---

If you enjoy this, drop a ⭐ and tell me what you want next: background shading on confirmation, tooltips with RSI/ROC per row, or a MACD/RSI hybrid mode. Trade sharp! ✨

Declinazione di responsabilità

Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.