OPEN-SOURCE SCRIPT

EMA100 Breakout by shubh

156
This indicator is a clean, price-action-based breakout system designed for disciplined trend trading on any timeframe — especially for Nifty and Bank Nifty spot, futures, and options charts.
It uses a single 100-period EMA to define trend direction and waits for decisive candle closes across the EMA to trigger potential entries.
The logic ensures only one active trade at a time, enforcing patience and clarity in decision-making.

⚙️ Core Logic

Buy Setup

A bullish candle closes above the 100 EMA while its open was below the EMA.

Entry occurs at candle close.

Stop-Loss (SL): Low of the signal candle.

Target (TP): 4 × the SL distance (Risk : Reward = 1 : 4).

Sell Setup

A bearish candle closes below the 100 EMA while its open was above the EMA.

Entry occurs at candle close.

Stop-Loss (SL): High of the signal candle.

Target (TP): 4 × the SL distance.

Trade Management

Only one trade may run at a time (either long or short).

New signals are ignored until the current position hits SL or TP.

Transparent labels show Entry, SL, and TP levels on chart.

Dotted lines visualize active Stop-Loss (red) and Target (green).

Exit markers:

✅ Target Hit

❌ Stop Loss Hit

🧠 Key Advantages

Simple and transparent trend-following logic.

Enforces disciplined “one-trade-at-a-time” behavior.

High risk-to-reward (1 : 4).

Works across timeframes — 5 min to Daily.

Ideal for intraday and positional setups.

📊 Suggested Use

Apply on Nifty / Bank Nifty spot or futures charts.

Works on any instrument with clear momentum swings.

Best confirmation when EMA 100 acts as dynamic support/resistance.

⚠️ Disclaimer

This script is for educational and research purposes only.
It is not financial advice or an invitation to trade.
Always backtest thoroughly and manage risk responsibly before applying in live markets.

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。