OPEN-SOURCE SCRIPT
EMA Rejection Counter

EMA Rejection Counter
EMA Rejection Counter is a simple yet powerful tool designed to measure how often price gets rejected from key exponential moving averages. Instead of guessing which EMA “respects price” the most, this indicator gives you actual data.
What It Does
This indicator tracks and counts rejection events on up to three customizable EMAs.
A rejection is defined as:
Price approaches the EMA
Touches the EMA during the candle
Then closes away from it
This helps identify which EMA is acting as the most reliable dynamic support/resistance.
Features
✅ Track 3 customizable EMAs (default: 25 / 50 / 100)
✅ Automatic detection of bullish & bearish rejections
✅ Live rejection counter for each EMA
✅ On-chart labels (R1, R2, R3) to visualize rejection points
✅ Clean table display showing total counts
✅ Highlights the most respected EMA in real-time
How to Use
Use this tool to identify which EMA price is reacting to most
Combine with your trend strategy (e.g., pullbacks, continuations)
The EMA with the highest rejection count often acts as the key level
Example Use Cases
Finding the best EMA for your strategy
Confirming dynamic support/resistance
Filtering entries based on EMA reactions
Enhancing trend-following systems
Notes
This is a statistical tool, not a standalone trading signal
Works best when combined with price action and market structure
Results may vary across timeframes and assets
EMA Rejection Counter is a simple yet powerful tool designed to measure how often price gets rejected from key exponential moving averages. Instead of guessing which EMA “respects price” the most, this indicator gives you actual data.
What It Does
This indicator tracks and counts rejection events on up to three customizable EMAs.
A rejection is defined as:
Price approaches the EMA
Touches the EMA during the candle
Then closes away from it
This helps identify which EMA is acting as the most reliable dynamic support/resistance.
Features
✅ Track 3 customizable EMAs (default: 25 / 50 / 100)
✅ Automatic detection of bullish & bearish rejections
✅ Live rejection counter for each EMA
✅ On-chart labels (R1, R2, R3) to visualize rejection points
✅ Clean table display showing total counts
✅ Highlights the most respected EMA in real-time
How to Use
Use this tool to identify which EMA price is reacting to most
Combine with your trend strategy (e.g., pullbacks, continuations)
The EMA with the highest rejection count often acts as the key level
Example Use Cases
Finding the best EMA for your strategy
Confirming dynamic support/resistance
Filtering entries based on EMA reactions
Enhancing trend-following systems
Notes
This is a statistical tool, not a standalone trading signal
Works best when combined with price action and market structure
Results may vary across timeframes and assets
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。