OPEN-SOURCE SCRIPT
MACD RSI Momentum Confluence[XWiseTrade]

MACD RSI Momentum Confluence
This indicator generates Bull/Bear signals only when a MACD signal-line cross is confirmed by two independent momentum conditions, rather than firing on the cross alone. The goal is to reduce the false crosses that a plain MACD+RSI combination produces in ranging markets.
Why these components are combined
A MACD cross marks a potential shift in momentum, but on its own it triggers frequently during choppy, directionless price action. RSI relative to its midline is a common trend filter, but a value sitting just above or below 50 says little about whether momentum is actually building. Used separately, each gives signals the other would reject. This script requires them to agree and to be accelerating in the same direction.
How the components work together
A signal requires three conditions to align on the same bar:
A cooldown prevents clustered repeat signals after a trigger.
How to use it
Add it to any chart and timeframe. "Bull Cross" / "Bear Cross" labels mark confirmed signals; alerts are available for both. The histogram-expansion filter and RSI slope lookback are adjustable, letting you tighten the filter on lower timeframes or loosen it on higher ones. These are descriptive signals for discretionary use, not buy/sell recommendations.
Inputs: RSI length & midline, RSI slope lookback, MACD fast/slow/signal, histogram-expansion toggle, signal cooldown.
This indicator generates Bull/Bear signals only when a MACD signal-line cross is confirmed by two independent momentum conditions, rather than firing on the cross alone. The goal is to reduce the false crosses that a plain MACD+RSI combination produces in ranging markets.
Why these components are combined
A MACD cross marks a potential shift in momentum, but on its own it triggers frequently during choppy, directionless price action. RSI relative to its midline is a common trend filter, but a value sitting just above or below 50 says little about whether momentum is actually building. Used separately, each gives signals the other would reject. This script requires them to agree and to be accelerating in the same direction.
How the components work together
A signal requires three conditions to align on the same bar:
- Trigger — MACD line crosses its signal line (up for Bull, down for Bear).
- Momentum confirmation — the MACD histogram is expanding in the cross direction, so flat or contracting crosses (typical of chop) are filtered out.
- Direction confirmation — RSI is on the correct side of its midline and moving toward the signal direction over a configurable lookback, not merely resting there.
A cooldown prevents clustered repeat signals after a trigger.
How to use it
Add it to any chart and timeframe. "Bull Cross" / "Bear Cross" labels mark confirmed signals; alerts are available for both. The histogram-expansion filter and RSI slope lookback are adjustable, letting you tighten the filter on lower timeframes or loosen it on higher ones. These are descriptive signals for discretionary use, not buy/sell recommendations.
Inputs: RSI length & midline, RSI slope lookback, MACD fast/slow/signal, histogram-expansion toggle, signal cooldown.
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
Free tools & education → xwisetrade.com | Community → discord.gg/BUVfRjey2u
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
Free tools & education → xwisetrade.com | Community → discord.gg/BUVfRjey2u
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。