İndikator
//@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")