MACD Signal with RSI Indicating Strategy
May 24, 2021

The MACD Signal with RSI Indicating Strategy tool combines momentum and mean-reversion principles to identify potential trend reversals through MACD crossovers confirmed by recent RSI overbought or oversold conditions.
Usage
The Usage of this strategy is centered around finding high-probability entry points by ensuring two distinct technical conditions are met within a specific lookback window.
- Long Entries: Occur when the MACD line crosses above the signal line (bullish crossover), provided that the RSI has been at or below the "Oversold" threshold within the last 6 bars.
- Short Entries: Occur when the MACD line crosses below the signal line (bearish crossover), provided that the RSI has been at or above the "Overbought" threshold within the last 6 bars.
The strategy is designed with a scaling-out mechanism. While entries are full position orders (subject to the maximum position size), exits are managed by the "Strategy Sell Rate" setting, which determines what fraction of the current position is closed upon a signal. For example, a sell rate of 3 would close 1/3 of the position.
Details
This strategy implements a memory-based confirmation system for the Relative Strength Index (RSI). Instead of requiring the RSI to be currently oversold/overbought at the exact moment of the MACD cross, it looks back over a 6-bar window. This accounts for the lag often found in trend-following indicators like the MACD, allowing the price to start moving out of extreme RSI zones before the crossover signal triggers.
The strategy also includes a start-date filter, allowing users to backtest from a specific point in time, and position sizing constraints to manage equity exposure.
Settings
MACD Settings
- Fast moving average: The period for the shorter-term EMA used in MACD calculation.
- Slow moving average: The period for the longer-term EMA used in MACD calculation.
- Signal Length: The smoothing period for the MACD signal line.
RSI Settings
- RSI OverSold: The level (e.g., 30-40) that defines the oversold threshold for bullish confirmation.
- RSI OverBought: The level (e.g., 60-70) that defines the overbought threshold for bearish confirmation.
- Source: The price input used for RSI calculations (default is Close).
- Length: The lookback period for the RSI calculation.
Strategy Settings
- Start Date/Month/Year: Defines the historical point from which the strategy will begin executing trades.
- Strategy Sell Rate: Determines the fraction of the position to close on an exit signal (e.g., 2 = 50%, 3 = 33%).
- Maximum Position Size: The upper limit for the total quantity the strategy can hold.
FAQ
How do I access the MACD Signal with RSI Indicating Strategy?
You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
Can I use this on any timeframe?
Yes, while the default settings were originally tuned for lower timeframes like the 30-minute chart, the MACD and RSI parameters can be adjusted to suit daily or weekly timeframes for swing trading.
Why does the strategy not exit the entire position at once?
The strategy uses a "Sell Rate" input to scale out of positions. This allows users to capture further trend movement with a partial position rather than exiting the entire trade on the first counter-signal.
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.