MA EMA RSI
Oct 1, 2017

The MA EMA RSI indicator identifies potential overbought and oversold market conditions by analyzing the spread between two moving averages in conjunction with Relative Strength Index (RSI) levels.
Usage
The indicator is designed to pinpoint exhaustion points where price has extended significantly beyond its historical mean. Users can identify these opportunities through bar coloring:
- Bearish Signals (Red Bars): Occur when the SMA is significantly above the EMA (beyond the user-defined spread) and the RSI is above the overbought threshold. This suggests the price may be "Too High."
- Bullish Signals (Green Bars): Occur when the EMA is significantly above the SMA and the RSI is below the oversold threshold. This suggests the price may be "Too Low."
Traders can use these signals to anticipate potential reversals or pullbacks in price action.
Details
The script calculates three primary components: a Simple Moving Average (SMA), an Exponential Moving Average (EMA), and the Relative Strength Index (RSI).
The core logic relies on the "MA Spread," which measures the distance between the fast SMA and the slow EMA. When the distance between these two averages exceeds a percentage-based threshold (converted to a decimal), it indicates a significant price extension. By filtering these extensions with RSI overbought/oversold levels, the indicator seeks to reduce false signals and focus on high-probability exhaustion zones.
Settings
General Settings
- Source: Determines the price data used for all calculations (default is Close).
- Length: Sets the period for the Simple Moving Average (SMA).
- EMA Length: Sets the period for the Exponential Moving Average (EMA).
- RSI Length: Sets the period for the RSI calculation.
- RSI Overbought: The level above which the RSI is considered overbought (default is 70).
- RSI Oversold: The level below which the RSI is considered oversold (default is 30).
- MA Spreads Percent as Decimal: The percentage difference required between the SMA and EMA to trigger a signal, expressed as a decimal (e.g., 0.03 for 3%).
FAQ
How do I interpret the colored bars?
Red bars indicate that the fast moving average has extended far above the slow moving average while the RSI is high, signaling overbought conditions. Green bars indicate the fast moving average is significantly below the slow moving average while the RSI is low, signaling oversold conditions.
Can I adjust the sensitivity of the signals?
Yes, by modifying the "MA Spreads Percent as Decimal" setting. Increasing this value will require a larger gap between the moving averages, resulting in fewer but more extreme signals. Decreasing it will make the indicator more sensitive.
How can I access the MA EMA RSI?
You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
Free indicator
Get free access to this indicator on the platforms below.
Unlock the entire LuxAlgo Library
Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.