OPEN-SOURCE SCRIPT
Supertrend MACD Strategy

Supertrend MACD Strategy - Description & Usage Guide
🚀 EARLY ACCESS INDICATOR
This is an early access version of my Supertrend MACD Strategy.
📊 What Is This Indicator?
The Supertrend MACD Strategy combines the power of MACD signals with filtering mechanisms to work seamlessly across ALL trading instruments - from forex and crypto to stocks and commodities.
Unlike traditional MACD indicators that only work well on specific assets, this universal version automatically adapts to any market's price structure and volatility characteristics.
Key Features:
✅ Universal Compatibility - Works on ANY trading pair without manual adjustments
✅ Smart Multi-Filter System - Combines MACD, ATR, ADX, and higher timeframe analysis
✅ Non-Repainting Signals - Signals form after candle close and never change
✅ Trend Continuation Tracking - BUY+/SELL+ signals for trend strength
✅ Structure Break Detection - Identifies major market shifts
✅ Visual Signal Line - Clear trend state indicator on chart
🎯 How The Signals Work
Signal Types:
BUY (Green) - Initial buy signal when all filters align
SELL (Red) - Initial sell signal when all filters align
BUY+ (Purple) - Second confirmation signal in uptrend
SELL+ (Purple) - Second confirmation signal in downtrend
Triangle Arrows - Additional trend continuation signals (optional)
Signal Formation:
⚠️ IMPORTANT: All signals form AFTER the second candle closes and MAY NOT REPAINT. Once a signal appears, it's final and will never disappear or change position.
🛠️ How To Use This Indicator
Basic Setup:
Add the indicator to any chart (works on all timeframes)
Default settings work for most instruments
Enable "Show Debug Info" to see real-time filter values
Set up alerts for automated notifications
Entry Strategies:
Conservative Approach:
Enter on BUY+ or SELL+ signals (purple labels)
These are second confirmations with higher probability
Wait for signal line color to match your trade direction
Aggressive Approach:
Enter on first BUY or SELL signals (green/red labels)
Use tight stop losses below/above recent swing points
Scale in with additional positions on BUY+/SELL+ signals
Exit Strategies:
Exit when opposite signal appears
Use trailing stops following the signal line
Take partial profits at key resistance/support levels
🔧 Advanced Filter Explanations
ATR Volatility Filter:
Ensures sufficient market movement before signaling
Percentage-based for universal compatibility
Higher values = fewer but higher quality signals
ADX Trend Strength:
Confirms trend momentum before entry
Default 15 works for most markets
Higher values filter out weak trends
Higher Timeframe Confirmation:

Aligns signals with larger trend direction
Default 1-hour works for most timeframes
Use 4H for daily charts, Daily for weekly charts
Structure Break Detection:
Identifies when price breaks significant levels
BOS+ signals indicate strong momentum
Percentage-based for universal scaling
🚨 Important Disclaimers
Signal Timing:
Signals appear AFTER second candle close only
low chance of repainting - signals never change once formed
Real-time bar shows potential signal until close
Risk Management:
This indicator provides signals, not trade outcomes
Always use proper position sizing and stop losses
Backtest thoroughly before live trading
Markets can remain irrational longer than expected
Early Access Notes:
This is a pre-release version with ongoing improvements
Settings may be refined based on user feedback
Additional features planned for future updates
Report any issues or suggestions for enhancement
as said before this is indicator is in its early days so is subject to big changes
Version 1.0 (22 JUNE 25)
Trade responsibly and always conduct your own analysis before making trading decisions.
🚀 EARLY ACCESS INDICATOR
This is an early access version of my Supertrend MACD Strategy.
📊 What Is This Indicator?
The Supertrend MACD Strategy combines the power of MACD signals with filtering mechanisms to work seamlessly across ALL trading instruments - from forex and crypto to stocks and commodities.
Unlike traditional MACD indicators that only work well on specific assets, this universal version automatically adapts to any market's price structure and volatility characteristics.
Key Features:
✅ Universal Compatibility - Works on ANY trading pair without manual adjustments
✅ Smart Multi-Filter System - Combines MACD, ATR, ADX, and higher timeframe analysis
✅ Non-Repainting Signals - Signals form after candle close and never change
✅ Trend Continuation Tracking - BUY+/SELL+ signals for trend strength
✅ Structure Break Detection - Identifies major market shifts
✅ Visual Signal Line - Clear trend state indicator on chart
🎯 How The Signals Work
Signal Types:
BUY (Green) - Initial buy signal when all filters align
SELL (Red) - Initial sell signal when all filters align
BUY+ (Purple) - Second confirmation signal in uptrend
SELL+ (Purple) - Second confirmation signal in downtrend
Triangle Arrows - Additional trend continuation signals (optional)
Signal Formation:
⚠️ IMPORTANT: All signals form AFTER the second candle closes and MAY NOT REPAINT. Once a signal appears, it's final and will never disappear or change position.
🛠️ How To Use This Indicator
Basic Setup:
Add the indicator to any chart (works on all timeframes)
Default settings work for most instruments
Enable "Show Debug Info" to see real-time filter values
Set up alerts for automated notifications
Entry Strategies:
Conservative Approach:
Enter on BUY+ or SELL+ signals (purple labels)
These are second confirmations with higher probability
Wait for signal line color to match your trade direction
Aggressive Approach:
Enter on first BUY or SELL signals (green/red labels)
Use tight stop losses below/above recent swing points
Scale in with additional positions on BUY+/SELL+ signals
Exit Strategies:
Exit when opposite signal appears
Use trailing stops following the signal line
Take partial profits at key resistance/support levels
🔧 Advanced Filter Explanations
ATR Volatility Filter:
Ensures sufficient market movement before signaling
Percentage-based for universal compatibility
Higher values = fewer but higher quality signals
ADX Trend Strength:
Confirms trend momentum before entry
Default 15 works for most markets
Higher values filter out weak trends
Higher Timeframe Confirmation:
Aligns signals with larger trend direction
Default 1-hour works for most timeframes
Use 4H for daily charts, Daily for weekly charts
Structure Break Detection:
Identifies when price breaks significant levels
BOS+ signals indicate strong momentum
Percentage-based for universal scaling
🚨 Important Disclaimers
Signal Timing:
Signals appear AFTER second candle close only
low chance of repainting - signals never change once formed
Real-time bar shows potential signal until close
Risk Management:
This indicator provides signals, not trade outcomes
Always use proper position sizing and stop losses
Backtest thoroughly before live trading
Markets can remain irrational longer than expected
Early Access Notes:
This is a pre-release version with ongoing improvements
Settings may be refined based on user feedback
Additional features planned for future updates
Report any issues or suggestions for enhancement
as said before this is indicator is in its early days so is subject to big changes
Version 1.0 (22 JUNE 25)
Trade responsibly and always conduct your own analysis before making trading decisions.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuna uygun olarak, bu komut dosyasının oluşturucusu bunu açık kaynaklı hale getirmiştir, böylece yatırımcılar betiğin işlevselliğini inceleyip doğrulayabilir. Yazara saygı! Ücretsiz olarak kullanabilirsiniz, ancak kodu yeniden yayınlamanın Site Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuna uygun olarak, bu komut dosyasının oluşturucusu bunu açık kaynaklı hale getirmiştir, böylece yatırımcılar betiğin işlevselliğini inceleyip doğrulayabilir. Yazara saygı! Ücretsiz olarak kullanabilirsiniz, ancak kodu yeniden yayınlamanın Site Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.