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
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。