OPEN-SOURCE SCRIPT

Bipen Mann 50EMA Setup

115
📌 Bipen Mann 50EMA Setup

Bipen Mann 50EMA Setup is a trend-continuation indicator built around EMA 50, price retests, and structure-based break entries.
It is designed to avoid premature entries by waiting for a confirmed EMA retest first, and then entering only on a break of the most recent opposite candle.

The indicator works on all symbols and all timeframes, adapting automatically to the chart timeframe.

🟢 BUY Logic (Above EMA 50)

A BUY setup follows this exact sequence:

Price must be above EMA 50

While price remains on the above-EMA side (by wick):

The indicator continuously tracks the most recent RED (bearish) candle

Price must retest EMA 50

A retest is valid if wick OR body touches EMA

If the retest candle itself is red, it is used as the trigger candle
Otherwise, the most recent red candle before the retest is used

BUY entry is triggered when price breaks the HIGH of that red candle

Stop-loss is placed at the LOW of the same red candle

➡️ Entries always occur after the EMA retest.

🔴 SELL Logic (Below EMA 50)

A SELL setup is the mirror of the buy logic:

Price must be below EMA 50

While price remains on the below-EMA side (by wick):

The indicator tracks the most recent GREEN (bullish) candle

Price must retest EMA 50

Wick or body touch is valid

If the retest candle itself is green, it is used as the trigger candle
Otherwise, the most recent green candle before the retest is used

SELL entry is triggered when price breaks the LOW of that green candle

Stop-loss is placed at the HIGH of the same 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

▲ Green triangle → BUY

▼ Red triangle → SELL

Both BUY and SELL setups can exist at the same time, allowing up to four lines on the chart when applicable.

⚙️ Indicator Settings

EMA Length – default 50 (adjustable)

Expire setup after retest (bars)
Cancels a 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 well on M15, H1, H4

Suitable for Forex, Gold (XAUUSD), Indices, and Crypto

⚠️ Important Notes

No signal will appear if:

EMA is not retested

No opposite candle exists before or at the retest

Wick-based logic is intentionally used to avoid missing valid setups

This indicator is a confirmation tool, not a prediction tool

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.