Institutional quant trader EA
- Experts
- Januaries Mwaka Mawioo
- 버전: 4.0
- 업데이트됨: 8 4월 2026
- 활성화: 5
MetaTrader 5 Expert Advisor | Structural Levels Trading with Pattern Confirmation
Overview
Dealer Mirror EA is a professional trading robot that executes mean-reversion and momentum strategies based on structural dealer option levels. The EA monitors Put Walls, Call Walls, Deep Puts, Max Pain, and Secondary Call levels, entering trades only when confirmed by M15 candlestick patterns.
This strategy is designed for traders who understand the mechanics of dealer gamma exposure and structural support/resistance levels.
How It Works
The EA tracks up to four symbols simultaneously, each with its own set of structural levels. When price enters a predefined trigger zone around a level, the EA waits for confirmation on the M15 timeframe before executing a trade.
Supported Level Types
| Level | Direction | Description |
|---|---|---|
| Put Wall | Buy | Primary structural support |
| Deep Put | Buy | Secondary support zone |
| Call Wall | Sell | Primary structural resistance |
| Max Pain | Sell | Dealer gamma magnet |
| Secondary Call | Sell | Extended resistance zone |
| Gamma Flip | Display only | Regime indicator |
Level Flip Mechanism
When price breaks through a level decisively, the EA automatically flips that level's trading direction. A broken support becomes resistance, and a broken resistance becomes support. This adaptive behavior allows the EA to follow market structure changes in real time.
Confirmation System
The EA uses eight pattern types on the M15 timeframe to confirm entries:
-
Bullish/Bearish Engulfing - Strongest signal
-
Hammer / Shooting Star - Pin bar rejection
-
Rejection Wick - 40%+ wick with directional close
-
Doji - Indecision near level
-
Directional Close - Simple close in trade direction
This multi-pattern approach ensures the EA captures valid signals while filtering out false breaks.
Risk Management
| Parameter | Default | Description |
|---|---|---|
| Risk per trade | 20% | Percentage of equity risked |
| Stop Loss | 0.3% | Distance from level to SL |
| Max positions per symbol | 2 | Concurrent trade limit |
| Take Profit | Next structural level | TP1 and TP2 targets |
Lot sizes are calculated automatically based on account equity, stop loss distance, and symbol specifications. The EA enforces broker minimum stop distances and includes margin safety checks.
Two-Position Exit Strategy
For each signal, the EA opens two positions:
-
First position closes at the next structural level
-
Second position extends to the following level
This structure captures both immediate mean-reversion moves and extended momentum runs.
Monitoring Features
Info Panel
A real-time information panel displays on the chart showing:
-
Current symbol and level date
-
Gamma regime (+GAMMA mean-revert or -GAMMA momentum)
-
Nearest tradeable level and distance
-
Trigger zone status
-
Open positions and equity
-
Current risk percentage
Visual Level Display
All structural levels are drawn directly on the chart with color-coded lines:
-
Green: Buy zones (Put Wall, Deep Put)
-
Red: Sell zones (Call Wall, Max Pain, Secondary Call)
-
Yellow: Gamma Flip level (dotted)
-
Blue/Magenta: Flipped levels
Staleness Alert System
The EA monitors the age of your structural levels. If levels exceed the configured staleness threshold (default 24 hours), the EA generates alerts and sends notifications, reminding you to update levels for current market conditions.
Input Parameters
Dealer Levels (Update Daily)
For each symbol, you can configure:
-
Symbol name (as shown on your broker)
-
Put Wall, Call Wall, Gamma Flip levels
-
Deep Put, Secondary Call, Max Pain levels
-
Level date for staleness tracking
Risk & Execution
| Parameter | Range | Description |
|---|---|---|
| RiskPercentPerTrade | 0.1 - 100 | Risk per trade as % of equity |
| TriggerZonePoints | 1 - 1000 | Points around level for activation |
| SL_Percent | 0.1 - 2.0 | Stop loss distance as percentage |
| MaxPositionsPerSymbol | 1 - 10 | Maximum concurrent trades |
Confirmation Settings
| Parameter | Options | Description |
|---|---|---|
| ConfirmationTF | M1 to MN1 | Timeframe for pattern confirmation |
| PinBarWickRatio | 1.0 - 5.0 | Minimum wick to body ratio |
| EngulfBodyRatio | 0.5 - 3.0 | Minimum engulfing body ratio |
Staleness Alert
| Parameter | Default | Description |
|---|---|---|
| StalenessHours | 24 | Hours before stale warning |
| AlertRepeatHours | 4 | Frequency of repeat alerts |
Requirements
-
MetaTrader 5 platform
-
Broker with access to configured symbols
-
Sufficient margin for calculated lot sizes
-
M1 and M15 historical data for confirmation patterns
Supported Symbols
The EA can trade up to four symbols simultaneously, including but not limited to:
-
XAUUSD (Gold)
-
NAS100 (NASDAQ)
-
US30 (Dow Jones)
-
SP500 (S&P 500)
Any symbol with price levels can be configured.
Setup Instructions
-
Attach the EA to any chart
-
Configure structural levels for your symbols
-
Set risk parameters according to your account size
-
Enable automated trading in MT5
-
Monitor the info panel for real-time status
Daily Maintenance
Update the structural levels each trading day. Enter new levels in the EA inputs, update the level date, and recompile or restart the EA.
Strategy Notes
This EA is designed for traders who:
-
Understand dealer option positioning concepts
-
Can update structural levels daily
-
Accept the risks of mean-reversion trading near key levels
-
Use appropriate position sizing for their account
The EA does not predict price direction. It executes trades based on predefined levels and confirmed patterns, managing risk through automatic lot sizing and stop losses.
Support
Product support is provided via the MQL5 comment section and messaging system. Please include your broker name, symbol list, and any relevant screenshots when requesting assistance.
Legal Disclaimer
Trading foreign exchange, indices, and commodities carries a high level of risk and may not be suitable for all investors. Past performance does not guarantee future results. This Expert Advisor is a tool to assist with trading decisions; it does not guarantee profits. Users should test thoroughly on demo accounts before live deployment.
