OPEN-SOURCE SCRIPT
8/21 EMA Cross with 50 SMA Filter

Key Features:
8/21 EMA Crossover: Detects when the 8 EMA crosses above/below the 21 EMA
50 SMA Filter: Only shows signals when:
Bullish cross occurs AND price is above 50 SMA
Bearish cross occurs AND price is below 50 SMA
Visual Signals: Green "BUY" labels for filtered bullish crosses, red "SELL" labels for filtered bearish crosses
Comparison: Small gray triangles show unfiltered crosses that were rejected by the 50 SMA filter
Trend Background: Light green when above 50 SMA, light red when below
Alerts: Built-in alert conditions for both filtered signals
8/21 EMA Crossover: Detects when the 8 EMA crosses above/below the 21 EMA
50 SMA Filter: Only shows signals when:
Bullish cross occurs AND price is above 50 SMA
Bearish cross occurs AND price is below 50 SMA
Visual Signals: Green "BUY" labels for filtered bullish crosses, red "SELL" labels for filtered bearish crosses
Comparison: Small gray triangles show unfiltered crosses that were rejected by the 50 SMA filter
Trend Background: Light green when above 50 SMA, light red when below
Alerts: Built-in alert conditions for both filtered signals
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.