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
Skrip sumber terbuka
Dalam semangat TradingView sebenar, pencipta skrip ini telah menjadikannya sumber terbuka, jadi pedagang boleh menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupuan anda boleh menggunakan secara percuma, ingat bahawa penerbitan semula kod ini tertakluk kepada Peraturan Dalaman.
Penafian
Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat TradingView sebenar, pencipta skrip ini telah menjadikannya sumber terbuka, jadi pedagang boleh menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupuan anda boleh menggunakan secara percuma, ingat bahawa penerbitan semula kod ini tertakluk kepada Peraturan Dalaman.
Penafian
Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.