// Kondisi untuk sinyal beli dan jual buySignal = crossover(rsi, rsiOversold) and crossover(price, lowerBB) sellSignal = crossunder(rsi, rsiOverbought) and crossunder(price, upperBB)
// Plot sinyal pada grafik plotshape(series=buySignal, title="Sinyal Beli", location=location.belowbar, color=color.green, style=shape.triangleup, text="Beli") plotshape(series=sellSignal, title="Sinyal Jual", location=location.abovebar, color=color.red, style=shape.triangledown, text="Jual")
// Menampilkan RSI dan Bollinger Bands pada grafik hline(rsiOverbought, "Overbought", color=color.red) hline(rsiOversold, "Oversold", color=color.green) plot(rsi, "RSI", color=color.blue) plot(upperBB, "Upper BB", color=color.red) plot(lowerBB, "Lower BB", color=color.green)