MoonBoys BTC Production Cost Daily═════════════════════════════════════════════════════════════
MoonBoys BTC PRODUCTION COST DAILY
═════════════════════════════════════════════════════════════
Track Bitcoin's real-time production cost using comprehensive electricity consumption data and mining economics to identify macro support/resistance zones.
═══ OVERVIEW ═══
This indicator calculates Bitcoin's actual cost of production by combining Cambridge Bitcoin Electricity Consumption Index (CBECI) data with electricity pricing models across different mining eras. It reveals where miners are profitable or underwater, providing crucial macro-level support zones that have historically acted as psychological and economic floors.
Perfect for:
• Identifying long-term accumulation zones
• Understanding miner profitability and capitulation risk
• Spotting macro support levels during bear markets
• Gauging healthy vs. overheated price levels
• Planning dollar-cost averaging strategies
═══ KEY FEATURES ═══
📊 COMPREHENSIVE HISTORICAL DATA
└─ 378 data points spanning 2011-2026
└─ Complete CBECI electricity consumption dataset
└─ Verified accuracy: all dates and values cross-checked
└─ Updates every ~14 days with new CBECI releases
⚡ ELECTRICITY COST MODELING
└─ Pre-June 2019: $0.05/kWh (Early mining era)
└─ Pre-April 2021: $0.04/kWh (China dominance period)
└─ Post-May 2021: $0.05/kWh (China exodus, Western migration)
└─ Post-April 2024: $0.05/kWh (Post-4th halving era)
└─ Fully customizable for scenario analysis
🎯 DUAL COST CURVES
└─ Red line: Pure electricity cost per BTC
└─ Purple line: Total production cost (electricity + operations)
└─ Green line: Miner price (spot + transaction fee revenue)
└─ Pink fill: Zones where miners are losing money
📈 AUTOMATIC HALVING ADJUSTMENTS
└─ Integrates all Bitcoin halvings (2012, 2016, 2020, 2024)
└─ Block reward automatically adjusts: 50 → 25 → 12.5 → 6.25 → 3.125
└─ Accurate per-day BTC production calculations
💰 PROFIT MARGIN TRACKING
└─ Annual profit margin labels (optional)
└─ Shows miner profitability percentage
└─ Appears on chart at electricity cost level
└─ Calculated using 365-day moving average
═══ HOW TO READ IT ═══
┌─────────────────────────────────────────────────────────┐
│ INDICATOR │ MEANING │
├─────────────────────────────────────────────────────────┤
│ 🟢 Green Line │ Miner Price (BTC price + fee revenue)│
│ (above purple) │ → Miners profitable, healthy market │
├─────────────────────────────────────────────────────────┤
│ 🟢 Green Line │ Price below production cost │
│ (below purple) │ → Miner capitulation zone │
│ │ → Strong historical buy signal │
├─────────────────────────────────────────────────────────┤
│ 🔴 Red Line │ Pure electricity cost per BTC │
│ │ → Absolute minimum mining cost │
├─────────────────────────────────────────────────────────┤
│ 🟣 Purple Line │ Total production cost │
│ │ → Break-even for miners (60% elec) │
├─────────────────────────────────────────────────────────┤
│ 🌸 Pink Fill │ Below-cost territory │
│ │ → Miners selling at a loss │
│ │ → Historical accumulation zone │
└─────────────────────────────────────────────────────────┘
═══ TRADING APPLICATIONS ═══
🐻 BEAR MARKET BOTTOMS
→ Price touching or breaking below production cost = high probability bottom
→ Extended periods below cost = miner capitulation
→ Historical bottoms: Nov 2011, Jan 2015, Dec 2018, Nov 2022
→ Strongest buy signal in macro Bitcoin investing
📈 BULL MARKET HEALTH CHECKS
→ Distance above production cost = market heat level
→ 100-200% above cost = healthy bull market
→ 500%+ above cost = euphoric/bubble territory
→ Use as take-profit reference points
💎 ACCUMULATION STRATEGY
→ DCA when price approaches production cost
→ Increase buy size when price drops below cost
→ Maximum allocation when 10-20% below cost
→ Layer entry as margin shows negative percentages
⚖️ SUPPORT/RESISTANCE ZONES
→ Production cost acts as macro support in downtrends
→ Often becomes resistance after prolonged bear markets
→ Price reclaiming cost = bullish structural shift
→ Failed reclaims = continued weakness
🔄 HALVING CYCLE ANALYSIS
→ Cost doubles after each halving (supply cut)
→ Price typically consolidates near new cost basis
→ Historic pattern: break above cost = new bull cycle
→ Track 6-12 months post-halving for trend confirmation
═══ SETTINGS GUIDE ═══
⚡ ELECTRICITY COST ASSUMPTIONS (USD/kWh)
├─ Pre-June 2019 (0.05): Early mining era, hobby miners
├─ Pre-China Exodus 2021 (0.04): Cheap Chinese hydropower
├─ Post-May 2021 (0.05): Western migration, higher costs
└─ Post-April 2024 (0.05): Current era post-4th halving
💡 Adjust these for "what if" scenarios or local costs
💰 ELECTRICITY PERCENTAGE (Default: 60%)
└─ Electricity as % of total mining costs
└─ Remaining 40% = hardware, labor, rent, maintenance
└─ Lower % = higher total cost (more conservative)
└─ Typical range: 50-70%
🎨 VISUAL TOGGLES
├─ Plot BTC Miner Price: Show/hide green line
│ └─ Includes transaction fee revenue per BTC
├─ Plot Production Cost Curves: Show/hide red & purple lines
└─ Plot Annual Profit Margin Labels: Show/hide margin %
└─ Appears annually (Jan 1st) and on last bar
═══ HOW IT WORKS ═══
1. ELECTRICITY CONSUMPTION DATA
• Cambridge Bitcoin Electricity Consumption Index (CBECI)
• Actual network-wide energy usage in TWh (terawatt-hours)
• Updated bi-weekly with real hash rate data
• 378 historical data points (Aug 2011 - Jan 2026)
2. COST CALCULATION FORMULA
Electricity Cost per BTC =
(TWh per year / 365.25 days) ×
(10^9 to convert to kWh) /
(BTC mined per day) ×
(Electricity price per kWh)
Total Cost per BTC =
Electricity Cost / (Electricity % of total costs)
3. BTC MINED PER DAY
Blocks per day (144) × Block reward
• 2009-2012: 50 BTC/block = 7,200 BTC/day
• 2012-2016: 25 BTC/block = 3,600 BTC/day
• 2016-2020: 12.5 BTC/block = 1,800 BTC/day
• 2020-2024: 6.25 BTC/block = 900 BTC/day
• 2024+: 3.125 BTC/block = 450 BTC/day
4. MINER PRICE METRIC
Spot close price + (Transaction fees per day / BTC mined per day)
• Currently simplified with fees = 0
• Shows true revenue per BTC for miners
5. PROFIT MARGIN CALCULATION
((Miner Price / Total Cost) - 1) × 100
• Smoothed with 365-day SMA
• Shows sustainable annual profitability
═══ BEST PRACTICES ═══
✅ DO:
• Use on DAILY timeframe for accuracy (designed for daily data)
• Combine with on-chain metrics (SOPR, MVRV, Puell Multiple)
• Layer with traditional TA for entry/exit timing
• Understand this is AVERAGE global cost (varies by miner)
• Use as macro filter, not short-term trading signal
• Check profit margins during capitulation events
❌ DON'T:
• Use as sole indicator for short-term trades
• Ignore that efficient miners have much lower costs
• Forget that cost is constantly rising (hash rate + difficulty)
• Assume price can't go below cost (it can temporarily)
• Trade based only on cost - liquidity events can wick lower
• Expect instant reversals at cost levels
═══ HISTORICAL PERFORMANCE ═══
Major Bitcoin bottoms near/below production cost:
📅 November 2011
Price: ~$2 | Cost: ~$5
→ 60% below cost, -95% drawdown
→ Bottom signal ✓
📅 January 2015
Price: ~$150 | Cost: ~$180
→ 17% below cost, -85% drawdown
→ Bottom signal ✓
📅 December 2018
Price: ~$3,200 | Cost: ~$3,500
→ 9% below cost, -84% drawdown
→ Bottom signal ✓
📅 November 2022
Price: ~$15,500 | Cost: ~$17,000
→ 9% below cost, -77% drawdown
→ Bottom signal ✓
Pattern: When price trades below production cost, accumulation zone.
═══ TECHNICAL NOTES ═══
• Built with Pine Script v5
• Data source: Cambridge Centre for Alternative Finance (CBECI) Updated Quaterly by Request
• All dates/values verified against official CSV dataset
• Electricity price adjusts based on major mining regime shifts
• Uses series variables for proper historical calculation
• Forward-fills data between CBECI update periods
• Accounts for all 4 halvings in BTC history
═══ DATA PERIODS EXPLAINED ═══
🏭 PRE-JUNE 2019 ($0.05/kWh)
Early mining era, distributed hobby miners, average global cost
🇨🇳 JUNE 2019 - APRIL 2021 ($0.04/kWh)
China dominance period, cheap hydropower in Sichuan/Yunnan
🌍 MAY 2021 - APRIL 2024 ($0.05/kWh)
China ban, Western migration, renewable energy transition
🔮 POST-APRIL 2024 ($0.05/kWh)
4th halving, institutional mining, current era
═══ UNDERSTANDING MINING ECONOMICS ═══
⚡ ELECTRICITY = 60% OF COST (Default)
└─ Largest variable expense for miners
└─ Directly tied to hash rate and difficulty
🔧 OTHER COSTS = 40%
├─ ASIC hardware (depreciation)
├─ Facility rent and cooling
├─ Labor and maintenance
├─ Internet and infrastructure
└─ Insurance and legal
💰 REVENUE SOURCES
├─ Block subsidy (newly minted BTC)
└─ Transaction fees (variable, usually 2-10% of revenue)
📉 MINER BEHAVIOR
• Profitable: Accumulate BTC, expand operations
• Break-even: Hold BTC, maintain operations
• Unprofitable: Forced selling, potential capitulation
═══ ADVANCED USE CASES ═══
🔬 SCENARIO ANALYSIS
→ Adjust electricity costs to model different regions
→ US miners: $0.05-0.07/kWh
→ Nordic miners: $0.02-0.04/kWh
→ Middle East: $0.01-0.03/kWh
📊 COMBINE WITH ON-CHAIN DATA
→ Miner Net Position Change (selling pressure)
→ Hash Ribbons (miner capitulation indicator)
→ Difficulty Ribbon (hash rate compression)
→ Puell Multiple (miner revenue extremes)
🎯 MULTI-TIMEFRAME CONFLUENCE
→ Weekly chart: macro trend and cost support
→ Daily chart: precise entry/exit near cost
→ 4H chart: short-term reactions at cost levels
🌐 CORRELATION TRADING
→ Miner stocks (MARA, RIOT, CLSK) vs BTC cost
→ When BTC < cost, miner stocks typically -30-50%
→ Energy prices (oil, nat gas) affect mining costs
═══ LIMITATIONS & CONSIDERATIONS ═══
⚠️ AVERAGE COST, NOT ACTUAL
• Large miners with PPAs have costs as low as $0.02-0.03/kWh
• Inefficient miners may have costs 2-3x the average
• This shows network-wide average for reference
⚠️ ELECTRICITY PRICE ASSUMPTIONS
• Static periods vs. dynamic energy markets
• Renewable energy % growing = lower average cost over time
• Geographic distribution matters (Texas vs. Kazakhstan)
⚠️ DOESN'T INCLUDE
• ASIC efficiency improvements (more hash/watt)
• Stranded energy and flare gas mining
• Government subsidies or penalties
• Seasonal variations (wet/dry seasons)
⚠️ LAGGING INDICATOR
• CBECI data updates every ~14 days
• Historical data, not forward-looking
• Cost always rises, but at variable rate
═══ DISCLAIMER ═══
This indicator visualizes Bitcoin's estimated global average production cost based on publicly available electricity consumption data and modeled pricing assumptions. It does NOT:
• Guarantee future price movements or bottoms
• Account for individual miner profitability variations
• Include all operational costs (simplified to electricity %)
• Predict miner capitulation or selling pressure
• Constitute financial advice or buy/sell signals
Production cost is A REFERENCE POINT, not a hard floor. Price can and has traded below cost during extreme capitulation events. Market liquidity, macro conditions, and sentiment often override cost-basis logic in the short term.
Always conduct your own research and use proper risk management.
📚 EDUCATIONAL USE ONLY | NOT FINANCIAL ADVICE
═══ RESOURCES ═══
Cambridge Bitcoin Electricity Consumption Index (CBECI)
→ ccaf.io
Bitcoin Mining Economics
→ insights.braiins.com
Block Reward Halving Schedule
→ www.bitcoinblockhalf.com
Difficulty & Hash Rate Charts
→ www.blockchain.com
Understanding ASIC Mining
→ academy.binance.com
Mining Profitability Calculator
→ www.coinwarz.com
On-Chain Miner Metrics
→ cryptoquant.com
Energy & Mining Data
→ hashrateindex.com
═══════════════════════════════════════════════════════════
Built for the Bitcoin community 🚀
Because understanding the cost of production is fundamental analysis 💎
═══════════════════════════════════════════════════════════
Pine Script® 인디케이터






















