Skip to content

Instantly share code, notes, and snippets.

@machard
Last active June 25, 2025 19:58
Show Gist options
  • Save machard/44ddd17daa16feb123ef99873211c050 to your computer and use it in GitHub Desktop.
Save machard/44ddd17daa16feb123ef99873211c050 to your computer and use it in GitHub Desktop.
bitcoin zero obsolete
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
# Date range: centered around 2025
dates = pd.date_range(start="2016-01-01", end="2032-01-01", freq="M")
n = len(dates)
center_index = n // 2 # Peak at mid-2025
# Time variable: peak at center
x = np.linspace(-6, 6, n)
sigmoid = 1 / (1 + np.exp(-x))
sigmoid_derivative = sigmoid * (1 - sigmoid)
# Prophetic price path (clean sigmoid derivative scaled)
price_min, price_max = 1000, 100000
btc_prophesized = price_min + (sigmoid_derivative - sigmoid_derivative.min()) / (sigmoid_derivative.max() - sigmoid_derivative.min()) * (price_max - price_min)
# Simulated BTC price: log-shaped curve peaking at same spot, with chaos
log_like = np.exp(-0.5 * (x ** 2)) # Peak centered like sigmoid derivative
noise = np.random.normal(0, 0.15, n)
real_btc_price = log_like * (1 + noise)
real_btc_price = price_min + (real_btc_price - real_btc_price.min()) / (real_btc_price.max() - real_btc_price.min()) * (price_max - price_min)
# Clip and smooth volatility a bit
real_btc_price = np.clip(real_btc_price, price_min, price_max)
# Plot
plt.figure(figsize=(14, 7))
# Plot real BTC price
plt.plot(dates, real_btc_price, color='gray', linewidth=2, linestyle=':', label="☁️ Real Bitcoin Price (Distorted Reflection)")
# Plot prophetic sigmoid derivative
plt.plot(dates, btc_prophesized, color='crimson', linewidth=3, label="⚡ Sigmoid of Truth (Prophetic Path) ⚡")
# Aesthetic
plt.title("📜 The Bitcoin Prophecy 📜\nOnly One Peak Is Divine", fontsize=18, weight='bold')
plt.xlabel("Year")
plt.ylabel("Price (USD)")
plt.legend()
plt.grid(True, linestyle='--', alpha=0.4)
plt.xticks(rotation=45)
plt.tight_layout()
# plt.style.use('seaborn-dark-palette')
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment