OPEN-SOURCE SCRIPT
Full Candle 9 EMA Highlight

This indicator highlights momentum candles based on their complete position relative to the 9 EMA.
A candle is highlighted yellow only when it closes entirely above or entirely below the 9 EMA:
Fully above: the candle’s low is above the EMA
Fully below: the candle’s high is below the EMA
Candles that touch or cross the EMA are ignored, helping filter out chop and indecision.
Purpose
The goal is to reduce decision-making and visually isolate clean momentum conditions using a single indicator.
How to use
Yellow candle above the EMA → bullish momentum
Yellow candle below the EMA → bearish momentum
No highlight → stay out
Designed for:
5-minute charts
SPY / liquid index ETFs
Simple, rule-based trading
Minimal indicators and minimal discretion
This indicator is meant to be used as a visual guide, not a prediction tool. It works best during strong intraday trends and should be avoided during sideways market conditions.
A candle is highlighted yellow only when it closes entirely above or entirely below the 9 EMA:
Fully above: the candle’s low is above the EMA
Fully below: the candle’s high is below the EMA
Candles that touch or cross the EMA are ignored, helping filter out chop and indecision.
Purpose
The goal is to reduce decision-making and visually isolate clean momentum conditions using a single indicator.
How to use
Yellow candle above the EMA → bullish momentum
Yellow candle below the EMA → bearish momentum
No highlight → stay out
Designed for:
5-minute charts
SPY / liquid index ETFs
Simple, rule-based trading
Minimal indicators and minimal discretion
This indicator is meant to be used as a visual guide, not a prediction tool. It works best during strong intraday trends and should be avoided during sideways market conditions.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.