Phantom Dual Mode EA
- Experts
- Napat Puangjunkum
- Versione: 1.0
- Attivazioni: 5
Phantom Dual Mode EA
2-in-1 Trading System: Safe & Aggressive Modes for MetaTrader 5
Markets don't behave the same way every day. Some days are calm and ranging — perfect for buying dips. Other days are explosive with momentum — perfect for riding breakouts with trailing stops.
**Phantom Dual Mode EA** gives you two complete trading strategies in one EA. Simply switch between **Safe Mode** and **Aggressive Mode** based on the current market conditions.
---
The Two Modes
🛡️ Safe Mode — "Buy the Dip / Sell the Rally"
Best for: Ranging or early-trend markets.
- **Buy Signal**: EMA50 > EMA200 (Uptrend) + RSI < 40 (Oversold Dip)
- **Sell Signal**: EMA50 < EMA200 (Downtrend) + RSI > 60 (Overbought Rally)
- Uses fixed Stop Loss and Take Profit
- Conservative, high-probability entries
⚡ Aggressive Mode — "Momentum Breakout + Trailing Stop"
Best for: Strong trending or volatile markets.
- **Buy Signal**: EMA50 > EMA200 (Uptrend) + RSI 55-70 (Strong Momentum)
- **Sell Signal**: EMA50 < EMA200 (Downtrend) + RSI 30-45 (Bearish Momentum)
- Includes **Dynamic Trailing Stop** that locks in profits as price moves in your favor
- Aims for bigger wins by riding the trend
---
Key Features
1. Auto Lot Sizing
The EA automatically calculates your lot size based on your account balance. For every $10,000 in your account, it trades 0.01 lot. This ensures consistent risk management as your account grows.
2. Intelligent Trailing Stop (Aggressive Mode)
Once price moves a certain distance in profit, the EA automatically moves your Stop Loss to lock in gains. If price reverses, you keep the profit. If it continues, you ride the wave.
3. Session Filter
Built-in time filter ensures the EA only trades during active market hours (Mon-Fri, configurable start/end hours). No trades during dead Asian sessions or weekend gaps.
4. Broker Protection System
- **Auto-Volume Adjustment**: Lot sizes always comply with broker min/max/step rules.
- **Auto-Stop Adjustment**: SL/TP distances always respect broker minimum stop levels.
- **Margin Check**: Never opens a trade if there isn't enough free margin.
---
Parameters
Strategy Mode
| Parameter | Default | Description |
| Trading Mode | Safe | Switch between Safe and Aggressive |
Indicator Settings
| Parameter | Default | Description |
| Fast EMA | 50 | Fast Exponential Moving Average |
| Slow EMA | 200 | Slow Exponential Moving Average |
| RSI Period | 14 | Relative Strength Index period |
Safe Mode Settings
| Parameter | Default | Description |
| Buy RSI Threshold | 40 | Buy when RSI drops below this |
| Sell RSI Threshold | 60 | Sell when RSI rises above this |
Aggressive Mode Settings
| Parameter | Default | Description |
| Buy RSI Low/High | 55/70 | Buy within this momentum range |
| Sell RSI Low/High | 30/45 | Sell within this momentum range |
| Trailing Stop | 250 | Trailing distance in points |
Risk Management
| Parameter | Default | Description |
| Balance per 0.01 Lot | 10000 | Auto lot scaling factor |
| Stop Loss | 500 | SL distance in points |
| Take Profit | 1000 | TP distance in points |
| Max Positions | 1 | Maximum simultaneous positions |
---
Recommended Settings by Trading Style
Scalper (M15 - M30)
| Parameter | Value |
| Mode | Aggressive |
| Fast EMA | 20 |
| Slow EMA | 50 |
| Buy RSI Low/High | 55 / 70 |
| Stop Loss | 200 |
| Take Profit | 400 |
| Trailing Stop | 150 |
Day Trader (H1)
| Parameter | Value |
| Mode | Safe |
| Fast EMA | 50 |
| Slow EMA | 200 |
| Buy RSI Threshold | 35 |
| Sell RSI Threshold | 65 |
| Stop Loss | 500 |
| Take Profit | 1000 |
Swing Trader (H4 - D1)
| Parameter | Value |
| Mode | Safe |
| Fast EMA | 50 |
| Slow EMA | 200 |
| Buy RSI Threshold | 30 |
| Sell RSI Threshold | 70 |
| Stop Loss | 800 |
| Take Profit | 1500 |
Gold (XAUUSD) Specialist
| Parameter | Value |
| Mode | Aggressive |
| Fast EMA | 20 |
| Slow EMA | 100 |
| Buy RSI Low/High | 50 / 65 |
| Stop Loss | 1000 |
| Take Profit | 2000 |
| Trailing Stop | 500 |
---
How to Optimize
Use the MT5 Strategy Tester to find the best parameters for your symbol:
1. Open **Strategy Tester** → Select `Phantom Dual Mode EA`
2. Set **Optimization** → `Slow complete algorithm`
3. Set **Optimization criterion** → `Maximum Profit Factor`
4. Set **Forward** → `1/3` (validates that results are not over-fitted)
Recommended Optimization Ranges
Round 1 — Core Logic:
| Parameter | Start | Step | Stop |
| Trading Mode | ☑ Tick checkbox (tests both modes)
| Buy RSI (Safe) | 25 | 5 | 45 |
| Sell RSI (Safe) | 55 | 5 | 75 |
| Stop Loss | 300 | 100 | 800 |
| Take Profit | 500 | 200 | 1500 |
Round 2 — Aggressive Tuning:**
| Parameter | Start | Step | Stop |
| Buy RSI Low (Agg) | 50 | 5 | 65 |
| Buy RSI High (Agg) | 65 | 5 | 80 |
| Trailing Stop | 150 | 50 | 400 |
Round 3 — EMA & Risk:**
| Parameter | Start | Step | Stop |
| Fast EMA | 20 | 10 | 50 |
| Slow EMA | 100 | 50 | 200 |
| Balance per Lot | 5000 | 2500 | 15000 |
What to Look For
- **Profit Factor > 1.5** (Good)
- **Max Drawdown < 10%** (Safe)
- **Total Trades > 50** (Statistically reliable)
- **Forward test must also be profitable** (Not over-fitted)
