PROTECTED SOURCE SCRIPT

Symbol Seasonality Matrix (w/ BTC Base)

44
Symbol Seasonality Matrix (w/ BTC Base)
Compare monthly performance between Bitcoin and any symbol across time

🧠 Overview
This indicator provides a side-by-side monthly return table of Bitcoin (BTCUSD from Bitfinex) and any selected symbol (e.g., ETH, stocks, etc.). It visualizes seasonality patterns, historical performance shifts, and relative trends in a clean matrix layout with dynamic line overlays.

⚙️ Mechanism
BTC Benchmarking:
BTC monthly returns are always shown as a benchmark against the selected chart symbol.

Monthly ROI Calculation:
For each month, the indicator tracks the open and close price and calculates the monthly return using:
(close_end - close_start) / close_start × 100%
It stores both price and return for BTC and the chart symbol.

Table Structure:
Each year is split into two halves:
2023 (Jan ~ Jun) and 2023 (Jul ~ Dec) for clarity.

Color Coding:

Green for positive months

Red for negative months

Monthly trend lines and labels drawn in consistent colors

Background shading per month helps track seasonality

Plot Modes:

regular: raw price

percent: relative % change from the start of selected period

normalized: base=1 scaling to compare trends

Time Range Selector:
You can define start time and end time for comparison — all logic, including table, plots, and highlights, will focus only on this window.

🧭 How to Use
Set the time range:
Choose a meaningful window such as the past 3 years or 2018–2021 to study behavior.

Compare Symbol vs BTC:

Load BTCUSD in a separate chart for baseline.

Switch to ETHUSD, SPY, or any altcoin/equity to view overlayed performance.

Analyze Seasonality:

Look for months with repeated strong/weak performance (e.g., BTC strong in October).

Compare how your asset aligns with BTC trends or diverges.

Choose View Mode:

Use percent to adjust Y-axis scaling and directly compare relative movements.

Use normalized to detect trend correlation without caring about price level.

🔍 Why It’s Useful
Spot seasonal alpha and align entries with favorable months

See if a symbol outperforms or underperforms BTC consistently

Get price-to-return context visually, not just via numbers

Quickly compare assets in real scale or normalized scale

📌 Tip
Try publishing this to a layout with multiple tickers (ETH, SOL, AAPL) to instantly switch comparisons.

Pair with volume-based or macro indicators to layer signals.

Feragatname

Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.