OPEN-SOURCE SCRIPT
فلتر EMA 20/50/200 - صعودي فقط

//version=5
indicator("فلتر EMA 20/50/200 - صعودي فقط", overlay=true)
// مدخلات
lenFast = input.int(20, "EMA Fast")
lenSlow = input.int(50, "EMA Slow")
lenTrend = input.int(200,"EMA 200")
// حساب المتوسطات
emaFast = ta.ema(close, lenFast)
emaSlow = ta.ema(close, lenSlow)
emaTrend = ta.ema(close, lenTrend)
// ميل EMA200
slopeBars = input.int(5, "عدد الشموع لميل EMA200")
emaTrendSlope = emaTrend - emaTrend[slopeBars]
// شروط الفلتر
trendUp = close > emaTrend and emaFast > emaSlow and emaSlow > emaTrend and emaTrendSlope > 0
bullCross = ta.crossover(emaFast, emaSlow)
// إشارة الفلتر
longFilter = trendUp and bullCross
// عرض على الشارت
plot(emaFast, color=color.orange, title="EMA20")
plot(emaSlow, color=color.blue, title="EMA50")
plot(emaTrend, color=color.green, title="EMA200")
plotshape(longFilter, title="فلتر شراء", style=shape.labelup,
text="✅ فلتر صعودي", color=color.green, location=location.belowbar, size=size.tiny)
// إخراج بوول (للإكسيل أو فرز الرموز في Screener)
filterOutput = longFilter ? 1 : 0
plotchar(filterOutput, char="●", color=longFilter ? color.green : na, title="فلتر فعّال")
indicator("فلتر EMA 20/50/200 - صعودي فقط", overlay=true)
// مدخلات
lenFast = input.int(20, "EMA Fast")
lenSlow = input.int(50, "EMA Slow")
lenTrend = input.int(200,"EMA 200")
// حساب المتوسطات
emaFast = ta.ema(close, lenFast)
emaSlow = ta.ema(close, lenSlow)
emaTrend = ta.ema(close, lenTrend)
// ميل EMA200
slopeBars = input.int(5, "عدد الشموع لميل EMA200")
emaTrendSlope = emaTrend - emaTrend[slopeBars]
// شروط الفلتر
trendUp = close > emaTrend and emaFast > emaSlow and emaSlow > emaTrend and emaTrendSlope > 0
bullCross = ta.crossover(emaFast, emaSlow)
// إشارة الفلتر
longFilter = trendUp and bullCross
// عرض على الشارت
plot(emaFast, color=color.orange, title="EMA20")
plot(emaSlow, color=color.blue, title="EMA50")
plot(emaTrend, color=color.green, title="EMA200")
plotshape(longFilter, title="فلتر شراء", style=shape.labelup,
text="✅ فلتر صعودي", color=color.green, location=location.belowbar, size=size.tiny)
// إخراج بوول (للإكسيل أو فرز الرموز في Screener)
filterOutput = longFilter ? 1 : 0
plotchar(filterOutput, char="●", color=longFilter ? color.green : na, title="فلتر فعّال")
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuna uygun olarak, bu komut dosyasının oluşturucusu bunu açık kaynaklı hale getirmiştir, böylece yatırımcılar betiğin işlevselliğini inceleyip doğrulayabilir. Yazara saygı! Ücretsiz olarak kullanabilirsiniz, ancak kodu yeniden yayınlamanın Site Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuna uygun olarak, bu komut dosyasının oluşturucusu bunu açık kaynaklı hale getirmiştir, böylece yatırımcılar betiğin işlevselliğini inceleyip doğrulayabilir. Yazara saygı! Ücretsiz olarak kullanabilirsiniz, ancak kodu yeniden yayınlamanın Site Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.