OPEN-SOURCE SCRIPT
Daily 20/40 EMA Cross Screener (Confirmed Daily)

Description:
This indicator screens for daily 20/40 EMA crossovers, designed specifically to work seamlessly with TradingView’s Pine Screener. It calculates signals and metrics on the closed daily bar only — ensuring non-repainting, stable screener values.
Features:
✅ Long Signal: triggered when 20-day EMA crosses above 40-day EMA on the daily close.
⏳ Days Since Long: counts the number of trading days since the most recent bullish crossover.
📈 ATR% (20-day): measures average volatility as a percentage of price.
💵 Average $ Volume (20-day): filters for liquidity to focus on higher-quality setups.
How to use:
Add the indicator to your chart and Favorite it.
Open Pine Screener (Daily timeframe).
Filter by:
Long = 1 for active bullish signals
DaysSinceLong (e.g., < 3) to find fresh breakouts
AvgATR%_20d to define volatility ranges
Avg$Volume_20d for liquidity thresholds.
Perfect for trend-following and momentum traders looking to catch early daily trend shifts with strong volume and clean confirmation.
This indicator screens for daily 20/40 EMA crossovers, designed specifically to work seamlessly with TradingView’s Pine Screener. It calculates signals and metrics on the closed daily bar only — ensuring non-repainting, stable screener values.
Features:
✅ Long Signal: triggered when 20-day EMA crosses above 40-day EMA on the daily close.
⏳ Days Since Long: counts the number of trading days since the most recent bullish crossover.
📈 ATR% (20-day): measures average volatility as a percentage of price.
💵 Average $ Volume (20-day): filters for liquidity to focus on higher-quality setups.
How to use:
Add the indicator to your chart and Favorite it.
Open Pine Screener (Daily timeframe).
Filter by:
Long = 1 for active bullish signals
DaysSinceLong (e.g., < 3) to find fresh breakouts
AvgATR%_20d to define volatility ranges
Avg$Volume_20d for liquidity thresholds.
Perfect for trend-following and momentum traders looking to catch early daily trend shifts with strong volume and clean confirmation.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.