OPEN-SOURCE SCRIPT
EMA Alignment Buy Signal

EMA Alignment Buy Signal
This indicator identifies bullish trend alignment using four exponential moving averages: 9 EMA, 20 EMA, 50 EMA, and 200 EMA.
A BUY signal is generated when the full candle is positioned above the 9 EMA and the moving averages are aligned in bullish order:
Low > 9 EMA > 20 EMA > 50 EMA > 200 EMA
This means the candle’s low must be above the 9 EMA, confirming that the entire candle is trading above the fastest EMA. The signal only appears when the condition first becomes true, helping reduce repeated signals during the same trend continuation.
The indicator plots all four EMAs directly on the chart and displays a BUY label below the candle when the bullish alignment condition is met.
Works on the chart timeframe you select. For example, on a 5-minute chart it uses 5-minute EMA values, and on a 1-hour chart it uses 1-hour EMA values.
Included:
BUY condition:
Candle Low > 9 EMA > 20 EMA > 50 EMA > 200 EMA
This indicator identifies bullish trend alignment using four exponential moving averages: 9 EMA, 20 EMA, 50 EMA, and 200 EMA.
A BUY signal is generated when the full candle is positioned above the 9 EMA and the moving averages are aligned in bullish order:
Low > 9 EMA > 20 EMA > 50 EMA > 200 EMA
This means the candle’s low must be above the 9 EMA, confirming that the entire candle is trading above the fastest EMA. The signal only appears when the condition first becomes true, helping reduce repeated signals during the same trend continuation.
The indicator plots all four EMAs directly on the chart and displays a BUY label below the candle when the bullish alignment condition is met.
Works on the chart timeframe you select. For example, on a 5-minute chart it uses 5-minute EMA values, and on a 1-hour chart it uses 1-hour EMA values.
Included:
- 9 EMA
- 20 EMA
- 50 EMA
- 200 EMA
- BUY signal label
- Alert condition for BUY signals
BUY condition:
Candle Low > 9 EMA > 20 EMA > 50 EMA > 200 EMA
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.