OPEN-SOURCE SCRIPT

RRR EMA Ignition BUY & SELL (Sideways-Proof)

2 548
🔹 Description

RRR EMA Ignition Buy & Sell is a trend-following, non-repainting indicator designed to capture high-probability trend ignition points while filtering out sideways market noise.

Unlike basic EMA crossover systems that generate frequent false signals, this indicator uses a state-based trend engine, volatility filters, and trend strength confirmation to ensure signals appear only when a real directional move is underway.

It is optimized for swing trading and positional trading on stocks and indices.

🔹 Core Logic
🔼 BUY Signal (Bullish Ignition)

A BUY signal is generated only when all of the following conditions are met:

EMA 21 confirms bullish regime above EMA 55

EMA 9 shows momentum above EMA 21

Price is trading above EMA 55

Candle closes bullish (confirmation)

Trend strength is validated using ADX

EMA 55 is sloping upward

Price is sufficiently far from EMA 55 (ATR-based distance filter)

Only one BUY per bullish trend leg (no repeated signals)

🔽 SELL Signal (Bearish Ignition)

A SELL signal is the exact reverse of the BUY logic:

EMA 21 confirms bearish regime below EMA 55

EMA 9 shows bearish momentum below EMA 21

Price is trading below EMA 55

Candle closes bearish

ADX confirms trend strength

EMA 55 is sloping downward

ATR distance filter blocks sideways chop

Only one SELL per bearish trend leg

🔹 Key Features

✅ Non-repainting (signals appear only after candle close)

✅ Sideways-market protection using ATR + ADX

✅ State-based logic (prevents repeated BUY/SELL spam)

✅ Handles strong V-reversals using trend re-arm logic

✅ Clean signals suitable for alerts and automation

✅ Works across stocks, indices, and ETFs

🔹 Best Use Cases

📈 Swing trading on Daily / 4H charts

📊 Large-cap stocks and indices (Nifty, Bank Nifty, SPX, NASDAQ)

🚫 Not intended for low-timeframe scalping

🎯 Designed for trend capture, not range trading

🔹 Recommended Settings
Indian Stocks

ADX Minimum: 18

ATR Multiplier: 0.6 – 0.8

US Indices

ADX Minimum: 22

ATR Multiplier: 0.5

(Default settings work well for most instruments.)

🔹 How to Trade (Simple Guide)

Use BUY signals to enter or add to long positions

Use SELL signals to enter short positions or exit longs

Combine with:

Support/resistance

Higher-timeframe bias

Position sizing & risk management

🔹 Disclaimer

This indicator is a decision-support tool, not financial advice.
Always apply proper risk management and confirm signals with your own analysis.

Exención de responsabilidad

La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.