Bitcoin vs. Gold correlation with lagBTC vs Gold (Lag) + Correlation — multi-timeframe, publication notes
What it does
Plots Gold on the same chart as Bitcoin, with a configurable lead/lag.
Lets you choose how the series is displayed:
Gold shifted forward (+lag on chart) — shows gold ahead of BTC on the time axis (visual offset).
Gold aligned to BTC (gold lag) — standard alignment; gold is lagged for calculation and plotted in place.
BTC 200D Lag (BTC shifted forward) — visualizes BTC shifted forward (like popular “BTC 200D Lag” charts).
Computes Pearson correlations between BTC (no lag) and Gold (with lag) over multiple lookback windows equivalent to:
30d, 60d, 90d, 180d, 365d, 2y (730d), 3y (1095d), 5y (1825d).
Shows a table with the correlation values, automatically scaled to the current timeframe.
Why this is useful
A common macro claim is that BTC tends to follow Gold with a delay (e.g., ~200 trading days). This tool lets you:
Visually advance Gold (or BTC) to see that lead-lag relationship on the chart.
Quantify the relationship with rolling correlations.
Switch timeframes (D/W/M/…): everything automatically stays in sync.
Quick start
Open a BTC chart (any exchange).
Add the indicator.
Set Gold symbol (default TVC:GOLD; alternatives: OANDA:XAUUSD, COMEX:GC1!, etc.).
Choose Lag value and Lag unit (Days/Weeks/Months/Years/Bars).
Pick Visual Mode:
To mirror those “BTC 200D Lag” posts: choose “BTC 200D Lag (BTC shifted forward)” with 200 Days.
To view Gold 200D ahead of BTC: select “Gold shifted forward (+lag on chart)” with 200 Days.
Keep Rebase to 100 ON for an apples-to-apples visual scale. (You can move the study to the left price scale if needed.)
Inputs
Gold symbol: external series to pair with BTC.
Lag value: numeric value.
Lag unit: Days, Weeks, Months (≈30d), Years (≈365d), or direct Bars.
Visual mode:
Gold shifted forward (+lag on chart) → gold is offset to the right by the lag (visual only).
Gold aligned to BTC (gold lag) → standard plot (no visual offset); correlations still use lagged gold.
BTC 200D Lag (BTC shifted forward) → BTC is offset to the right by the lag (visual only).
Rebase to 100 (visual): rescales each series to 100 on its first valid bar for clearer comparison.
Show gold without lag (debug): optional reference line.
Show price tag for gold (lag): toggles the track price label.
Timeframe handling
The study uses the current chart timeframe for both BTC and Gold (timeframe.period).
Lag in time units (Days/Weeks/Months/Years) is internally converted to an integer number of bars of the active timeframe (using timeframe.in_seconds).
Example: on W (weekly), 200 days ≈ 29 bars.
On intraday timeframes, days are converted proportionally.
Correlation math
Correlation = ta.correlation(BTC, Gold_lagged, length_in_bars)
Lookback lengths are the bar-equivalents of 30/60/90/180/365/730/1095/1825 days in the active timeframe.
Important: correlations are computed on prices (not returns). If you prefer returns-based correlation (often more statistically robust), duplicate the script and replace price inputs with change(close) or ta.roc(close, 1).
Reading the table
Window: nominal day label (e.g., 30d, 1y, 5y).
Bars (TF): how many bars that window equals on the current timeframe.
Correlation: Pearson coefficient . Background tint shows intensity and sign.
Tips & caveats
Visual offsets (offset=) move series on screen only; they don’t affect the math. The math always uses BTC (no lag) × Gold (lagged).
With large lags on high timeframes, early bars will be na (normal). Scroll forward / reduce lag.
If your Gold feed doesn’t load, try an alternative symbol that your plan supports.
Rebase to 100 helps visibility when BTC ($100k) and Gold ($2k) share a scale.
Months/Years use 30/365-day approximations. For exact control, use Days or Bars.
Correlations on very short lengths or sparse data can be unstable; consider the longer windows for sturdier signals.
This is a visual/analytical tool, not a trading signal. Always apply independent risk management.
Suggested setups
Replicate “BTC 200D Lag” charts:
Visual Mode: BTC 200D Lag (BTC shifted forward)
Lag: 200 Days
Rebase: ON
Gold leads BTC (Gold ahead):
Visual Mode: Gold shifted forward (+lag on chart)
Lag: 200 Days
Rebase: ON
Compatibility: Pine v6, overlay study.
Best with: BTCUSD (any exchange) + a reliable Gold feed.
Author’s note: Lead-lag relationships are not stable over time; treat correlations as descriptive, not predictive.
Pesquisar nos scripts por "BTC"
特典インジケーター (ボリンジャーバンド+移動平均線)BTCやSP500向けのチャート解析ツールです。
- ボリンジャーバンド(オレンジ上下線、水色中央線)
- EMA5(青線)、EMA25(黄色線)、EMA200(赤線)
使い方のポイント
- トレンド判定: EMA200(赤)より上なら上昇基調、下なら下降基調が優勢。
- 短中期の勢い: EMA5(青)とEMA25(黄)のゴールデンクロス/デッドクロスで勢いの変化を確認。
- ボラティリティと逆張り: ボリンジャーバンドの上限/下限タッチは伸びの継続か反転の初動かを、中央線(基準・水色)復帰でフォロー確認。
- 時間軸: 1時間~4時間は短期、日足は中期のトレンド確認に適合。複数時間軸で整合性を取ると精度が上がります。
ツールの解説
ボリンジャーバンド(Bollinger Bands)
ボリンジャーバンドは、20期間の単純移動平均(SMA)を中央線とし、その上下に標準偏差×2のバンドを配置します。
- 上限バンド:相場の上振れが過熱している可能性を示すレジスタンスライン
- 下限バンド:相場の下振れが過冷却している可能性を示すサポートライン
- バンド幅の拡大:ボラティリティ上昇局面を示唆
- バンド幅の収縮:レンジ相場や転換前の低ボラティリティを示唆
---------------------
EMA5(Exponential Moving Average 5)
EMA5は直近5本の価格により重み付けされた指数移動平均です。
- 非常に短期的な価格の変化を捉え、エントリーや還流のタイミングに敏感
- EMA25とのクロスオーバーで、短期モメンタムの変化を判断
EMA25(Exponential Moving Average 25)
EMA25は中期的なトレンドを表す指数移動平均です。
- EMA5との位置関係でトレンドの強さや方向性を評価
- 価格がEMA25を上回れば短期的な買い優勢、下回れば売り優勢
EMA200(Exponential Moving Average 200)
EMA200は長期トレンドの大局を示す指数移動平均です。
- プロのトレーダーにも重要視されるサポート/レジスタンスライン
- 価格がEMA200を上回ると長期的に強気、市場全体のセンチメント確認に利用
Chart Analysis Tool for BTC and S&P500
- Bollinger Bands (orange upper/lower lines, light blue middle line)
- EMA5 (blue line), EMA25 (yellow line), EMA200 (red line)
BTC / DXY, BTC / US10Y
The combination of the DXY and US02Y can be used to gauge market sentiment and assess the state of the global economy.
When the DXY is rising, it indicates that the U.S. dollar is strengthening relative to other currencies, which can lead to increased risk aversion among investors as the U.S. dollar is often seen as a safe-haven currency.
When the US02Y is rising, it suggests that market expectations for future inflation and interest rate increases are increasing, which can lead to a decrease in the value of riskier assets such as stocks.
In general, the combination of the DXY and US02Y can provide important information on the direction of global market trends and the state of the economy, and as such, they are important indicators to consider when making investment decisions.
USD/JPY/GBP/EUR merged from BTCxFIATBTC market 24h 365D (data from BitFinex BTCxFIAT)
BitUSDJPY = BTCJPY / BTCUSD
BitEURJPY = BTCJPY / BTCEUR
BitGBPJPY = BTCJPY / BTCGBP
BitEURUSD = BTCUSD / BTCEUR
BitGBPUSD = BTCUSD / BTCGBP
BitEURGBP = BTCGBP/ BTCEUR
It may complement the holiday time of forex
this indicator need to apply on BTC chart(virtual currency cahrt)
USDJPY merged from BTCUSD/JPYBTC market 24h 365D
BitUSDJPY = BTCJPY / BTCUSD
It may complement the holiday time of forex
this indicator need to apply on BTC chart(virtual currency cahrt)
XBTUSD & BTCUSD by JPYBTC price converted to JPY is displayed.
The BTC price converted to JPY is displayed.
BTC market-price minus future-price (BTC basis)This is just a subtraction between market-price and future-price. It gets green if positive, else is red. Simple and effective index.
Alexander El-Kady
BTC EMA-VWAP Gap Signals (Cooldown Version)This script is an indicator designed to generate bullish and bearish signals based on the relationship between two technical tools. It evaluates the market only after each candle closes, and then plots visual markers on the chart whenever the required conditions are satisfied.
The indicator also implements a cooldown system, ensuring that once a bullish or bearish signal is generated, the same type of signal cannot appear again for a user-defined duration.
⭐ User Inputs
1. EMA Length
Controls the period used for calculating the Exponential Moving Average.
Default value: 8
You can increase or decrease this to capture slower or faster short-term trends.
2. Bear Gap (Points)
A threshold value affecting when a bearish signal should appear.
Default: 500
You can increase or reduce this depending on how strict or aggressive you want bearish signals to be.
3. Bull Gap (Points)
A threshold for triggering a bullish signal.
Default: 800
A higher number means signals will appear less often, only in stronger situations.
4. Cooldown Duration (Hours)
Determines how long the script must wait before generating another signal of the same type.
Default: 4 hours
Works independently for bullish and bearish signals:
A bearish signal blocks only bearish signals for the cooldown period.
A bullish signal blocks only bullish signals for the cooldown period.
BTC Swing Plan – Levels & ZonesThis indicator draws a structured breakout model for BTCUSD with clearly defined entry levels, stop zones, and four realistic upside targets.
It automatically plots:
Breakout zone
Stop-loss zone
Target 1
Target 2
Target 3
Target 4 (stretch target)
Midlines & color-coded structure boxes
This tool is designed for traders who prefer clean execution levels, disciplined risk management, and realistic price expansion steps—not overly aggressive moon projections.
All levels are fully adjustable from the settings menu.
BTC Macro Trend Framework by ZecheColor Indicator Meaning
🟩 Green Pi Cycle 355 SMA ×2 Long-term macro line (cyclical tops)
🔴 Red Pi Cycle 114 SMA Fast line (Pi Cycle signals)
🟧 Orange EMA 50W Mid-term trend
🔵 Blue EMA 200W Long-term macro bottom / key trend
🟪 Purple SuperTrend Short-term trend / momentum
BTC Runner V1Bitcoin Runner V1 — advanced proprietary visual tool created specifically for long-term Bitcoin cycle research on 1D, 1W and 1M timeframes.
The indicator operates in two fundamentally different visual modes:
Buffett Mode (4-Year Halving Cycle Logic)
Fully built on Bitcoin’s historical ~4-year halving cycle. Using an original mathematical formula and real-time price data, the indicator continuously tracks whether the current cycle has reached the structural point that historically marked the final phase of previous bull markets.
As soon as ALL formula conditions are met for the first time:
- Chart background instantly changes color (green → red at cycle top, red → green at cycle bottom reversal)
- A large permanent non-repainting banner appears showing the exact date and price of the All-Time High (ATH) of the current cycle
- Fixed label “ATH” with price and timestamp is plotted and remains on the chart forever
Examples on charts:
- Chart #1 (20 Jan 2018) — green background still active, bull phase ongoing
- Chart #2 (22 Jan 2018) — exact moment all conditions triggered: background turns red + permanent ATH banner with unchangeable data appears
The same logic works in reverse when a bear cycle ends and a new bull cycle begins.
Cramer Mode (Historical Correction & Drawdown Zones Logic)
Based on over 10 years of personal observation of recurring percentage zones across multiple Bitcoin cycles:
• Major corrections historically reaching up to ~84% from local highs
• Intermediate drawdowns typically 20–55%
When ALL conditions of the multi-stage proprietary formula are satisfied for the first time after a prolonged decline or consolidation, the indicator automatically draws in real time:
1. Large green background banner with bold white text “AP” (Analyzed Point) — marking the price level where, according to many years of observation across several cycles, such deep corrections have historically completed.
2. Dynamic floating label “TP” (Tracked Progress) — a temporary price marker that moves with the current price in real time.
As soon as price touches or exceeds this level, the entire banner instantly and permanently turns blue and the text changes to “AP Completed”.
All banners, colors, and labels appear strictly automatically in live mode and never repaint.
Important:
- The script contains over 500 lines of completely original closed-source code.
- No standard indicators are used (moving averages, Fibonacci, waves, volume, volume profile, etc.). Only pure original mathematical modeling.
- The indicator is intended exclusively for research, educational, and informational purposes.
- It contains no trading recommendations, investment advice, or calls to action of any kind.
Respectful note to TradingView moderators and users:
If any visual elements or logic seem similar to previously published open-source scripts — feel free to use those open-source versions instead.
Bitcoin Runner V1 is a 100% original closed-source tool based on the author’s personal multi-year research and observations.
BTC Spot vs Perpetual CVD Divergence + Delta Confirm + Band FillThis indicator detects real market turning points by comparing Spot vs Perpetual CVD flows to identify forced positioning changes, leverage clean-ups, and true spot absorption.
It tracks normalized CVD for both Spot and Perps, calculates the divergence between them, and applies a dynamic volatility-based threshold to filter noise. Signals only trigger at confirmed pivot points, ensuring accuracy over early false reversals. An optional Delta confirmation layer further validates setups by requiring aggressive market flow in the direction of the pivot reversal.
This tool is not designed for blind entries — it highlights high-probability reversal zones. Best used in combination with VWAP, HTF structure, OI, and funding rate analysis to time optimal entries via pullbacks and momentum confirmation.
✅ Ideal for:
• Identifying local tops & bottoms
• Tracking spot vs leverage dominance
• Trading mean reversion and squeeze setups
• Flow-based scalping
❌ Not intended for:
• Chasing breakouts
• Standalone entry signals without price structure
BTC (4 Hours) - VPIN [VWAP]Volume Synchronized Probability of Informed Trading (VPIN), theory is based on sell and buy orders originating from informed market participants, also known as "smart money."
Republishing again on Bitcoin chart on the 4 hour timeframe because it seems to work pretty remarkably, particularly because crypto liquidity is driven by a subset of large whales.
***Using a regime change indicator seems better in conjunction as it seems this indicator marks buy signal from large short covering as well
Educational purpose only
BTC Key Support Levels (True Market Mean, Realized Price, MVRV)Bitcoin Key Onchain Support Levels + Moving Averages
This indicator combines critical Bitcoin on-chain metrics with traditional technical analysis to identify key support levels and price trends. It's designed to help traders and investors understand Bitcoin's fundamental value zones and market positioning.
Key Metrics Included:
On-Chain Support Levels:
True Market Mean (Active Coins) - Blue Line
Calculates investor capital (Realized Cap minus Thermocap) divided by active supply (coins moved in last year)
Represents the average cost basis of active market participants
Historically acts as strong support during bull markets
True Market Mean (Free Float) - Green Line
Same investor capital calculation but divided by free float supply
Provides a more conservative support estimate
Useful for identifying extreme value zones
Realized Price - Purple Line
The average price at which all bitcoins last moved on-chain
Represents the aggregate cost basis of all Bitcoin holders
Historical major support level during bear markets
Delta Realized Price - Red Line
Realized Price minus its all-time average
Helps identify when Bitcoin is trading below or above its historical average cost basis
Useful for spotting macro trend shifts
MVRV 0sd (Mean MVRV) - Yellow Line
Price level where Market Value equals the historical average MVRV ratio times Realized Value
Represents "fair value" based on Bitcoin's historical valuation patterns
Strong dynamic support/resistance level
Traditional Moving Averages:
50 Day SMA - White Dotted Line
Short-term trend indicator
Common entry/exit signal for swing traders
200 Day SMA - White Dashed Line
Long-term trend indicator
Classic bull/bear market dividing line
50 Week SMA - Orange Dotted Line
Medium-term trend on weekly timeframe
Historically strong support in bull markets, some traders use as dividing line between bull and bear markets
200 Week SMA - Orange Dashed Line
Long-term weekly trend
Very rarely breached; considered ultimate bottom indicator representing the deepest possible value for long term investors
How to Use This Indicator:
For Long-Term Investors:
Look for price approaching the Red (Delta Realized Price) or Purple (Realized Price) lines during corrections as potential accumulation zones
The 200 Week SMA (orange dashed) has historically marked cycle bottoms
When price is above the Blue line (True Market Mean - Active), the bull market is typically healthy
For Traders:
Use the moving averages for trend confirmation and entry/exit signals
The Yellow line (MVRV 0sd) often acts as dynamic support/resistance
Watch for price interactions with the Blue line during consolidations
Cross-referencing on-chain levels with moving averages provides high-probability trade setups
Market Cycle Context:
Bull Market: Price typically stays above the Yellow and Blue lines
Bear Market: Price often trades between Purple (Realized Price) and Red (Delta Realized Price)
Extreme Value: Price near or below Red line and 200 Week SMA
Overheated: Price significantly above all on-chain metrics
Technical Notes:
This indicator uses real Bitcoin on-chain data including:
Realized Cap from CoinMetrics
Supply and active supply metrics from Glassnode
Block mining data and transaction fees
Thermocap calculation (cumulative security spend)
All calculations are performed on daily data and maintain consistency across different chart timeframes. The on-chain metrics provide fundamental value floors that complement traditional technical analysis.
Best Practices:
Use on logarithmic scale for better visualization across Bitcoin's entire price history
Most effective on daily, weekly, and monthly timeframes
Combine with volume analysis and other indicators for confirmation
On-chain levels are slow-moving; don't expect daily precision
Historical support levels are not guarantees of future performance
BTC Dual Cycle: Stats DashboardOverview
"Price takes the elevator down, but takes the stairs up."
This indicator is a macro-analysis tool designed to visualize the true duration of Bitcoin’s market cycles. Unlike standard oscillators that focus on short-term price action, the Macro Cycle Tracker filters out the noise to answer two fundamental questions:
Are we in a phase of Expansion (Price Discovery)?
Are we in a phase of Recovery (Repairing the damage of a crash)?
It visually separates the market into two distinct regimes based on a configurable drawdown threshold (default: -50%) and provides real-time statistics on how long these phases historically last.
How It Works
The script tracks the All-Time High (ATH) and divides market history into two colored zones:
🟢 The Green Zone (Expansion / Price Discovery)
Trigger: Starts immediately when Bitcoin breaks the previous ATH.
Meaning: The market is healthy, profitable, and exploring new valuation levels.
End: The zone ends when price drops by 50% (configurable) from the cycle top.
🔴 The Red Zone (Recovery / Capitulation)
Trigger: Starts when price drops below the 50% threshold from the peak.
Meaning: The asset is "underwater." This zone remains active persistently—even during relief rallies—until the previous ATH is fully reclaimed.
Philosophy: A cycle is not over until the damage is repaired.
Key Features
Cycle Timer: Displays the exact number of days passed for every historical cycle directly on the chart.
Live Counter: Shows the current duration of the active phase (e.g., "ZONE GREEN: 450 Days...").
Statistical Dashboard: A table in the bottom-right corner automatically calculates the Mean and Median duration (in days) for both Green and Red phases. This allows you to compare the current cycle against historical averages.
How to Use
For Investors (HODLers): Use the Red Zone to understand the "Time Cost" of a bear market. It helps visualize that recovery takes patience and that price action below the old ATH is merely accumulation.
For Analysts: Use the Dashboard statistics to project potential cycle turning points based on historical median durations.
Settings
Drop Percent (%): Default is 50%. This defines the "Crash" threshold. You can adjust this to 20% or 30% for more sensitive cycle detection.
Text Size: Adjust the size of the dashboard text to fit your screen resolution.
Disclaimer: This tool is for educational purposes only and does not constitute financial advice. Past performance is not indicative of future results.
BTC -50% Crash to Recovery ZoneGeneral Overview This is a macro-analysis tool designed to visualize the true duration of Bitcoin’s "Suffering & Recovery Cycles." Unlike standard oscillators that only signal oversold conditions, this script highlights the entire timeline required for the market to flush out leverage and return to All-Time Highs (ATH).
Operational Logic The algorithm tracks Bitcoin’s historical All-Time High (ATH).
The Trigger: It activates automatically when the price drops 50% below the last recorded ATH.
The "Recovery Zone": Once triggered, the chart background turns red (indicating a "Drawdown" state). This zone remains active persistently, even during intermediate relief rallies.
The Reset: The zone deactivates only when the price breaks above the previous ATH, marking the official start of a new Price Discovery phase.
How to Read It
Red Background: We are officially in a Bear Market or Recovery Phase. The asset is technically "underwater." For the long-term investor with a low time preference, this visually defines the accumulation window.
Red Horizontal Line: Indicates the "Target." This is the exact price level of the old ATH that Bitcoin must reclaim to close the bearish cycle.
No Background Color: We are in Price Discovery. The market is healthy and pushing for new highs.
The Financial Lesson This indicator visually demonstrates a fundamental market truth: "Price takes the elevator down, but takes the stairs up." It shows that after a halving of value (-50%), Bitcoin may take months or years to recover previous levels, helping investors filter out the noise of short-term pumps that fail to break the macro-bearish structure.
BTC BRD – Bullet-Proof Reversal DetectorThis indicator identifies true market reversals by analyzing raw price structure instead of traditional lagging indicators. It tracks how Bitcoin (and any crypto asset) naturally shifts direction by detecting confirmed swing points, followed by a structural break in the opposite direction. A bullish signal appears when price forms a higher low and then breaks above the previous structural high; a bearish signal forms when price creates a lower high followed by a break below the previous structural low.
Because it uses pure market structure, every signal reflects an actual change in trend direction, not a temporary pullback or indicator noise. This makes the tool highly reliable across all timeframes — from 1 minute scalping to multi-hour swing setups. The result is a clean, noise-free view of where the market truly reverses, giving traders clear confirmation points to plan entries, exits, or risk management.
BTC CB Discount / PremiumThe scripts shows the difference between BTCUSD on Coinbase and BTCUSDT on Binance - also known as CB Premium & Discount.
BTC Bull/Bear marketThis indicator plots the 350-period Simple Moving Average (SMA) calculated on the Daily ("D") timeframe.
he color of the SMA line is determined by the closing price of the 2-Week ("2W") timeframe.
1. It fetches the 350-day SMA value (`sma350_daily`).
2. It checks where the *last closed* 2-Week candle finished relative to this SMA line.
3. If the 2W candle closed *above* the 350 SMA, the line is colored GREEN.
4. If the 2W candle closed *below* the 350 SMA, the line is colored RED.
This helps to visualize the long-term trend (350 SMA) confirmed by a higher (2W) timeframe bias, using non-repainting logic (`close `) for the color signal.
BTC MULTI-RSrelative strength 💪 its showing strenth relative 21 55 123 period of crypto....against btc...
BTC Probabilistic System, 1h TF.This indicator calculates a probabilistic score based on enveloppes. Each enveloppe contributes to a combined score, weighted by its relative period and the angle of the projected MA. The output, Prob Score, ranges from -100 (maximum resistance) to +100 (maximum support), providing a visual indication of market bias.
Use Case:
Provides traders with a probabilistic view of support/resistance zones and market trend strength.
Caution :
Shows probabilistic scores rather than guaranteed signals.
Does not provide buy/sell alerts automatically.
Uses historical SMA projections, which may not predict future price action.
BTC Flow Dashboard : Spot Premium + OI + Funding + Cycle SignalsSpot Premium vs Perpetual Basket (%):
Tracks how aggressively perps are trading relative to spot, a leading indicator of speculative activity and leverage buildup.
Aggregated Open Interest Z-Score:
A normalized view of OI expansion/contraction across major exchanges (Binance, BitMEX, Bybit, Kraken, etc.), highlighting when leverage enters overheated zones.
Composite Funding Rate Analysis:
Calculates a TWAP-smoothed funding composite across major venues, with optional APR scaling, showing where perpetual markets are paying for long or short exposure.
Confluence Signal Engine:
Dynamically flags bullish or bearish market conditions based on premium behavior and leverage environment — including over-leverage warnings that often precede volatility spikes.
Extreme Cycle Tops & Bottoms (Experimental):
Optional signal module that highlights historically significant extremes (e.g., 2020 bottom or 2021 top) based on statistical Z-score thresholds across the three core metrics.
Notes & Tips
Works best on weekly or monthly timeframes for macro cycle analysis.
Daily and 3D views provide short-term leverage context but may produce more frequent signals.
The Extreme Signal Engine is experimental — not a trading signal on its own, but a contextual tool to support macro decision-making.






















