OPEN-SOURCE SCRIPT

Bitcoin HODL Indicator

104
// 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)

إخلاء المسؤولية

لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.