OPEN-SOURCE SCRIPT
13 EMA Cross + RSI 50 = Buy / Sell

13 EMA Cross + RSI 50 Description:
A simple yet effective signal indicator combining price action, a dynamic EMA level, and RSI momentum confirmation.
How it works:
🟢 Buy Signal = A bullish candle opens below the 13 EMA and closes above it, confirming a momentum shift to the upside. The signal is only valid when RSI has crossed above the 50 level within the last 1–2 candles, confirming that momentum is turning bullish.
🔴 Sell Signal = A bearish candle opens above the 13 EMA and closes below it. The signal is only valid when RSI has crossed below the 50 level within the last 1–2 candles, confirming bearish momentum.
Why this combination works:
The 13 EMA candle cross filters out noise by requiring price to actually close on the opposite side - not just touch the EMA. The RSI 50 cross filter ensures you are not catching signals in exhausted moves, but rather at the early stage of a momentum shift.
Best used on: 1H timeframe | Crude Oil (MCX) | Natural Gas (MCX) | Nifty 50
Settings:
EMA Length - default 13
RSI Length - default 14
RSI Lookback - how many previous candles RSI must have been on the opposite side of 50 (default 2)
This indicator is for educational purposes. Always use proper risk management and position sizing.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.