RUNE / TetherUS

مؤشر ياسر

//version=5
indicator("KQAI - Kupkom Quantitative AI Indicator", overlay=true)

// إعداد المدخلات
lengthEMA = input(21, title="EMA Length")
lengthRSI = input(14, title="RSI Length")
lengthMACD = input(12, title="MACD Fast Length")
lengthSignal = input(9, title="MACD Signal Length")

// حساب المتوسط المتحرك الأسي (EMA)
emaFast = ta.ema(close, lengthEMA)
emaSlow = ta.ema(close, lengthEMA * 2)

// حساب مؤشر القوة النسبية (RSI)
rsiValue = ta.rsi(close, lengthRSI)

// حساب مؤشر MACD
[macdLine, signalLine, _] = ta.macd(close, lengthMACD, lengthMACD * 2, lengthSignal)

// حساب الزخم
momentum = close - ta.sma(close, lengthEMA)

// إشارات الشراء والبيع بناءً على الدمج الذكي للمؤشرات
buySignal = ta.crossover(macdLine, signalLine) and rsiValue > 50 and close > emaFast
sellSignal = ta.crossunder(macdLine, signalLine) and rsiValue < 50 and close < emaFast

// رسم الإشارات على الرسم البياني
plot(emaFast, color=color.blue, title="EMA Fast")
plot(emaSlow, color=color.red, title="EMA Slow")

bgcolor(buySignal ? color.green : sellSignal ? color.red : na, transp=80)

plotshape(series=buySignal, location=location.belowbar, color=color.green, style=shape.labelup, title="Buy Signal")
plotshape(series=sellSignal, location=location.abovebar, color=color.red, style=shape.labeldown, title="Sell Signal")

alertcondition(buySignal, title="Buy Alert", message="KQAI: Buy Signal Detected")
alertcondition(sellSignal, title="Sell Alert", message="KQAI: Sell Signal Detected")

إخلاء المسؤولية

لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.