OPEN-SOURCE SCRIPT

BTC - PRISM: Proportional Risk & Institutional Sentiment Model

362
PRISM: Proportional Risk & Institutional Sentiment Model

Overview
PRISM is a multi-dimensional quantitative suite engineered to identify structural turning points in Bitcoin market cycles. While traditional indicators often suffer from "regime drift" as market dynamics evolve—such as the transition from a retail-centric environment to the institutional ETF era—PRISM utilizes a Consensus Ensemble Engine to maintain precision across fragmented market conditions. By synchronizing ten distinct data pillars across On-Chain health, TradFi flows, and global liquidity, PRISM provides a singular, high-conviction risk score between 0 and 100.

The Core Engine: Classical vs. Adaptive Modeling
The unique mathematical foundation of PRISM is its dual-processing architecture. Every data pillar is calculated through two independent quantitative philosophies before being synthesized into the final consensus score.

  • The Classical Model (Fixed Baseline): Built on Linear Normalization, this model utilizes absolute historical boundaries (e.g., fixed Mayer Multiple and MVRV extremes). It asks: "How extreme is this value relative to the blow-off tops of 2013, 2017, and 2021?" This model provides a "Hard Anchor" for the script, ensuring it remains grounded in Bitcoin’s long-term history.
  • The Adaptive Model (Statistical Rolling Baseline): Built on Z-Score Standardization, this model calculates the distance of the current value from its own 365-day mean in units of Standard Deviation. It asks: "How extreme is this value relative to the market behavior of the last year?" This is critical for the modern era, where institutional floors and floors are evolving beyond historical precedents.


The Consensus Blend Mechanism
Through the Model Blend input, users can calibrate the "weight" of these two philosophies. This effectively allows PRISM to monitor 20 data streams simultaneously.
  • 0.0 (Classical): Prioritizes historical fixed targets.
  • 0.6 (Professional Standard): My recommended default 40/60 blend. This provides a slight bias toward modern statistical sensitivity while maintaining a strong 40% anchor in historical cycle data.
  • 1.0 (Adaptive): Focuses entirely on modern statistical deviations.


The Three-Stage Sell Engine: Saturation, Rollover, and Hysteresis
Unlike standard oscillators that trigger on a single spike, PRISM uses a logic-gated "Sell Engine" to differentiate between a healthy rally and terminal exhaustion.

  • Stage 1: Statistical Saturation (The Dots): This frequency-based signal monitors a lookback window (default 30 days). If the PRISM Score remains in the "Scorched Zone" (>75) for a specific density (default 20 out of 30 bars), a Red Dot prints at the bottom. This pinpoint identifies Liquidity Exhaustion—the point where "dry powder" is gone and the market is structurally overextended.
  • Stage 2: Momentum Rollover (The Hook): The engine monitors the first derivative (slope) of our ALMA signal line. A Critical Sell State is triggered if the score is in the extreme zone (>80) and the slope turns negative, or if the raw score crosses under the signal line (The Hook).
  • Stage 3: Hysteresis State-Machine (The Glow): To eliminate "signal flickering," we use a Hysteresis Glow. Once the Critical Sell State is activated, the engine locks into a defensive posture. The red background shading remains active until the PRISM score drops below the 65-point "Cooling Zone," ensuring you do not re-enter during a distribution phase.


The ALMA Advantage (Arnaud Legoux Moving Average)
To provide the most responsive signal line possible, we utilize the ALMA rather than traditional EMAs.
  • Gaussian Weighting: The ALMA applies weights based on a Normal Distribution, allowing the signal line to "hug" the 10-pillar composite score with significantly less lag than a standard moving average.
  • Calibrated Response: PRISM is tuned with a 0.85 Offset and Sigma of 6, specifically optimized to catch momentum rollovers at the daily macro level.


The 10 Data Pillars: A 360-Degree Market Analysis
Every pillar represents a different vector of the Bitcoin economy, calculated twice and blended based on your settings:
  • 1. BEAM (Cycle Mean): Tracks price deviation from the 1400-day baseline; a proxy for the Bitcoin Power Law.
  • 2. MVRV Z-Score (Network Profitability): Measures the "Unrealized Profit" across the network to find profit-taking extremes.
  • 3. Metcalfe Utility (Active Addresses): Ensures price growth is supported by actual network usage utility.
  • 4. HODL-Wave Distribution (RHODL): Monitors the transfer of supply from "Smart Money" HODLers to new retail speculators.
  • 5. AXIS Momentum (Dual-Speed RoC): Synthesizes dual-speed rates of change to filter out noise and find structural trend shifts.
  • 6. Mayer Premium (Institutional Baseline): Measures extension from the 200-day institutional cost-basis.
  • 7. Institutional SSR (Liquidity Check): Compares BTC market cap to the total supply of USDT, USDC, DAI, and PYUSD to verify buying power.
  • 8. Money Flow (CMF Proxy): Volume-weighted tracking of accumulation vs. quiet institutional distribution.
  • 9. ETF Absorption Intensity ($IBIT/FBTC): A modern pillar tracking Wall Street demand relative to total market volume—essential for the 2026 regime.
  • 10. Macro RSI (Cycle Saturation): High-timeframe relative strength monitoring for absolute velocity exhaustion.


User Inputs & Technical Configuration
To provide maximum flexibility for different trading styles, PRISM allows for some customization of its core engines:

  • Model Blend (0.0 - 1.0): The master slider for the Consensus Engine. Set to 0.0 for a purely historical "Classical" view, 1.0 for a purely statistical "Adaptive" view, or 0.6 for the recommended professional consensus.
  • Heat Lookback (Days): The window used for the Saturation Dots. A higher number (e.g., 35) requires a longer period of overheating before a signal triggers, filtering out short-term "fake-outs."
  • Min Bars for Saturation (Density): The number of "Scorched" bars required within the lookback to trigger the Red Dots. Setting this to 20 (out of /30 (66% density)) provides a high-conviction signal for cycle tops.
  • Pro Lookback (Days): The period used by the Adaptive Model to calculate its rolling mean and standard deviation. 365 days is the standard for macro analysis.
  • ALMA Smoothing: Adjusts the "Signal Line" (Orange). We use the Arnaud Legoux Moving Average. The lookback window can be adjusted in this field.


PRISM Dashboard
The bottom-right dashboard provides a real-time "Heartbeat" of the Bitcoin network:
  • Score: The final aggregate value of all 10 pillars (0–100). This is the "Mood" of the market.
  • Heat Density: A live counter (e.g., 15 / 30) showing how many days in the current window have been "Scorched."
  • Days to Exit: A dynamic countdown. It tells you exactly how many more "Hot" days are required before the Saturation Dots begin to print.
  • Data Status: A vital monitoring row. If a ticker like IBIT or $MVRV becomes stale (no updates in 5 days) or is missing from your exchange, it will flag the specific ticker in Red to ensure you never trade on broken data.


Best Practices for Use
  • Timeframe: This indicator is strictly designed for the 1D (Daily) Chart. Using it on lower timeframes (1H, 4H) will result in "noisy" data and is not recommended for macro cycle detection.
  • The "Double Red" Confirmation: The highest probability exits occur when the Red Shading (Glow) and the Red Dots (Saturation) appear simultaneously. This confirms that both momentum has rolled over and liquidity is exhausted.
  • Data Integrity: Always check the Data Status in the dashboard. If you see a "STALE" or "MISSING" tag, the score may be skewed due to an external provider lag.


Disclaimer: Past performance is not indicative of future results. Trading Bitcoin involves significant risk. This script is for research and educational purposes and does not constitute financial advice.

Pernyataan Penyangkalan

Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.