تحلیل تکنیکال Jaguars25jp درباره نماد ATOM در تاریخ ۱۴۰۳/۱۲/۳۰

//version=5 strategy("استراتژی سفارشی شکست روند", overlay=true) // تنظیمات ورودی emaShortLength = input(20, "میانگین متحرک نمایی کوتاه") emaLongLength = input(50, "میانگین متحرک نمایی بلند") atrLength = input(14, "دوره ATR") atrMultiplier = input(1.5, "ضریب ATR") rsiLength = input(14, "دوره RSI") rsiOverbought = input(70, "RSI اشباع خرید") rsiOversold = input(30, "RSI اشباع فروش") // محاسبه اندیکاتورها emaShort = ta.ema(close, emaShortLength) emaLong = ta.ema(close, emaLongLength) atrValue = ta.atr(atrLength) rsiValue = ta.rsi(close, rsiLength) // شرایط ورود و خروج bullishBreakout = ta.crossover(emaShort, emaLong) and close > emaShort and rsiValue > 50 bearishBreakout = ta.crossunder(emaShort, emaLong) and close < emaShort and rsiValue < 50 // حد ضرر و سود (بر اساس ATR) longStopLoss = close - (atrMultiplier * atrValue) shortStopLoss = close + (atrMultiplier * atrValue) longTakeProfit = close + (2 * atrMultiplier * atrValue) shortTakeProfit = close - (2 * atrMultiplier * atrValue) // اجرای معاملات strategy.entry("Long", strategy.long, when=bullishBreakout) strategy.exit("Long Exit", from_entry="Long", stop=longStopLoss, limit=longTakeProfit) strategy.entry("Short", strategy.short, when=bearishBreakout) strategy.exit("Short Exit", from_entry="Short", stop=shortStopLoss, limit=shortTakeProfit) // نمایش روی نمودار plot(emaShort, color=color.blue, title="میانگین متحرک نمایی کوتاه") plot(emaLong, color=color.red, title="میانگین متحرک نمایی بلند") plotshape(series=bullishBreakout, location=location.belowbar, color=color.green, style=shape.labelup, title="خرید") plotshape(series=bearishBreakout, location=location.abovebar, color=color.red, style=shape.labeldown, title="فروش")