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
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.