OPEN-SOURCE SCRIPT
50/100 EMA Crossover with Candle Confirmation

📘 **50/100 EMA Crossover with Candle Confirmation – Strategy Description**
The **50/100 EMA Crossover with Candle Confirmation** is a trend-following strategy designed to filter high-probability entries by combining exponential moving average (EMA) crossovers with strong price action confirmation. This strategy aims to reduce false signals commonly associated with EMA-only systems by requiring a **candle close confirmation in the direction of the trend**, making it more reliable for intraday or swing trading across Forex, crypto, and stock markets.
---
### 🔍 **Core Logic**
* The strategy is based on the interaction of the **50 EMA** (fast-moving average) and the **100 EMA** (slow-moving average).
* **Trend direction** is determined by the crossover:
* **Bullish Trend**: When the 50 EMA crosses **above** the 100 EMA.
* **Bearish Trend**: When the 50 EMA crosses **below** the 100 EMA.
* To **filter out false breakouts**, a **candle confirmation** is used:
* For a **Buy signal**: After a bullish crossover, wait for a strong bullish candle (e.g., full-body green candle) to **close above both EMAs**.
* For a **Sell signal**: After a bearish crossover, wait for a strong bearish candle to **close below both EMAs**.
---
### ✅ **Entry Conditions**
**Buy Entry:**
* 50 EMA crosses above 100 EMA.
* Latest candle closes **above both EMAs**.
* Candle must be bullish (green/full body preferred).
**Sell Entry:**
* 50 EMA crosses below 100 EMA.
* Latest candle closes **below both EMAs**.
* Candle must be bearish (red/full body preferred).
---
### 🛑 **Exit or Take-Profit Options**
* **Fixed TP/SL**: 1:2 or 1:3 risk-reward.
* **Trailing Stop**: Based on recent swing highs/lows or ATR.
* **EMA Exit**: Exit trade when the candle closes on the opposite side of 50 EMA.
---
### ⚙️ **Best Settings**
* **Timeframes**: 5M, 15M, 1H, 4H (works well on most).
* **Markets**: Forex, Crypto (e.g., BTC/ETH), Indices (e.g., NASDAQ, NIFTY50).
* **Recommended filters**:
* Use with RSI divergence or volume confirmation.
* Avoid using during high-impact news (especially on lower timeframes).
---
### 🧠 **Why This Works**
The 50/100 EMA crossover provides a **medium-term trend signal**, reducing noise seen in fast EMAs (like 9 or 21). The candle confirmation adds a **momentum filter**, ensuring price supports the directional bias. This makes it suitable for traders who want a balance of trend and entry precision without overcomplicating with too many indicators.
---
### 📈 **Advantages**
* Simple yet effective for identifying trends.
* Filters out fakeouts using candle confirmation.
* Easy to automate in Pine Script or other trading bots.
* Can be combined with support/resistance or SMC zones for better confluence.
---
### ⚠️ **Limitations**
* May lag slightly in ranging markets.
* Late entries possible due to confirmation candle.
* Works best with additional volume or volatility filter.
The **50/100 EMA Crossover with Candle Confirmation** is a trend-following strategy designed to filter high-probability entries by combining exponential moving average (EMA) crossovers with strong price action confirmation. This strategy aims to reduce false signals commonly associated with EMA-only systems by requiring a **candle close confirmation in the direction of the trend**, making it more reliable for intraday or swing trading across Forex, crypto, and stock markets.
---
### 🔍 **Core Logic**
* The strategy is based on the interaction of the **50 EMA** (fast-moving average) and the **100 EMA** (slow-moving average).
* **Trend direction** is determined by the crossover:
* **Bullish Trend**: When the 50 EMA crosses **above** the 100 EMA.
* **Bearish Trend**: When the 50 EMA crosses **below** the 100 EMA.
* To **filter out false breakouts**, a **candle confirmation** is used:
* For a **Buy signal**: After a bullish crossover, wait for a strong bullish candle (e.g., full-body green candle) to **close above both EMAs**.
* For a **Sell signal**: After a bearish crossover, wait for a strong bearish candle to **close below both EMAs**.
---
### ✅ **Entry Conditions**
**Buy Entry:**
* 50 EMA crosses above 100 EMA.
* Latest candle closes **above both EMAs**.
* Candle must be bullish (green/full body preferred).
**Sell Entry:**
* 50 EMA crosses below 100 EMA.
* Latest candle closes **below both EMAs**.
* Candle must be bearish (red/full body preferred).
---
### 🛑 **Exit or Take-Profit Options**
* **Fixed TP/SL**: 1:2 or 1:3 risk-reward.
* **Trailing Stop**: Based on recent swing highs/lows or ATR.
* **EMA Exit**: Exit trade when the candle closes on the opposite side of 50 EMA.
---
### ⚙️ **Best Settings**
* **Timeframes**: 5M, 15M, 1H, 4H (works well on most).
* **Markets**: Forex, Crypto (e.g., BTC/ETH), Indices (e.g., NASDAQ, NIFTY50).
* **Recommended filters**:
* Use with RSI divergence or volume confirmation.
* Avoid using during high-impact news (especially on lower timeframes).
---
### 🧠 **Why This Works**
The 50/100 EMA crossover provides a **medium-term trend signal**, reducing noise seen in fast EMAs (like 9 or 21). The candle confirmation adds a **momentum filter**, ensuring price supports the directional bias. This makes it suitable for traders who want a balance of trend and entry precision without overcomplicating with too many indicators.
---
### 📈 **Advantages**
* Simple yet effective for identifying trends.
* Filters out fakeouts using candle confirmation.
* Easy to automate in Pine Script or other trading bots.
* Can be combined with support/resistance or SMC zones for better confluence.
---
### ⚠️ **Limitations**
* May lag slightly in ranging markets.
* Late entries possible due to confirmation candle.
* Works best with additional volume or volatility filter.
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.