// Sinyal Buy dan Sell berdasarkan kombinasi MACD dan RSI buySignal = ta.crossover(macdLine, signalLine) and rsi < rsiOversold sellSignal = ta.crossunder(macdLine, signalLine) and rsi > rsiOverbought
// Plot sinyal buy/sell pada chart plotshape(buySignal, color=color.green, style=shape.labelup, location=location.belowbar, size=size.small, text="BUY") plotshape(sellSignal, color=color.red, style=shape.labeldown, location=location.abovebar, size=size.small, text="SELL")
// Plot garis MACD dan Signal Line plot(macdLine, color=color.blue, title="MACD Line") plot(signalLine, color=color.red, title="Signal Line")
// Plot RSI di bawah chart hline(rsiOverbought, "Overbought", color=color.red) hline(rsiOversold, "Oversold", color=color.green) plot(rsi, color=color.purple, linewidth=2, title="RSI")
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.