Merket Structure Pro
- Experts
- Ignacio Agustin Mene Franco
- Versione: 1.0
- Attivazioni: 10
🟡 MARKET STRUCTURE PRO v1.00
Expert Advisor — XAU/USD | M15 | Recommended Capital: $1,000 USD
© Worldinversor 2026 | Wyckoff + Elliott Method
What is this EA?
Market Structure PRO is an algorithmic Expert Advisor for MetaTrader 5, designed exclusively for trading the XAU/USD pair (Spot Gold) on the M15 timeframe. Its core analysis combines two of the most respected methodologies in institutional technical analysis: Wyckoff's market phase theory and Elliott wave structure analysis, achieving high-probability entries by synchronizing market phase with directional momentum.
🔬 Analysis Engine
Wyckoff Phase
The EA evaluates the market phase in real time within a defined price range. It calculates the relative price position, analyzes the relationship between recent and historical volume, and determines if the market is in:
Accumulation → the price is trading at the lower end of the range with decreasing volume, a bullish signal.
Distribution → the price is trading at the upper end of the range with expanding volume, a bearish signal.
Neutral / Re-accumulation → no clear trading bias.
Elliott Wave Engine
It uses a system of three EMAs (5, 13, and 34 periods relative to the closing price) to identify the active wave structure:
Fast EMA (5) — micro wave structure
Medium EMA (13) — intermediate structure
Slow EMA (34) — macro trend
Alignment combinations between the three EMAs allow the EA to label the current context as Impulsive Wave 3, Corrective Wave 4, Extended Wave 5, among other scenarios. Trades are only enabled when both systems agree in direction.
⚙️ Execution System
The EA operates using pending Stop orders (Buy Stop/Sell Stop), placed at a configurable distance from the current price, preventing false entries in volatile markets. It includes:
Entry Offset: 3 pips above/below the signal price.
Maximum Pending Order Distance: 15 pips (orders are not placed if the market moves too far away).
Fixed Stop Loss: 20 pips per trade.
Maximum Spread Allowed: 30 pips — protection against anomalous spreads typical of gold during low liquidity hours.
Maximum of Simultaneous Pending Orders: 5 per direction.
🛡️ Risk and Capital Management
Parameter Default Value
Recommended Capital $1,000 USD
Fixed Lot Size 0.20
Risk per Trade (Dynamic Mode) 0.5% of Balance
Stop Loss 20 pips (~$40 per trade in 0.20 lots)
Maximum Estimated Risk per Trade ~4% of Capital
The EA includes a dynamic lot manager that, when the fixed lot size is disabled, automatically calculates the position size based on the risk percentage relative to the balance and the tick value, always respecting the broker's minimum and maximum limits and volume steps.
📈 Open Position Management System
Once a trade is activated, the EA implements three layers of dynamic protection:
1. Automatic Profit Target: Closes the position upon reaching 15 pips of profit, ensuring consistent results without unnecessarily incurring risk.
2. Intelligent Break-Even: Upon reaching a profit of 30 pips, the Stop Loss automatically moves to the opening price (+0.5 pips), eliminating the risk of the trade.
3. Dynamic Trailing Stop with Aggressive Mode: Activated at 5 pips of profit with a 2-pip increment. In aggressive mode (UseAggressiveTrailing = true), the trailing stop tightens progressively as profit increases:
+10 pips → trailing at 80% of the increment
+15 pips → trailing at 60%
+20 pips → trailing at 50%
This maximizes capturing extended gold price movements while protecting accumulated profits.
🕐 Session Filter: Operates between 1:00 AM and 11:00 PM (server time), excluding off-peak hours. Configurable according to the user's broker.
📊 Real-Time Visual Dashboard
The EA includes a Cyber Gold/Deep Blue style visual dashboard with a monospaced Consoles font, displaying the following:
Active Wyckoff Phase (Accumulation/Distribution/Neutral)
Numeric Wyckoff Score (0 to 1)
Active Elliott Wave with label
EMAs for all three structures with their current values
Combined signal (Bullish/Bearish/Neutral)
Real-time balance, equity, free margin, and drawdown
Total P&L in USD and pips
Count of buy, sell, and pending trades
Current spread
The three EMAs are also plotted directly on the chart as dynamic horizontal lines (Cyan, Gold, and Violet) with identifying labels.
Developed by Worldinversor — 2026
