OPEN-SOURCE SCRIPT

فلتر فني كامل - تنبيه بيع وشراء

71
//version=5
indicator("فلتر فني كامل - تنبيه بيع وشراء", overlay=true)

// إعدادات المتوسطات
ema50 = ta.ema(close, 50)
ema200 = ta.ema(close, 200)

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

// MACD
[macdLine, signalLine, _] = ta.macd(close, 12, 26, 9)

// شمعة مؤسسية: جسم كبير + فوليوم مرتفع
body = math.abs(close - open)
isBigCandle = body > ta.sma(body, 10)
volumeCondition = volume > ta.sma(volume, 20)

// شروط شراء
buyCond = close > ema50 and ema50 > ema200 and rsi < 30 and macdLine > signalLine and isBigCandle and volumeCondition

// شروط بيع
sellCond = close < ema50 and ema50 < ema200 and rsi > 70 and macdLine < signalLine and isBigCandle and volumeCondition

// رسم إشارات على الشارت
plotshape(buyCond, title="إشارة شراء", location=location.belowbar, color=color.green, style=shape.labelup, text="شراء")
plotshape(sellCond, title="إشارة بيع", location=location.abovebar, color=color.red, style=shape.labeldown, text="بيع")

// التنبيه
alertcondition(buyCond, title="تنبيه شراء", message="إشارة شراء حسب الفلتر الفني")
alertcondition(sellCond, title="تنبيه بيع", message="إشارة بيع حسب الفلتر الفني")

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.