ARyaankhan_Offical :
//@version=5
indicator("Top and bottom Hunter", overlay=true)
// Fibonacci Levels
fib_0 = input.float(0.382, "Fib Level 0")
fib_1 = input.float(0.618, "Fib Level 1")
// Calculate Fibonacci levels
fib_range = ta.highest(high, 2) - ta.lowest(low, 2)
fib_level_0 = ta.highest(high, 2) - (fib_range * fib_0)
fib_level_1 = ta.highest(high, 2) - (fib_range * fib_1)
// RSI
rsi_length = input(14, "RSI Length")
rsi_overbought = input(70, "RSI Overbought")
rsi_oversold = input(30, "RSI Oversold")
rsi_value = ta.rsi(close, rsi_length)
// Determine buy and sell conditions
buy_condition = ta.crossover(rsi_value, rsi_oversold)
sell_condition = ta.crossunder(rsi_value, rsi_overbought)
// Plot Fibonacci levels
plot(fib_level_0, color=color.red, linewidth=1)
plot(fib_level_1, color=color.green, linewidth=1)
// Plot RSI
plot(rsi_value, "RSI", color=color.blue)
// Plot buy and sell signals
plotshape(buy_condition, title="Buy Signal", style=shape.triangleup, location=location.belowbar, color=color.green, size=size.small)
plotshape(sell_condition, title="Sell Signal", style=shape.triangledown, location=location.abovebar, color=color.red, size=size.small)
2026-09-07 19:09:37