OPEN-SOURCE SCRIPT
Bassi MACD Pro + ADX Filter + Smart Histogram TP + RSI

A professional-grade MACD indicator that dramatically reduces false signals by combining four powerful filters:
Key Features
Classic MACD (12,26,9) with clean, high-visibility histogram coloring
ADX + DI filter – only takes trades when ADX > user-defined threshold (default 25) ensuring you trade only in strong trending markets
Smart Histogram Take-Profit logic – automatically detects the exact moment bullish/bearish momentum starts to weaken after a strong move and marks a precise TP level (one TP per trade – no repainting, no multiple signals)
Zero-line crossover confirmation + histogram direction filter – eliminates many whipsaw signals common in regular MACD
Separate RSI pane with overbought/oversold levels and visual markers (for additional confluence – does not interfere with main logic)
Visual Signals
Green “MACD BUY” label + lime triangle = confirmed long entry in strong trend
Red “MACD SELL” label + red triangle = confirmed short entry in strong trend
Small lime/red “TP” triangles = Smart Histogram Take-Profit triggered (perfect exit timing based on momentum fade)
Alert Conditions Included
MACD BUY
MACD SELL
TP Long Hit
TP Short Hit
Combined “Any Signal” alert
Why this version outperforms standard MACD
Most MACD crossovers fail in ranging markets. This script solves that by:
Requiring strong trend (ADX filter)
Confirming histogram is actually growing in the new direction
Waiting for the true zero-line cross with momentum
Giving you an intelligent, non-fixed % take-profit based on real histogram exhaustion
Excellent for swing trading, day trading, crypto, forex, and stocks on any timeframe (works especially well on 1H–4H–Daily).
Clean, fast, no repainting, fully alert-ready.
Add to chart → set your alerts → trade only the highest-probability MACD signals.
Key Features
Classic MACD (12,26,9) with clean, high-visibility histogram coloring
ADX + DI filter – only takes trades when ADX > user-defined threshold (default 25) ensuring you trade only in strong trending markets
Smart Histogram Take-Profit logic – automatically detects the exact moment bullish/bearish momentum starts to weaken after a strong move and marks a precise TP level (one TP per trade – no repainting, no multiple signals)
Zero-line crossover confirmation + histogram direction filter – eliminates many whipsaw signals common in regular MACD
Separate RSI pane with overbought/oversold levels and visual markers (for additional confluence – does not interfere with main logic)
Visual Signals
Green “MACD BUY” label + lime triangle = confirmed long entry in strong trend
Red “MACD SELL” label + red triangle = confirmed short entry in strong trend
Small lime/red “TP” triangles = Smart Histogram Take-Profit triggered (perfect exit timing based on momentum fade)
Alert Conditions Included
MACD BUY
MACD SELL
TP Long Hit
TP Short Hit
Combined “Any Signal” alert
Why this version outperforms standard MACD
Most MACD crossovers fail in ranging markets. This script solves that by:
Requiring strong trend (ADX filter)
Confirming histogram is actually growing in the new direction
Waiting for the true zero-line cross with momentum
Giving you an intelligent, non-fixed % take-profit based on real histogram exhaustion
Excellent for swing trading, day trading, crypto, forex, and stocks on any timeframe (works especially well on 1H–4H–Daily).
Clean, fast, no repainting, fully alert-ready.
Add to chart → set your alerts → trade only the highest-probability MACD signals.
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
この情報および投稿は、TradingViewが提供または推奨する金融、投資、トレード、その他のアドバイスや推奨を意図するものではなく、それらを構成するものでもありません。詳細は利用規約をご覧ください。
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
この情報および投稿は、TradingViewが提供または推奨する金融、投資、トレード、その他のアドバイスや推奨を意図するものではなく、それらを構成するものでもありません。詳細は利用規約をご覧ください。