PROTECTED SOURCE SCRIPT
Trilok saini EMA Pullback + MACD + ADX Strategy

📌 HA Double EMA Pullback + MACD + ADX Strategy — Description
This strategy combines Heikin Ashi candles, Double EMA pullbacks, MACD momentum filtering, and ADX trend-strength confirmation to generate high-probability trend-continuation signals.
It is designed to avoid choppy markets and focus only on strong trending conditions.
🔥 Key Features
1️⃣ Heikin Ashi Trend Analysis
Heikin Ashi candles are calculated on the selected timeframe.
They smooth out market noise to highlight clear bullish or bearish trends.
Trend direction is displayed in a live info table.
2️⃣ Double EMA Pullback Logic
The main signal engine of this strategy:
Buy conditions
Price crosses above EMA 20
EMA 20 > EMA 50 (confirming uptrend)
A pullback is detected using the back-step (price was above EMA earlier)
MACD + ADX filters approve the trade
Sell conditions
Price crosses below EMA 20
EMA 20 < EMA 50 (confirming downtrend)
Pullback confirmation based on earlier price action
MACD + ADX filters approve the trade
This logic focuses on trend continuation instead of reversal setups.
3️⃣ MACD Momentum Filter
Buy signals appear only when MACD histogram is positive (green).
Sell signals appear only when MACD histogram is negative (red).
Prevents entries during weak or directionless momentum.
4️⃣ ADX Trend Strength Filter
Signals are blocked when ADX is below the selected threshold.
Ensures trades happen only in strong trending markets, reducing false signals.
5️⃣ Visual Enhancements
Clean Heikin Ashi candles with customizable colors
Optional regular candles for comparison
EMA overlays on HA candles
Buy/Sell labels with customizable text
Info table showing:
Trend direction
HA close
Regular close
EMA values
ADX reading
Active filters
🎯 Ideal Use Cases
Trend-following traders
Swing traders
Intraday traders who want filtered signals
Anyone wanting fewer false signals in sideways markets
⚠️ Disclaimer
This script is for educational and research purposes only.
Past performance does not guarantee future results. Always backtest and use proper risk management.
This strategy combines Heikin Ashi candles, Double EMA pullbacks, MACD momentum filtering, and ADX trend-strength confirmation to generate high-probability trend-continuation signals.
It is designed to avoid choppy markets and focus only on strong trending conditions.
🔥 Key Features
1️⃣ Heikin Ashi Trend Analysis
Heikin Ashi candles are calculated on the selected timeframe.
They smooth out market noise to highlight clear bullish or bearish trends.
Trend direction is displayed in a live info table.
2️⃣ Double EMA Pullback Logic
The main signal engine of this strategy:
Buy conditions
Price crosses above EMA 20
EMA 20 > EMA 50 (confirming uptrend)
A pullback is detected using the back-step (price was above EMA earlier)
MACD + ADX filters approve the trade
Sell conditions
Price crosses below EMA 20
EMA 20 < EMA 50 (confirming downtrend)
Pullback confirmation based on earlier price action
MACD + ADX filters approve the trade
This logic focuses on trend continuation instead of reversal setups.
3️⃣ MACD Momentum Filter
Buy signals appear only when MACD histogram is positive (green).
Sell signals appear only when MACD histogram is negative (red).
Prevents entries during weak or directionless momentum.
4️⃣ ADX Trend Strength Filter
Signals are blocked when ADX is below the selected threshold.
Ensures trades happen only in strong trending markets, reducing false signals.
5️⃣ Visual Enhancements
Clean Heikin Ashi candles with customizable colors
Optional regular candles for comparison
EMA overlays on HA candles
Buy/Sell labels with customizable text
Info table showing:
Trend direction
HA close
Regular close
EMA values
ADX reading
Active filters
🎯 Ideal Use Cases
Trend-following traders
Swing traders
Intraday traders who want filtered signals
Anyone wanting fewer false signals in sideways markets
⚠️ Disclaimer
This script is for educational and research purposes only.
Past performance does not guarantee future results. Always backtest and use proper risk management.
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể sử dụng tự do và không giới hạn – tìm hiểu thêm tại đây.
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ã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể sử dụng tự do và không giới hạn – tìm hiểu thêm tại đây.
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.