OPEN-SOURCE SCRIPT

Bitcoin HODL Indicator

105
// Bitcoin Buy & Hold Indicator (HODL Signal)
//version=5
indicator("Bitcoin HODL Indicator", overlay=true)

// Moving Averages
ma_200w = ta.sma(close, 1400) // Approximate 200-week MA for daily chart
plot(ma_200w, color=color.blue, linewidth=2, title="200WMA")

// MVRV Z-Score Approximation (Using RSI as a Proxy for Simplicity)
mvrv = ta.rsi(close, 90)
low_mvrv = 25 // Adjust based on BTC history
high_mvrv = 70 // Overbought zone

// Pi Cycle Bottom Approximation
ma_111 = ta.sma(close, 111)
ma_350x2 = ta.sma(close, 350) * 2

// Buy Signal Logic
buy_signal = ta.crossover(close, ma_200w) or (mvrv < low_mvrv and ta.crossover(ma_111, ma_350x2))

// Plot Buy Signals
plotshape(buy_signal, location=location.belowbar, color=color.green, style=shape.labelup, size=size.small, title="BUY Signal")

// Alerts
alertcondition(buy_signal, title="Bitcoin Buy Signal", message="Bitcoin is in an accumulation zone! 🚀")

// Background Color for Accumulation Zones
bgcolor(buy_signal ? color.green : na, transp=90)

Clause de non-responsabilité

Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.