OPEN-SOURCE SCRIPT
Hungpixi MACD Enhanced MTF with Signal Filter & Anti-Sideway

Description:
This is an enhanced multi-timeframe (MTF) MACD strategy for TradingView, built with signal filters, anti-sideway logic, and a detailed stats table. It identifies buy/sell opportunities with trend-following or counter-trend signals and provides Bybit-ready JSON alerts for automated trading.
Key Features:
Multiple signal modes: Buy Trend, Buy Counter, Sell Trend, Sell Counter, Strong Buy, Strong Sell. Toggle each signal type to suit your testing needs.
Anti-Sideway Filter: EMA 34 & 89 on 30-min chart plus ATR filter to eliminate sideways market noise.
Multi-Timeframe Analysis (MTF): Automatically calculates signals from higher timeframes and combines with current timeframe for more reliable entries.
Dynamic ATR Stop Loss: Stop-loss levels adapt to market volatility using ATR.
Visual Stats Table: Tracks Equity, Net %, Closed Trades, Win Rate, Profit, and Max Drawdown directly on the chart.
Bybit JSON Alerts: Fully formatted alerts for direct use with trading bots or alert systems.
Customizable Parameters:
- MACD Fast/Slow/Signal lengths
- Cross Score, Indicator Direction Score, Histogram Score
- ATR Stop Multiplier & Period
- EMA Periods, ATR Filter, Minimum ATR for entries
How to Use:
- Import the script into TradingView (Pine Script v6).
- Enable/disable the signal modes as needed.
- Set up JSON alerts to connect with Bybit or your trading bot.
- Monitor the stats table to evaluate strategy performance over time.
Notes:
Works on all TradingView symbols, especially crypto, forex, and stock markets. Always backtest thoroughly before trading live. Give feedback on adjustments for better performance in different markets or timeframes. Telegram contact: hungpixi
This is an enhanced multi-timeframe (MTF) MACD strategy for TradingView, built with signal filters, anti-sideway logic, and a detailed stats table. It identifies buy/sell opportunities with trend-following or counter-trend signals and provides Bybit-ready JSON alerts for automated trading.
Key Features:
Multiple signal modes: Buy Trend, Buy Counter, Sell Trend, Sell Counter, Strong Buy, Strong Sell. Toggle each signal type to suit your testing needs.
Anti-Sideway Filter: EMA 34 & 89 on 30-min chart plus ATR filter to eliminate sideways market noise.
Multi-Timeframe Analysis (MTF): Automatically calculates signals from higher timeframes and combines with current timeframe for more reliable entries.
Dynamic ATR Stop Loss: Stop-loss levels adapt to market volatility using ATR.
Visual Stats Table: Tracks Equity, Net %, Closed Trades, Win Rate, Profit, and Max Drawdown directly on the chart.
Bybit JSON Alerts: Fully formatted alerts for direct use with trading bots or alert systems.
Customizable Parameters:
- MACD Fast/Slow/Signal lengths
- Cross Score, Indicator Direction Score, Histogram Score
- ATR Stop Multiplier & Period
- EMA Periods, ATR Filter, Minimum ATR for entries
How to Use:
- Import the script into TradingView (Pine Script v6).
- Enable/disable the signal modes as needed.
- Set up JSON alerts to connect with Bybit or your trading bot.
- Monitor the stats table to evaluate strategy performance over time.
Notes:
Works on all TradingView symbols, especially crypto, forex, and stock markets. Always backtest thoroughly before trading live. Give feedback on adjustments for better performance in different markets or timeframes. Telegram contact: hungpixi
Skrip sumber terbuka
Dalam semangat TradingView sebenar, pencipta skrip ini telah menjadikannya sumber terbuka, jadi pedagang boleh menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupuan anda boleh menggunakan secara percuma, ingat bahawa penerbitan semula kod ini tertakluk kepada Peraturan Dalaman.
Penafian
Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat TradingView sebenar, pencipta skrip ini telah menjadikannya sumber terbuka, jadi pedagang boleh menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupuan anda boleh menggunakan secara percuma, ingat bahawa penerbitan semula kod ini tertakluk kepada Peraturan Dalaman.
Penafian
Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.