تحلیل تکنیکال ari2303 درباره نماد BTC : توصیه به خرید (۱۴۰۳/۱۱/۷)
ari2303

//version=5indicator("Custom Strategy", overlay=true)// تنظیماتlengthRSI = input.int(14, title="RSI Length")lengthEMA = input.int(50, title="EMA Length")overbought = input.int(70, title="Overbought Level")oversold = input.int(30, title="Oversold Level")// محاسبات اندیکاتورهاrsiValue = ta.rsi(close, lengthRSI)emaValue = ta.ema(close, lengthEMA)// شرط ورود به معامله خریدbuySignal = ta.crossover(rsiValue, oversold) and close > emaValue// شرط ورود به معامله فروشsellSignal = ta.crossunder(rsiValue, overbought) and close < emaValue// نمایش سیگنالها روی نمودارplotshape(buySignal, style=shape.labelup, location=location.belowbar, color=color.green, title="Buy Signal")plotshape(sellSignal, style=shape.labeldown, location=location.abovebar, color=color.red, title="Sell Signal")// بکتست ساده (برای نمایش عملکرد)strategy.entry("Buy", strategy.long, when=buySignal)strategy.entry("Sell", strategy.short, when=sellSignal)