OPEN-SOURCE SCRIPT
Actualizado 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.
Notas de prensa
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.
Notas de prensa
new option for disabling the current open extremumScript de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.