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.
オープンソーススクリプト
TradingViewの精神に則り、この作者はスクリプトのソースコードを公開しているので、その内容を理解し検証することができます。作者に感謝です!無料でお使いいただけますが、このコードを投稿に再利用する際にはハウスルールに従うものとします。
免責事項
これらの情報および投稿は、TradingViewが提供または保証する金融、投資、取引、またはその他の種類のアドバイスや推奨を意図したものではなく、またそのようなものでもありません。詳しくは利用規約をご覧ください。
オープンソーススクリプト
TradingViewの精神に則り、この作者はスクリプトのソースコードを公開しているので、その内容を理解し検証することができます。作者に感謝です!無料でお使いいただけますが、このコードを投稿に再利用する際にはハウスルールに従うものとします。
免責事項
これらの情報および投稿は、TradingViewが提供または保証する金融、投資、取引、またはその他の種類のアドバイスや推奨を意図したものではなく、またそのようなものでもありません。詳しくは利用規約をご覧ください。