PROTECTED SOURCE SCRIPT

ROMAN INDI

26
This script creates an on-chart information panel / watermark that summarizes the most important technical and contextual data for the current symbol in one place. It’s designed as a compact trading dashboard overlay, fully configurable from the Inputs menu.

1. General instrument info

The table shows:

Company name + market cap

Market cap is calculated from shares_outstanding_total * close and formatted in M / B / T.

Ticker + timeframe (e.g. AAPL, 1D, AAPL, 1H, etc.).

Sector & industry (when available from syminfo).

You can choose the panel position (Top/Middle/Bottom & Left/Center/Right) and text size/color from the inputs.

2. Volatility & stop-loss (ATR block)

Calculates ATR(14) and the ATR as % of price.

Colors ATR with an emoji:

🔴 = high volatility (above red threshold)

🟡 = medium

🟢 = low

Computes a dynamic stop loss:

Source price can be: Today / Yesterday / 2 Days Ago.

Stop = base price − ATR × user-defined multiplier.

Also calculates the distance from close to stop in percent and marks it:

🟢 if distance > 5%

🟡 if distance > 2%

🔴 otherwise

When price crosses the stop level (or if the stop is very tight and marked 🔴), a label is plotted just ahead of the current bar:

Shows either “SELL” (if close ≤ stop) or the stop price.

3. Moving averages distance row

Calculates SMA 50 / 150 / 200.

Shows a single row:

MA50: +X.XX% | MA150: +Y.YY% | MA200: +Z.ZZ%

Values are the percentage distance between close and each MA (positive/negative).

This row can be toggled on/off via the inputs.

4. Volume analysis

Uses a 20-period average volume as baseline.

Computes:

Absolute volume difference vs. 20-SMA (in K/M units).

Percent difference vs. average.

Adds:

🔴 if current volume < average

🟡 if up to +10% above average

🟢 if more than +10% above average

Detects streaks of rising or falling volume (last 3 bars):

⬆️ / ⬆️⬆️ / ⬆️⬆️⬆️ for 1–3 bars of increasing volume

⬇️ / ⬇️⬇️ / ⬇️⬇️⬇️ for 1–3 bars of decreasing volume

Final row example:
ΔVol: 1.25M (15.32%) 🟢 ⬆️⬆️

5. Earnings countdown

Uses earnings.future_time to detect the next earnings date.

Shows:
Earnings: X days remaining
(only if there is a future earnings date and the option is enabled).

6. RSI (momentum)

Calculates RSI(14).

Displays:

Current RSI value.

Trend arrow vs. previous bar: ⬆️ / ⬇️ / (no arrow).

Emoji color:

🔴 when RSI > 70 (overbought)

🔴 when RSI < 30 (oversold)

🟢 otherwise

Example:
RSI (14): 63.25 🟢 ⬆️

7. CCI (trend strength & short-term swings)

Calculates CCI(14) on hlc3.

Tracks the direction of CCI (up / down / flat) and interprets it:

If CCI is falling:

100 → “Overbought 🔴”

0 to 100 → “Negative Momentum 🟡”

−100 to 0 → “2-4 Days Down 🟠”

< −100 → “Oversold 🔴”

If CCI is rising:

100 → “Overbought 🔴”

0 to 100 → “2-4 Days Up 🟢”

−100 to 0 → “Building Momentum 🟡”

< −100 → “Oversold 🔴”

The row shows value, direction arrow and text interpretation.

Example:
CCI (14): -45.32 🟡 ⬆️ Building Momentum 🟡

8. Market context: VIX & Bitcoin row

Tracks:

VIX (CBOE:VIX)

Bitcoin (BINANCE:BTCUSDT)

If the current chart is directly on one of these symbols, it uses the live close; otherwise it pulls the data via request.security.

Shows last price of VIX and BTC plus trend arrows based on the last 3 closes (up/down streak).

Example:
VIX: 15.23 ⬆️ | BTC: 113,000 ⬇️⬇️

Summary

In short, ROMAN INDICATOR is an overlay info-panel that combines:

Instrument fundamentals (name, sector, industry, market cap)

Volatility & ATR-based stop-loss engine

Distance from major moving averages (50/150/200)

Volume vs. average with streak detection

RSI & CCI with clear emoji-based interpretation

Earnings countdown (days to next report)

Global context via VIX + Bitcoin row

Everything is configurable in the Inputs, making it a convenient single-glance trading dashboard on top of your chart.

คำจำกัดสิทธิ์ความรับผิดชอบ

ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน