NinjaTrader MACD + RSI Indicator

NinjaTrader MACD + RSI Indicator
NinjaTrader MACD + RSI Indicator combines RSI overbought/oversold zone detection with MACD crossover confirmation into a two-stage condition registration system. A condition is registered only when both components align simultaneously — RSI zone and MACD crossover direction.

NinjaTrader MACD + RSI Indicator

The MACD + RSI Indicator combines two momentum-based analytical components into a single two-stage condition registration system. Each component measures momentum through a different methodology — and the indicator requires both to align before a condition is registered.
macd rsi strategy indicator

MACD (Moving Average Convergence Divergence) measures momentum through the relationship between two exponential moving averages of price. The histogram reflects the difference between the MACD line and its signal line — its direction and position relative to zero indicate whether momentum is building or decelerating in a given direction.

RSI (Relative Strength Index) measures momentum through the ratio of average gains to average losses over a defined period, normalized to a 0–100 scale. Readings above 70 reflect an overbought condition — price has risen sharply relative to recent history. Readings below 30 reflect an oversold condition.

The structural reason for combining these two indicators lies in what each one misses in isolation. MACD crossovers occur frequently — including during sustained trends where the signal and main lines repeatedly cross without any meaningful momentum shift. Many of these crossovers happen in the middle of a directional move and carry limited analytical weight. RSI alone identifies extreme momentum states but does not indicate when that extreme has begun to resolve — a reading above 70 can persist for an extended period before any directional change occurs. The two-stage requirement addresses both limitations simultaneously: RSI filters out MACD crossovers that occur during non-extreme momentum states, while MACD provides a directional timing reference that RSI alone cannot supply. The result is a condition that requires both extreme momentum as measured by RSI and a directional shift in MACD — registered only when both are present at the same time.

The two indicators measure the same underlying phenomenon — momentum — but through structurally different calculations. MACD is a trend-following tool that reacts to the direction and speed of price change. RSI is a bounded oscillator that reflects extreme momentum states through price ratio analysis. Requiring both to align produces a condition that is more structurally selective than either indicator alone.

 

How to interpret and use the MACD + RSI Indicator?

 

ninjatrader macd rsi

The indicator uses a two-stage registration sequence for both bullish and bearish conditions.

Bullish condition — registered when RSI is in the oversold zone (below 30) and the MACD main line, while below zero, crosses the signal line from below. Both criteria must be met simultaneously for the condition to register.

Bearish condition — registered when RSI is in the overbought zone (above 70) and the MACD main line, while above zero, crosses the signal line from above. Both criteria must be met simultaneously.

Repeat condition logic — the indicator applies a reset sequence before a repeat condition can be registered. This prevents multiple conditions from being registered during a single sustained MACD crossover event.

For a repeat bearish condition: after the initial bearish condition is registered, the MACD main line must drop below zero, rise above the signal line, and then cross back below the signal line again. The RSI condition must also still be met — or RSI must reset to 50, return to the overbought zone, and a new MACD crossover must occur.

For a repeat bullish condition: after the initial bullish condition is registered, the MACD main line must rise above zero, fall below the signal line, and then cross back above it again. The RSI condition must still be met — or RSI must reset to 50, return to the oversold zone, and a new MACD crossover must occur.

This reset sequence ensures that each registered condition reflects a full cycle of alignment between both components — not a continuation of an already-active MACD crossover.

 

MACD + RSI Indicator input parameters

The indicator has the following parameters:

macd rsi indicator parameters

Alerts — configure alert delivery: sound notifications with selectable audio file, email, and pop-up messages — each configurable independently.

MACD — individual parameter configuration for the MACD calculation: fast period, slow period, and signal smoothing.

RSI — individual parameter configuration for the RSI calculation: period and price type.

Signal parameters — configures the overbought and oversold threshold levels used for RSI zone detection.

 

Custom Programming

mt4 custom programming

We can customize this indicator to your needs — adding functions, modifying logic, or integrating it with other tools for your workflow.

We also convert indicators into Automated Trading Strategies with advanced functions (trailing stops, risk management, filters) tailored to your trading style strictly according to your specifications.

Request a free consultation to discuss the technical scope and timeline of your project.

 

We Value Your Feedback

We are committed to the ongoing development and refinement of our indicators. If you’ve spotted a bug, feel that something essential is missing, or have ideas that could make the indicator even better, just send us a message. Your feedback helps us improve and deliver tools that truly meet traders’ needs.

See other indicators on a single subscription
NinjaTrader Ichimoku Indicator
NinjaTrader Candlestick Patterns Indicator
NinjaTrader Support & Resistance Breakout Indicator