ArkEthereum Classic / TetherUS PERPETUAL CONTRACTBINANCE:ETCUSDT.Palirezakaramii9797//@version=5 indicator("EMA + RSI Strategy", overlay=true) // EMAها ema20 = ta.ema(close, 20) ema50 = ta.ema(close, 50) // RSI rsi = ta.rsi(close, 14) // رسم EMA plot(ema20, color=color.yellow, title="EMA 20") plot(ema50, color=color.blue, title="EMA 50") // رسم RSI در یک پنجره جدا rsiPlot = plot(rsi, color=color.purple, title="RSI") hline(70, "Overbought", color=color.red) hline(30, "Oversold", color=color.green) // شرایط ورود (Buy) → روند صعودی + RSI از محدوده اشباع فروش برگشته buySignal = ta.crossover(ema20, ema50) and rsi < 40 // شرایط خروج (Sell) → روند نزولی + RSI از محدوده اشباع خرید برگشته sellSignal = ta.crossunder(ema20, ema50) and rsi > 60 // نمایش فلشها plotshape(buySignal, title="Buy Signal", location=location.belowbar, color=color.green, style=shape.labelup, text="BUY") plotshape(sellSignal, title="Sell Signal", location=location.abovebar, color=color.red, style=shape.labeldown, text="SELL")