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")
Thông báo miễn trừ trách nhiệm

Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.