OPEN-SOURCE SCRIPT
15m-REMA Breakout [XAU + XAG] – Mus

Description
This indicator is designed to capture high-conviction breakout opportunities on gold (XAUUSD) and silver (XAGUSD) using a zero-lag Recursive EMA (REMA) as the trend backbone, combined with volatility and body-strength filters.
It is tuned for the 15-minute timeframe, where metals often show sharp moves after consolidation.
How it works
Signals
Inputs / Customisation
Best Practice
Alerts
Built-in alert conditions let you set automated notifications for bullish or bearish breakouts at bar close.
Disclaimer
This script is for educational purposes only. It does not constitute financial advice. Always test on demo before applying to live trading.
This indicator is designed to capture high-conviction breakout opportunities on gold (XAUUSD) and silver (XAGUSD) using a zero-lag Recursive EMA (REMA) as the trend backbone, combined with volatility and body-strength filters.
It is tuned for the 15-minute timeframe, where metals often show sharp moves after consolidation.
How it works
- Zero-Lag REMA → Smooth but responsive trend detection.
- ATR-based Breakout Filter → Confirms that price clears recent highs/lows with volatility support.
- Body Size & Buffer Rules → Blocks weak candles and fake breaks near range levels.
- Trend Filter (optional) → Only allows signals in the dominant REMA slope direction.
- De-duplication Logic → Avoids repeated signals on consecutive bars.
Signals
- Green ▲ (Bull Breakout): Candle breaks above recent range with strength.
- Red ▼ (Bear Breakout): Candle breaks below recent range with strength.
- Optional Pivots: Micro pivot highs/lows for additional context.
- REMA Line: Plotted in teal (uptrend) or orange (downtrend).
Inputs / Customisation
- REMA period & sensitivity.
- ATR lookback and multiplier.
- Minimum candle body (%).
- Buffer multiplier to reduce noise.
- Trend filter on/off.
- Toggle arrows & pivot markers.
Best Practice
- Apply on XAUUSD / XAGUSD, 15-minute charts.
- Use as a confirmation tool, not a standalone entry system.
- Combine with higher-timeframe bias or your own risk management.
Alerts
Built-in alert conditions let you set automated notifications for bullish or bearish breakouts at bar close.
Disclaimer
This script is for educational purposes only. It does not constitute financial advice. Always test on demo before applying to live trading.
Script de código aberto
No verdadeiro espirito do TradingView, o autor desse script o publicou como código aberto, para que os traders possam entendê-lo e verificá-lo. Parabéns ao autor Você pode usá-lo gratuitamente, mas a reutilização desse código em publicações e regida pelas Regras da Casa.
Aviso legal
As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.
Script de código aberto
No verdadeiro espirito do TradingView, o autor desse script o publicou como código aberto, para que os traders possam entendê-lo e verificá-lo. Parabéns ao autor Você pode usá-lo gratuitamente, mas a reutilização desse código em publicações e regida pelas Regras da Casa.
Aviso legal
As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.