OPEN-SOURCE SCRIPT
Aggiornato EMA RSI Cross

The EMA RSI Cross (ERC) indicator combines exponential moving average (EMA) crossovers with relative strength index (RSI) momentum signals to highlight potential bullish and bearish trading opportunities.
It works in two layers:
EMA Cross Layer: Tracks short‑term vs. mid‑term trend shifts using EMA(5) crossing above/below EMA(20), while also displaying EMA(50) and EMA(200) for longer‑term structure.
RSI Confirmation Layer: Confirms momentum by requiring RSI(14) to cross its moving average (SMA 14) within a recent lookback window.
Only when both conditions align, and the price confirms the setup in relation to EMA20, a signal is generated:
Bullish Signal (green triangle): EMA5 crosses above EMA20 + RSI crosses up + close above EMA20
Bearish Signal (red triangle): EMA5 crosses below EMA20 + RSI crosses down + close below EMA20
Features
How to Use
Add the script to your chart, select your preferred signal timeframe.
Look for green arrows as bullish entry confirmation and red arrows for bearish setups.
Use additional filters (trend direction, support/resistance, volume) to refine trades.
Avoid relying on signals in sideways/choppy markets where EMA and RSI may give false triggers.
It works in two layers:
EMA Cross Layer: Tracks short‑term vs. mid‑term trend shifts using EMA(5) crossing above/below EMA(20), while also displaying EMA(50) and EMA(200) for longer‑term structure.
RSI Confirmation Layer: Confirms momentum by requiring RSI(14) to cross its moving average (SMA 14) within a recent lookback window.
Only when both conditions align, and the price confirms the setup in relation to EMA20, a signal is generated:
Bullish Signal (green triangle): EMA5 crosses above EMA20 + RSI crosses up + close above EMA20
Bearish Signal (red triangle): EMA5 crosses below EMA20 + RSI crosses down + close below EMA20
Features
- Customizable timeframe input for multi‑timeframe analysis
- Adjustable lookback period for RSI confirmation
- Clear charting with EMA overlays and arrow signals when confirmed setups occur
- RSI panel with dynamic background and overbought/oversold visualization
How to Use
Add the script to your chart, select your preferred signal timeframe.
Look for green arrows as bullish entry confirmation and red arrows for bearish setups.
Use additional filters (trend direction, support/resistance, volume) to refine trades.
Avoid relying on signals in sideways/choppy markets where EMA and RSI may give false triggers.
Note di rilascio
The EMA RSI Cross (ERC) indicator combines exponential moving average (EMA) crossovers with relative strength index (RSI) momentum signals to highlight potential bullish and bearish trading opportunities, while dynamically mapping market structure.It works through three core layers:
1. EMA Cross Layer: Tracks short‑term vs. mid‑term trend shifts using EMA(5) crossing above/below EMA(20), while also displaying EMA(50) and EMA(200) for longer‑term structure.
2. RSI Confirmation Layer: Confirms momentum by requiring RSI(14) to cross its moving average (SMA 14) within a recent adjustable lookback window.
3. Market Structure Layer: Automatically identifies and connects swing highs and lows based on the EMA trend phases. It uses a "Minimum Candles" filter to ignore choppy, short-lived crossovers, smoothly merging them to find the true absolute extremes of a trend.
Only when both EMA and RSI conditions align, and the price confirms the setup in relation to EMA20, a signal is generated:
Bullish Signal (green triangle): EMA5 crosses above EMA20 + RSI crosses up + close above EMA20
Bearish Signal (red triangle): EMA5 crosses below EMA20 + RSI crosses down + close below EMA20
Features
Dynamic Market Structure Mapping: Visualizes confirmed swing highs/lows with connecting lines and shapes, including a live-updating dashed line for the currently developing extreme.
Customizable Structure Styles: Full control over market structure visuals, including shape types (circles/arrows), colors with transparency, line width, and size.
Advanced Noise Filtering: The "Min. Candles for Period" setting prevents false market structure pivots during sideways chop.
Customizable timeframe input for multi‑timeframe analysis.
Adjustable lookback period for RSI confirmation.
Clear charting with EMA overlays and arrow signals when confirmed setups occur.
RSI panel with dynamic background and overbought/oversold visualization.
How to Use
Add the script to your chart and select your preferred signal timeframe.
Look for green arrows as bullish entry confirmation and red arrows for bearish setups.
Read the Structure: Use the Market Structure lines to easily spot Higher Highs (HH) or Lower Lows (LL) to determine the broader market context before taking a signal.
Risk Management: The clearly marked Market Structure circles/arrows act as excellent reference points for trailing stop-losses or identifying local support/resistance levels.
Use additional filters (trend direction, volume) to refine trades and avoid relying on signals in sideways/choppy markets.
Note di rilascio
new option for disabling the current open extremumScript open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.