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

//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="إشارة بيع حسب الفلتر الفني")
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="إشارة بيع حسب الفلتر الفني")
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。