OPEN-SOURCE SCRIPT
9 EMA Full Candle Highlight (Bars Only)

This indicator highlights individual candles that close completely above or completely below the 9 EMA.
A candle turns yellow only when the entire candle (body and wicks) is fully on one side of the 9 EMA:
• Fully above EMA → low is above the 9 EMA
• Fully below EMA → high is below the 9 EMA
Candles that touch or cross the EMA are ignored.
Only the specific candle bar is colored — no background shading, no columns, and no extra signals — keeping the chart clean and distraction-free.
Purpose
Designed for simple, rule-based trading with minimal decisions. It visually marks strong momentum candles while filtering out chop around the EMA.
How to use
• Yellow candle above → bullish momentum
• Yellow candle below → bearish momentum
• No highlight → no clear edge
Best used on:
• 5-minute charts
• SPY / highly liquid ETFs
• Trend-following strategies
A candle turns yellow only when the entire candle (body and wicks) is fully on one side of the 9 EMA:
• Fully above EMA → low is above the 9 EMA
• Fully below EMA → high is below the 9 EMA
Candles that touch or cross the EMA are ignored.
Only the specific candle bar is colored — no background shading, no columns, and no extra signals — keeping the chart clean and distraction-free.
Purpose
Designed for simple, rule-based trading with minimal decisions. It visually marks strong momentum candles while filtering out chop around the EMA.
How to use
• Yellow candle above → bullish momentum
• Yellow candle below → bearish momentum
• No highlight → no clear edge
Best used on:
• 5-minute charts
• SPY / highly liquid ETFs
• Trend-following strategies
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.