OPEN-SOURCE SCRIPT
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.
Script de código aberto
No verdadeiro espirito do TradingView, o autor desse script o publicou como código aberto, para que os traders possam entendê-lo e verificá-lo. Parabéns ao autor Você pode usá-lo gratuitamente, mas a reutilização desse código em publicações e regida pelas Regras da Casa.
Aviso legal
As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.
Script de código aberto
No verdadeiro espirito do TradingView, o autor desse script o publicou como código aberto, para que os traders possam entendê-lo e verificá-lo. Parabéns ao autor Você pode usá-lo gratuitamente, mas a reutilização desse código em publicações e regida pelas Regras da Casa.
Aviso legal
As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.