OPEN-SOURCE SCRIPT
BTC Macro Trend & Valuation [Final Fixed]

This indicator is a comprehensive Bitcoin trading system designed to capture both generational bottoms (Macro) and swing trading opportunities (Trend). It simulates institutional on-chain metrics using high-correlation technical moving averages, allowing users to identify "Deep Value" zones and "Trend Invalidation" levels without requiring paid external data.
The system combines three core components:
1. Macro Bottom Detector (The Purple Floor)
Logic: Simulates the CVDD (Cumulative Value-Days Destroyed) and Realized Price using the 200-Week SMA.
Usage: Historically, this line represents the absolute "hard floor" for Bitcoin price.
Signal: Displays a red "BOTTOM" label when price dips into the deep value zone (default: 5% below the floor), indicating a high-conviction accumulation zone.
2. Bull Market Support Band (The Trend Cloud)
Logic: Simulates the Short-Term Holder Cost Basis using the 20-Week SMA (Green) and 21-Week EMA (Blue).
Usage:
In a Bull Market: This band acts as dynamic support.
In a Bear Market: This band acts as resistance.
Signals:
"DIP" (Yellow Triangle): Appears when the price retests the band during an uptrend but closes above support. Ideal for "buying the dip."
"STOP/EXIT" (Pink Label): Appears when the price closes below the 20W SMA (Green Line), signaling that the bullish trend is broken and it is time to exit or defend capital.
3. Smart Status Dashboard (Top Right)
A real-time information panel that provides:
Macro Status: Are we in "Deep Value," "Fair Value," or "Overheated"?
Current Strategy: Tells you whether to "Buy/Accumulate," "Hold," or "Stay Cash/Stop Loss."
Key Levels: Dynamically displays the exact price you should watch.
In Uptrend: Displays the Stop-Loss price (Green Line).
In Downtrend: Displays the Target Bottom price (Purple Line).
How to Trade with this Script:
Long Term: Accumulate aggressively when price is near the Purple Line ("BOTTOM" signal).
Swing Trade: Enter on Yellow "DIP" signals during a bull run.
Risk Management: Exit positions immediately if the Pink "STOP/EXIT" signal appears.
Disclaimer:
This script is for educational purposes only. It simulates on-chain data using technical analysis proxies. Always do your own research (DYOR).
Macro Bottom Detector: 宏观底部探测器(模拟 CVDD/Realized Price)。
Bull Market Support Band: 牛市支撑带(模拟短手成本)。
Smart Status Dashboard: 智能状态面板(右上角那个表格)。
Key Levels: 关键点位(它会根据趋势自动显示“止损价”或者“抄底目标价”)。
The system combines three core components:
1. Macro Bottom Detector (The Purple Floor)
Logic: Simulates the CVDD (Cumulative Value-Days Destroyed) and Realized Price using the 200-Week SMA.
Usage: Historically, this line represents the absolute "hard floor" for Bitcoin price.
Signal: Displays a red "BOTTOM" label when price dips into the deep value zone (default: 5% below the floor), indicating a high-conviction accumulation zone.
2. Bull Market Support Band (The Trend Cloud)
Logic: Simulates the Short-Term Holder Cost Basis using the 20-Week SMA (Green) and 21-Week EMA (Blue).
Usage:
In a Bull Market: This band acts as dynamic support.
In a Bear Market: This band acts as resistance.
Signals:
"DIP" (Yellow Triangle): Appears when the price retests the band during an uptrend but closes above support. Ideal for "buying the dip."
"STOP/EXIT" (Pink Label): Appears when the price closes below the 20W SMA (Green Line), signaling that the bullish trend is broken and it is time to exit or defend capital.
3. Smart Status Dashboard (Top Right)
A real-time information panel that provides:
Macro Status: Are we in "Deep Value," "Fair Value," or "Overheated"?
Current Strategy: Tells you whether to "Buy/Accumulate," "Hold," or "Stay Cash/Stop Loss."
Key Levels: Dynamically displays the exact price you should watch.
In Uptrend: Displays the Stop-Loss price (Green Line).
In Downtrend: Displays the Target Bottom price (Purple Line).
How to Trade with this Script:
Long Term: Accumulate aggressively when price is near the Purple Line ("BOTTOM" signal).
Swing Trade: Enter on Yellow "DIP" signals during a bull run.
Risk Management: Exit positions immediately if the Pink "STOP/EXIT" signal appears.
Disclaimer:
This script is for educational purposes only. It simulates on-chain data using technical analysis proxies. Always do your own research (DYOR).
Macro Bottom Detector: 宏观底部探测器(模拟 CVDD/Realized Price)。
Bull Market Support Band: 牛市支撑带(模拟短手成本)。
Smart Status Dashboard: 智能状态面板(右上角那个表格)。
Key Levels: 关键点位(它会根据趋势自动显示“止损价”或者“抄底目标价”)。
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。