OPEN-SOURCE SCRIPT
Double EMA + Ma Pullback by vimel

🧠 Combined Double EMA + MA Pullback Strategy
This indicator merges two popular trend-following and pullback trading concepts into a single, powerful tool:
🔹 1. Double EMA Pullback Logic
Uses two EMAs (default 20 & 50) to define trend direction.
Buy Signal: Triggered when price crosses above the shorter EMA and is above the longer EMA.
Sell Signal: Triggered when price crosses below the shorter EMA and is below the longer EMA.
Ideal for momentum-based trend continuation setups.
🔸 2. MA Cloud Pullback Strategy
Uses three EMAs to form a dynamic cloud zone.
Cloud Buy: Price dips into the cloud (pullback) and breaks out upward with bullish momentum.
Cloud Sell: Price rallies into the cloud and breaks down with bearish momentum.
Additional filters:
Candle body % strength (momentum validation).
Historical interaction with cloud (bar_limit lookback).
Designed to catch pullbacks within strong trends.
📈 Visuals
EMA lines and dynamic cloud with color fill.
Clear Buy and Sell markers for both systems:
D Buy / D Sell: Double EMA Pullback.
Buy / Sell: MA Cloud Pullback.
⚙️ Inputs
Fully customizable EMA lengths and sources.
Toggle each EMA independently.
Adjust candle strength % and backstep limit for fine-tuning entries.
📣 Ideal For
Trend traders who want both momentum and pullback confirmation.
Works well in strong directional markets (crypto, forex, indices).
Can be combined with volume or higher timeframe filters for added precision.
This indicator merges two popular trend-following and pullback trading concepts into a single, powerful tool:
🔹 1. Double EMA Pullback Logic
Uses two EMAs (default 20 & 50) to define trend direction.
Buy Signal: Triggered when price crosses above the shorter EMA and is above the longer EMA.
Sell Signal: Triggered when price crosses below the shorter EMA and is below the longer EMA.
Ideal for momentum-based trend continuation setups.
🔸 2. MA Cloud Pullback Strategy
Uses three EMAs to form a dynamic cloud zone.
Cloud Buy: Price dips into the cloud (pullback) and breaks out upward with bullish momentum.
Cloud Sell: Price rallies into the cloud and breaks down with bearish momentum.
Additional filters:
Candle body % strength (momentum validation).
Historical interaction with cloud (bar_limit lookback).
Designed to catch pullbacks within strong trends.
📈 Visuals
EMA lines and dynamic cloud with color fill.
Clear Buy and Sell markers for both systems:
D Buy / D Sell: Double EMA Pullback.
Buy / Sell: MA Cloud Pullback.
⚙️ Inputs
Fully customizable EMA lengths and sources.
Toggle each EMA independently.
Adjust candle strength % and backstep limit for fine-tuning entries.
📣 Ideal For
Trend traders who want both momentum and pullback confirmation.
Works well in strong directional markets (crypto, forex, indices).
Can be combined with volume or higher timeframe filters for added precision.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.