OPEN-SOURCE SCRIPT
EMA Crossover Visual Setup (RS Clásico Confirmado)

Overview
This script is designed to visually highlight classic swing trading setups based on the crossover of exponential moving averages (EMAs), with additional confirmation using Relative Strength (RS) compared to a benchmark asset (e.g., SPY).
The goal is to identify bullish momentum shifts that align both with technical structure (EMA crossover) and relative outperformance, helping traders focus on strong stocks in strong markets.
Logic
A signal is triggered when the following conditions are met:
The fast EMA (e.g., 10) crosses above the slow EMA (e.g., 20).
The closing price is above a third EMA (e.g., 50) to confirm bullish structure.
The asset's Relative Strength (RS) versus a benchmark is confirmed manually, based on an RSI comparison (not calculated inside the script).
The script is meant to be used alongside manual RS confirmation, using a secondary chart or overlay of the RS ratio.
Features
Visual labels and markers for clean charting of valid entry setups
Fully customizable EMA lengths
Optional highlighting of candle patterns near entry
Ideal for use with top-down analysis and watchlist filtering
Suggested Use
Works best on daily and 4H charts for swing trading setups
Combine with volume and price action analysis for higher probability trades
Use manual RS validation: confirm that the RSI of the selected stock is stronger than the RSI of SPY (or any benchmark of your choice)
Notes
This script does not execute trades or include stop loss/take profit logic, as it is intended for discretionary traders who want to visually scan for opportunities.
It also does not calculate RS internally, allowing flexibility in how you define strength (RS line, RSI comparison, or price ratio).
This script is designed to visually highlight classic swing trading setups based on the crossover of exponential moving averages (EMAs), with additional confirmation using Relative Strength (RS) compared to a benchmark asset (e.g., SPY).
The goal is to identify bullish momentum shifts that align both with technical structure (EMA crossover) and relative outperformance, helping traders focus on strong stocks in strong markets.
Logic
A signal is triggered when the following conditions are met:
The fast EMA (e.g., 10) crosses above the slow EMA (e.g., 20).
The closing price is above a third EMA (e.g., 50) to confirm bullish structure.
The asset's Relative Strength (RS) versus a benchmark is confirmed manually, based on an RSI comparison (not calculated inside the script).
The script is meant to be used alongside manual RS confirmation, using a secondary chart or overlay of the RS ratio.
Features
Visual labels and markers for clean charting of valid entry setups
Fully customizable EMA lengths
Optional highlighting of candle patterns near entry
Ideal for use with top-down analysis and watchlist filtering
Suggested Use
Works best on daily and 4H charts for swing trading setups
Combine with volume and price action analysis for higher probability trades
Use manual RS validation: confirm that the RSI of the selected stock is stronger than the RSI of SPY (or any benchmark of your choice)
Notes
This script does not execute trades or include stop loss/take profit logic, as it is intended for discretionary traders who want to visually scan for opportunities.
It also does not calculate RS internally, allowing flexibility in how you define strength (RS line, RSI comparison, or price ratio).
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.