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提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。