PROTECTED SOURCE SCRIPT
Bipen Mann 50EMA Setup

Here is a **clean, professional indicator description** written exactly for your **final script and logic**.
You can **copy–paste this directly** into TradingView when you save or publish the indicator.
---
## 📌 Bipen Mann 50EMA Setup
**Bipen Mann 50EMA Setup** is a rule-based trend continuation indicator designed to give **clean, high-probability entries** using **EMA 50**, **retests**, and **structure breaks**.
It avoids early entries and noise by confirming price behavior **before and after the EMA retest**.
This indicator works on **all markets** (Forex, Indices, Crypto, Commodities) and automatically adapts to the **timeframe selected on the chart**.
---
## 🔵 BUY Setup Logic
A **BUY setup** is created using the following sequence:
1. Price must be **above the 50 EMA**
2. While price remains above EMA:
* The indicator tracks the **most recent RED (bearish) candle**
3. Price must **touch the EMA 50** (wick or body — both are valid)
* If the retest candle itself is red, it is used as the trigger candle
4. After the retest:
* A **BUY signal is generated when price breaks the HIGH of the most recent RED candle that occurred before (or at) the EMA retest**
5. **Stop Loss**
* Automatically placed at the **low of the trigger red candle**
➡️ **Entries always occur AFTER the EMA retest**
---
## 🔴 SELL Setup Logic
A **SELL setup** follows the exact opposite rules:
1. Price must be **below the 50 EMA**
2. While price remains below EMA:
* The indicator tracks the **most recent GREEN (bullish) candle**
3. Price must **touch the EMA 50**
* If the retest candle itself is green, it is used as the trigger candle
4. After the retest:
* A **SELL signal is generated when price breaks the LOW of the most recent GREEN candle that occurred before (or at) the EMA retest**
5. **Stop Loss**
* Automatically placed at the **high of the trigger green candle**
---
## 📊 Visual Elements
* **EMA 50** plotted on the chart
* **Entry trigger lines**
* 🟢 Green line → BUY entry
* 🔴 Red line → SELL entry
* **Stop-loss lines**
* 🟡 Yellow line → BUY stop loss
* 🔵 Light blue line → SELL stop loss
* **Small, clean arrows** for entries:
* ▲ Green triangle → BUY
* ▼ Red triangle → SELL
*(No large labels or filled boxes for a clean chart)*
Both BUY and SELL setups can appear **at the same time**, allowing up to **four lines** on the chart.
---
## ⚙️ Indicator Settings
* **EMA Length**
Default: 50 (can be adjusted)
* **Expire setup after retest (bars)**
Cancels the setup if price does not break the trigger within the specified number of candles
* **Require candle CLOSE beyond trigger**
* ON → Conservative confirmation (close break)
* OFF → Aggressive entry (wick break allowed)
---
## 🎯 Best Use Case
* Trending markets
* Pullback & continuation strategies
* Works best on **M15, H1, H4**
* Suitable for **Gold (XAUUSD), Forex pairs, Indices, Crypto**
---
## ⚠️ Notes
* No signal will appear if:
* EMA is not retested
* No opposite candle exists before the retest
* This behavior is intentional to **filter low-quality trades**
* The indicator is a **confirmation tool**, not a prediction tool
---
You can **copy–paste this directly** into TradingView when you save or publish the indicator.
---
## 📌 Bipen Mann 50EMA Setup
**Bipen Mann 50EMA Setup** is a rule-based trend continuation indicator designed to give **clean, high-probability entries** using **EMA 50**, **retests**, and **structure breaks**.
It avoids early entries and noise by confirming price behavior **before and after the EMA retest**.
This indicator works on **all markets** (Forex, Indices, Crypto, Commodities) and automatically adapts to the **timeframe selected on the chart**.
---
## 🔵 BUY Setup Logic
A **BUY setup** is created using the following sequence:
1. Price must be **above the 50 EMA**
2. While price remains above EMA:
* The indicator tracks the **most recent RED (bearish) candle**
3. Price must **touch the EMA 50** (wick or body — both are valid)
* If the retest candle itself is red, it is used as the trigger candle
4. After the retest:
* A **BUY signal is generated when price breaks the HIGH of the most recent RED candle that occurred before (or at) the EMA retest**
5. **Stop Loss**
* Automatically placed at the **low of the trigger red candle**
➡️ **Entries always occur AFTER the EMA retest**
---
## 🔴 SELL Setup Logic
A **SELL setup** follows the exact opposite rules:
1. Price must be **below the 50 EMA**
2. While price remains below EMA:
* The indicator tracks the **most recent GREEN (bullish) candle**
3. Price must **touch the EMA 50**
* If the retest candle itself is green, it is used as the trigger candle
4. After the retest:
* A **SELL signal is generated when price breaks the LOW of the most recent GREEN candle that occurred before (or at) the EMA retest**
5. **Stop Loss**
* Automatically placed at the **high of the trigger green candle**
---
## 📊 Visual Elements
* **EMA 50** plotted on the chart
* **Entry trigger lines**
* 🟢 Green line → BUY entry
* 🔴 Red line → SELL entry
* **Stop-loss lines**
* 🟡 Yellow line → BUY stop loss
* 🔵 Light blue line → SELL stop loss
* **Small, clean arrows** for entries:
* ▲ Green triangle → BUY
* ▼ Red triangle → SELL
*(No large labels or filled boxes for a clean chart)*
Both BUY and SELL setups can appear **at the same time**, allowing up to **four lines** on the chart.
---
## ⚙️ Indicator Settings
* **EMA Length**
Default: 50 (can be adjusted)
* **Expire setup after retest (bars)**
Cancels the setup if price does not break the trigger within the specified number of candles
* **Require candle CLOSE beyond trigger**
* ON → Conservative confirmation (close break)
* OFF → Aggressive entry (wick break allowed)
---
## 🎯 Best Use Case
* Trending markets
* Pullback & continuation strategies
* Works best on **M15, H1, H4**
* Suitable for **Gold (XAUUSD), Forex pairs, Indices, Crypto**
---
## ⚠️ Notes
* No signal will appear if:
* EMA is not retested
* No opposite candle exists before the retest
* This behavior is intentional to **filter low-quality trades**
* The indicator is a **confirmation tool**, not a prediction tool
---
Geschütztes Skript
Dieses Script ist als Closed-Source veröffentlicht. Sie können es kostenlos und ohne Einschränkungen verwenden – erfahren Sie hier mehr.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.
Geschütztes Skript
Dieses Script ist als Closed-Source veröffentlicht. Sie können es kostenlos und ohne Einschränkungen verwenden – erfahren Sie hier mehr.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.