OPEN-SOURCE SCRIPT
BTC vs US2000 – Ratio & Spread (BarDai v6 CLEAN)

📌 How the Indicator Works
BTC vs US2000 — Ratio & Spread
The indicator shows:
who is stronger right now — crypto-risk (BTC) or equity-risk (US2000 / Russell-2000)
📈 Top Panel — RATIO + Risk Regime Signals
🎯 Ratio (cyan line)
Measures BTC’s relative strength versus US2000:
📈 Ratio rising → BTC outperforming → Risk-ON environment
📉 Ratio falling → BTC underperforming → Risk-OFF environment
📉 EMA (white line)
A smoothed benchmark.
➡ Key signal — when Ratio crosses the EMA
That marks a shift in the risk regime.
🟩🟥 Background Coloring (Risk Mode)
Condition Regime Meaning Trading Logic
Ratio above EMA 🟩 Risk-ON Capital flows into risk assets Favor BTC longs
Ratio below EMA 🟥 Risk-OFF Capital flows out of risk Prefer shorts / hedge / cash
🧭 SpreadNorm — Bottom Panel
🎯 SpreadNorm shows how strong the deviation is:
🟩 Above 0 → BTC risk premium
🟥 Below 0 → Equity-side risk premium (US2000 stronger)
It helps to:
✔ confirm regime signals
✔ filter false crossovers
✔ measure strength of risk move
(Yellow dots mark extreme deviations → mean-reversion potential)
📌 Trading Usage Guide
Scenario Interpretation Action
Ratio above EMA + SpreadNorm green Stable Risk-ON Look for BTC long entries
Ratio below EMA + SpreadNorm red Stable Risk-OFF Avoid aggressive longs
SpreadNorm extreme + yellow dot Reversal potential Take profit / wait for crossover
📌 Best used on 30–60m timeframes for intraday decision making.
🎁 Final Takeaway
The indicator tracks where risk-capital is flowing.
If BTC outperforms equities → we buy BTC.
If BTC underperforms → we don’t buy (or short it).
BTC vs US2000 — Ratio & Spread
The indicator shows:
who is stronger right now — crypto-risk (BTC) or equity-risk (US2000 / Russell-2000)
📈 Top Panel — RATIO + Risk Regime Signals
🎯 Ratio (cyan line)
Measures BTC’s relative strength versus US2000:
📈 Ratio rising → BTC outperforming → Risk-ON environment
📉 Ratio falling → BTC underperforming → Risk-OFF environment
📉 EMA (white line)
A smoothed benchmark.
➡ Key signal — when Ratio crosses the EMA
That marks a shift in the risk regime.
🟩🟥 Background Coloring (Risk Mode)
Condition Regime Meaning Trading Logic
Ratio above EMA 🟩 Risk-ON Capital flows into risk assets Favor BTC longs
Ratio below EMA 🟥 Risk-OFF Capital flows out of risk Prefer shorts / hedge / cash
🧭 SpreadNorm — Bottom Panel
🎯 SpreadNorm shows how strong the deviation is:
🟩 Above 0 → BTC risk premium
🟥 Below 0 → Equity-side risk premium (US2000 stronger)
It helps to:
✔ confirm regime signals
✔ filter false crossovers
✔ measure strength of risk move
(Yellow dots mark extreme deviations → mean-reversion potential)
📌 Trading Usage Guide
Scenario Interpretation Action
Ratio above EMA + SpreadNorm green Stable Risk-ON Look for BTC long entries
Ratio below EMA + SpreadNorm red Stable Risk-OFF Avoid aggressive longs
SpreadNorm extreme + yellow dot Reversal potential Take profit / wait for crossover
📌 Best used on 30–60m timeframes for intraday decision making.
🎁 Final Takeaway
The indicator tracks where risk-capital is flowing.
If BTC outperforms equities → we buy BTC.
If BTC underperforms → we don’t buy (or short it).
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội Quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội Quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.