RUNE / TetherUS

مؤشر ياسر

51
//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")

Clause de non-responsabilité

Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.