Supernova Detonation MT4
- Experts
- Versão: 8.6
- Ativações: 10
# SUPERNOVA DETONATION - Momentum Compression Breakout EA
Youtube Video link : SUPERNOVA DETONATION in action
https://youtu.be/3Sx2mL8Zxok
## Overview
Supernova Detonation is a professional-grade Expert Advisor that detects **momentum compression patterns** (doji-like candles within a consolidation zone) and enters on the **breakout** with smart entry timing and multi-layer protection.
Unlike typical breakout EAs that trade aggressively and burn accounts during news spikes, Supernova Detonation prioritizes **capital preservation** through 15+ safety layers while capturing high-probability breakout moves.
**Perfect for traders who value safety over aggressive risk.**
---
## Core Strategy
**Momentum Compression Breakout** works on a simple principle:
1. **Detect** low-volatility compression zones (doji candles = market indecision)
2. **Wait** for a confirmed breakout with color + reference confirmation
3. **Enter** with pending limit orders for better price (not market chase)
4. **Manage** with dynamic breakeven, smart trailing, and ATR-based targets
This catches explosive moves that follow periods of consolidation.
---
## Key Features
### 🎯 SMART ENTRY SYSTEM
- **Compression detection** with configurable doji body ratio
- **Dual confirmation mode** (candle color + reference close)
- **Intra-candle fast entry** for early positioning (optional)
- **Pending limit orders** for better entry price (not chasing)
- **Anti-chase filter** — skips stale setups
- **Configurable pending offset** (points from current price)
### 🛡️ MULTI-LAYER SAFETY (15+ PROTECTION LAYERS)
**News & Event Protection:**
- **News filter** using MQL5 Economic Calendar
- Configurable blocking window (before/after news)
- **Emergency news close** — closes positions before HIGH-impact news
- Filter by currency, importance level, or all-news
**Volatility Protection:**
- **ATR Spike filter** — blocks entries during volatility spikes
- **Velocity filter** — detects abnormal candle speed
- **Wick chaos filter** (optional) — blocks indecision patterns
- **Sideways filter** (optional) — blocks low-range markets
**Risk Management:**
- **Drawdown guard** — stops trading if equity drops below threshold
- **Daily loss limit** — closes all positions if daily loss exceeds %
- **Max loss per position** — auto-closes individual losing trades
- **Loss streak cooldown** — pauses trading after consecutive losses
- **Max holding time** — auto-closes trades held too long
**Market Conditions:**
- **Spread filter** — blocks entries when spread is too wide
- **Freeze-zone protection** — prevents broker rejections
- **Weekend protection** — closes positions before weekend
- **Weekend entry block** — avoids Friday/Sunday gaps
### 💰 PROFIT MANAGEMENT
- **Auto-lot sizing** based on account risk %
- **Fixed lot** option for manual control
- **Breakeven stop** — moves SL to profit lock automatically
- **Smart trailing stop** — trails SL with customizable distance
- **ATR-based SL/TP** (optional) — adapts to market volatility
- **Take Profit** with RR configurable ratio
- **Pending order management** with expiry
### 🎨 VISUAL INTERFACE
- **Live info panel** showing account, positions, P/L, and safety status
- **Visual SL/TP/Entry lines** with price labels on chart
- **Trigger level line** for setup monitoring
- **Anti-chase boundary lines** showing max chase distance
- **Pending order visualization** with colored lines
- **Trade history labels** — emoji P/L markers on closed trades (☺ profit / ☹ loss)
- **Shows pips and money** per closed trade
### ⚙️ FLEXIBLE CONFIGURATION
- **Every parameter configurable** — no hardcoded values
- **Auto-lot mode** for proportional risk
- **Manual mode** for fixed lot traders
- **Direction filter** — Both / BUY-only / SELL-only
- **Multi-position support** with hedging option
- **Unique MagicNumber** support for multi-pair trading
---
## How It Works
### Entry Logic
1. EA scans for **compression candles** (doji patterns within range)
2. When a signal candle confirms direction, EA prepares a setup
3. **Pending limit order** is placed slightly off-market for better fill
4. **Safety gate** checks all filters before order placement
5. Order triggers only if:
- News is not nearby
- Volatility is normal
- Spread is acceptable
- No cooldown active
- Setup is still fresh
### Exit Logic
1. **Initial SL/TP** set on entry
2. **Breakeven** locks profit after +X points
3. **Trailing stop** follows price with dynamic distance
4. **Emergency close** for HIGH-impact news
5. **Guard closes** if drawdown or daily loss exceeded
---
## Recommended Settings
**Symbol:** EURUSD, GBPUSD, USDJPY, AUDUSD
**Timeframe:** H1 (M30 for more trades)
**Minimum Balance:** $100 (AutoLot) or $500 (fixed lot)
**Broker Type:** ECN with tight spreads
**Recommended Lot:** Auto-lot ON or 0.01 fixed
**Test Period:** 6+ months backtest before live
**Forward Test:** 2-4 weeks on demo
---
## Installation
1. Copy `SupernovaDetonation.ex5` to `MQL5/Experts/`
2. Restart MT5 or refresh Navigator
3. Drag EA onto desired chart
4. Configure inputs (defaults work for EURUSD H1)
5. Enable AlgoTrading
6. Verify smiley face icon in top-right corner
---
## Advantages
✅ **Professional-grade safety** — 15+ protection layers
✅ **Fully configurable** — every parameter adjustable
✅ **Auto-adaptive lot sizing** — proportional risk management
✅ **Visual feedback** — clear chart display + info panel
✅ **Freeze-zone protection** — no broker rejections
✅ **Emergency news close** — protects open positions
✅ **Beginner friendly** — sensible defaults
✅ **Multi-pair compatible** — use on any symbol
---
## Important Notes
⚠️ **Risk Warning:** Trading forex carries significant risk. Past performance does not guarantee future results. Use only risk capital you can afford to lose.
⚠️ **Backtest vs Live:** Always test on demo for 2-4 weeks before live trading.
⚠️ **Broker Requirements:** MT5 build 2085+ for Economic Calendar support.
⚠️ **Strategy Suitability:** Best on trending pairs with clean volatility (EURUSD, GBPUSD, USDJPY).
⚠️ **Not a Grail:** This EA manages risk well but no EA wins 100%. Expect losing trades.
---
## Support
For questions, custom modifications, or bug reports — contact via MQL5 message.
**Recommended: Test thoroughly before live trading. Capital preservation is priority.**
** Important Note
The trader retains full control during live trading. You can intervene at any time — close positions manually, take profit early, adjust the stop loss, or modify parameters to suit each asset.
Recommended Settings per Pair (or customize based on your own analysis)
When switching pairs, only these 5 inputs need adjustment:
| Input | EURUSD | GBPUSD | USDJPY | AUDUSD | XAUUSD |
|---|---|---|---|---|---|
| SL_Points | 300 | 350 | 400 | 250 | 800 |
| TP_Points | 600 | 700 | 800 | 500 | 1600 |
| SpikeATRMultiplier | 2.5 | 2.5 | 3.5 | 2.5 | 3.0 |
| MaxSpreadPoints | 50 | 60 | 80 | 50 | 150 |
| MinRangePoints | 50 | 55 | 60 | 40 | 150 |
All other inputs: keep at default values.
---
## Version History
**v8.05** — Freeze-zone protection, auto-lot, full safety stack
**v8.00** — MQL5 Market Edition
**v7.00** — Fortress Edition (15+ safety layers)
**v6.00** — Protection Edition (news, spike, velocity, DD guards)
**v5.00** — Base strategy (compression breakout)
---
*Developed for serious traders who value capital preservation over quick wins.*
