// Sinyal beli dan jual berdasarkan gabungan indikator buySignal = ta.crossover(rsiValue, oversoldLevel) and close > ma and macdLine > signalLine sellSignal = ta.crossunder(rsiValue, overboughtLevel) and close < ma and macdLine < signalLine
// Plot tanda beli dan jual pada chart plotshape(series=buySignal, location=location.belowbar, color=color.green, style=shape.labelup, text="BUY") plotshape(series=sellSignal, location=location.abovebar, color=color.red, style=shape.labeldown, text="SELL")
// Eksekusi buy dan sell if (buySignal) strategy.entry("Buy", strategy.long)
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.