OPEN-SOURCE SCRIPT
Telah dikemas kini

Confluence Pannel

163
๐Ÿ“Š 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.
Nota Keluaran
๐Ÿง  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)
Nota Keluaran
๐Ÿ”„ 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).

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.