OPEN-SOURCE SCRIPT
Aggiornato

Confluence Pannel

179
📊 RSI / MACD / ADX Info Panel — Indicator Overview
This Pine Script v6 indicator is a compact visual dashboard that displays real-time insights from three popular technical indicators — RSI, MACD, and ADX — in a color-coded panel at the top-right of your TradingView chart.

🔍 What It Shows
✅ RSI (Relative Strength Index)
Measures momentum and potential overbought/oversold conditions.

Green background: RSI is above 50 (bullish momentum).

Red background: RSI is below 50 (bearish momentum).

Extra label:

"OVER BOUGHT" if RSI > input threshold (default 70)

"OVER SOLD" if RSI < input threshold (default 30)

✅ MACD (Moving Average Convergence Divergence)
Indicates trend strength and direction.

Green background: MACD line is above signal line → Bullish

Red background: MACD line is below signal line → Bearish

Label displays: "Bullish" or "Bearish"

✅ ADX (Average Directional Index)
Measures the strength of the trend, not its direction.

Background and label color changes:

🔴 Red: ADX < 20 → "Bad" (no trend)

🟠 Orange: 20 ≤ ADX < 25 → "Weak" (choppy trend)

🟢 Green: 25 ≤ ADX < 30 → "Good" (valid trend)

🔵 Blue: ADX ≥ 30 → "Best" (strong trend)

🧠 How to Use It
Add to Chart: Paste the script into TradingView’s Pine Editor, click “Add to Chart,” and you’ll see a table appear in the top-right corner.

Interpret Quickly: Use the panel to quickly assess:

Is momentum building or fading? (RSI)

Is there a trend direction? (MACD)

Is the trend strong enough to trade? (ADX)

Make Fast Trade Decisions:

Look for all green/blue for optimal bullish conditions.

Mixed colors may indicate range-bound or weakening setups.

Use it as a confluence check before entering trades.
Note di rilascio
🧠 How to Use This Panel:
RSI → momentum direction + overbought/oversold status

MACD → trend direction confirmation

ATR → current market volatility (helps size risk)

ADX → trend strength (filters choppy/no-trend conditions)

🔄 Summary of Updates
✅ 1. ADX Reintroduced
Previously removed when switching to ATR.

Now re-added alongside ATR.

Calculated manually (since ta.adx() is not available in Pine Script).

pinescript
Copy
Edit
adx = 100 * ta.rma(math.abs(plusDI - minusDI) / (plusDI + minusDI), adxLen)
✅ 2. ADX Classification Added
ADX values are categorized into descriptive strength levels:

ADX Value Label Color
< 20 "Bad" 🔴 Red
20 - <25 "Weak" 🟠 Orange
25 - <30 "Good" 🟢 Green
≥ 30 "Best" 🔵 Blue

Displayed in the panel with:

pinescript
Copy
Edit
"ADX: " + str.tostring(adx, "#.##") + " - " + adxLabel
✅ 3. Panel Expanded
Table changed from 3 rows to 4 rows to accommodate:

RSI

MACD

ATR

ADX

pinescript
Copy
Edit
var table infoBox = table.new(position.top_right, 1, 4, border_width=1)
✅ 4. All Existing Features Preserved
RSI with 50-line and OB/OS detection.

MACD bullish/bearish crossover.

ATR remains intact with volatility color scale.

✅ Final Outcome:
You now have a complete dashboard-style indicator that quickly tells you:

📈 Direction (RSI)

📊 Trend Strength (ADX)

💡 Trend Confirmation (MACD)

🔥 Volatility Level (ATR)
Note di rilascio
🔄 What's New (Compared to the Original)
Feature Old Version Enhanced Version
RSI Basic value + OB/OS label Momentum tier (Strong/Weak Bullish/Bearish) + Direction
MACD Bullish/Bearish trend only Histogram direction (↑/↓/=), strength label, and value
ATR Volatility label Improved description: “Low,” “Moderate,” “Elevated,” “High”
ADX Basic trend strength label Clearer: “Bad Trend,” “Weak Trend,” “Good Trend,” “Strong Trend”
Bias Box ❌ Not included ✅ New! Evaluates momentum + trend to guide LONG, SHORT, or NEUTRAL
Descriptions Minimal ✅ Natural-language, user-friendly summaries in each box

🧠 How to Use This Indicator
This info panel is your real-time market status dashboard. Here’s how to interpret each section:

✅ RSI (Relative Strength Index)
Purpose: Measures momentum.

Use:

"Strong Bullish" or RSI > 60 = positive momentum (consider long setups).

"Strong Bearish" or RSI < 40 = fading strength (consider short setups or caution).

"OVER BOUGHT" / "OVER SOLD" = potential reversal zones.

✅ MACD
Purpose: Shows trend direction and momentum via histogram.

Use:

Trend: "Bullish" or "Bearish"

Histogram:

↑ Growing = accelerating trend (strengthening)

↓ Shrinking = weakening trend

= Flat = indecision or topping

Combined, this helps you assess whether to enter, hold, or exit a trend.

✅ ATR (Average True Range)
Purpose: Measures volatility.

Use:

"Low Volatility" = tighter ranges (may favor mean reversion or breakout building)

"High Volatility" = larger ranges (adjust stops or trade size accordingly)

✅ ADX (Trend Strength)
Purpose: Measures whether a trend is valid/strong.

Use:

ADX < 20: "Bad Trend" = avoid trend trades, possible chop

ADX ≥ 25: "Good"/"Strong Trend" = confirms directional conviction

✅ Trade Bias Box
Purpose: Simplifies decision-making by combining RSI, MACD, and ADX into a single trade suggestion.

Use:

"Favoring LONG": Majority of signals are bullish. Momentum and trend are aligned.

"Favoring SHORT": Bearish confluence; momentum fading + trend pressure.

"NEUTRAL": Mixed signals. Avoid trades or wait for clarity.

📋 Example Use Case
You're scanning a chart and see:

RSI: 64.2 — Strong Bullish (Momentum Up)

MACD: Bullish ↑ — Histogram Growing (0.45)

ATR: 21.8 — Moderate Volatility

ADX: 29.1 — Good Trend

Trade Bias: FAVORING LONG

✅ Interpretation:

Conditions are aligned. The asset has bullish momentum, trend confirmation, and manageable volatility. A long position is favored with confirmation from both momentum (RSI/MACD) and strength (ADX).

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.