OPEN-SOURCE SCRIPT
Updated EMA 3 y 9 RESTEST 50 Cross ADX PRO

EMA Cross + ADX PRO is a trend-following indicator that combines EMA crossovers, ADX momentum filtering, and a dynamic weighted scoring system to generate high-quality entry and cancellation signals.
How it works:
The indicator triggers a signal when all of the following conditions align simultaneously:
EMA 3 crosses EMA 9 (crossover for BUY, crossunder for SELL)
Price is in the EMA 50 retest zone (±0.25% band)
Trend filter: close above (BUY) or below (SELL) EMA 50
RSI > 50 for longs / RSI < 50 for shorts
Volume exceeds 1.2× its 20-period SMA
ADX > 20 (minimum trend strength, adjustable)
Breakout filter: close above prior high (BUY) / below prior low (SELL)
Weighted Score System: Each of the 6 filters carries a configurable weight (1–5). If the counter-score reaches the cancellation threshold AND the market has no strong momentum (ADX > 25), the signal is cancelled. If price breaks the 5-bar swing opposite to the trade, cancellation is immediate.
UI Translation (Spanish → English):
ADX longitud = ADX Length | ADX mínimo = ADX Minimum | Peso Tendencia = Trend Weight | Peso RSI = RSI Weight | Peso Volumen = Volume Weight | Peso ADX = ADX Weight | Peso Zona = Zone Weight | Peso Fuerza = Strength Weight | Score cancelación = Cancellation Score Threshold | Mostrar tabla = Show dashboard
How it works:
The indicator triggers a signal when all of the following conditions align simultaneously:
EMA 3 crosses EMA 9 (crossover for BUY, crossunder for SELL)
Price is in the EMA 50 retest zone (±0.25% band)
Trend filter: close above (BUY) or below (SELL) EMA 50
RSI > 50 for longs / RSI < 50 for shorts
Volume exceeds 1.2× its 20-period SMA
ADX > 20 (minimum trend strength, adjustable)
Breakout filter: close above prior high (BUY) / below prior low (SELL)
Weighted Score System: Each of the 6 filters carries a configurable weight (1–5). If the counter-score reaches the cancellation threshold AND the market has no strong momentum (ADX > 25), the signal is cancelled. If price breaks the 5-bar swing opposite to the trade, cancellation is immediate.
UI Translation (Spanish → English):
ADX longitud = ADX Length | ADX mínimo = ADX Minimum | Peso Tendencia = Trend Weight | Peso RSI = RSI Weight | Peso Volumen = Volume Weight | Peso ADX = ADX Weight | Peso Zona = Zone Weight | Peso Fuerza = Strength Weight | Score cancelación = Cancellation Score Threshold | Mostrar tabla = Show dashboard
Release Notes
english fileOpen-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.