BINANCE:BTCUSDT   Bitcoin / TetherUS
//@version=5
indicator(title="Custom Indicator", shorttitle="CI", overlay=true)

// Input parameters
length = input(14, title="Length")
src = close

// Calculate Fibonacci moving averages
fib20 = ta.sma(src, 20)
fib50 = ta.sma(src, 50)
fib100 = ta.sma(src, 100)

// Calculate RSI
rsi = ta.rsi(src, length)

// Fetch Fear and Greed Index (you'll need to find a source for this data)
fear_greed_index = request.security("INDEX:FGI", "1h", close)

// Plotting
plot(fib20, color=color.blue, linewidth=2, title="Fib 20")
plot(fib50, color=color.green, linewidth=2, title="Fib 50")
plot(fib100, color=color.red, linewidth=2, title="Fib 100")
hline(50, "Midline", color=color.gray)

// Plot RSI
plot(rsi, color=color.orange, linewidth=2, title="RSI")

// Plot Fear and Greed Index
plot(fear_greed_index, color=color.purple, linewidth=2, title="Fear/Greed Index")
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.