SWING TRADER PRO v2.0 — Institutional Series
© Worldinversor 2026 | Expert Advisor for MetaTrader 5
Overview
Swing Trader Pro v2.0 is a next-generation institutional Expert Advisor designed to trade the XAU/USD pair (spot gold) on timeframes from M1 to M5. It combines artificial intelligence, advanced quantitative analysis, and classic price action in a single multi-layered decision engine, optimized to extract high-probability opportunities in the gold market.
With an initial capital of $500 USD, the EA operates under an adaptive risk management scheme that calibrates position size based on the account's actual equity, seeking a balance between capital growth and preservation in the face of adverse conditions.
Signal Engine — Multi-Layer Architecture
The system integrates 9 independent signal sources that operate in conjunction:
1. BiLSTM (Bidirectional Long Short-Term Memory) Neural Network: An AI engine that analyzes the last 30 bars with 6 market features in both forward and backward directions simultaneously. It generates a directional signal with a configurable confidence threshold (default 60%), making it the system's most analytically significant component.
2. Multinomial Logistic Regression (Logistic Regression Engine): A statistical model that classifies markets into 3 classes (long/short/neutral) with online learning. It automatically updates every 5 bars with the most recent data, adapting to changing gold market conditions.
3. Market Structure Analysis (Swing Structure): Identifies sequences of Higher Highs/Higher Lows (bullish structure) and Lower Highs/Lower Lows (bearish structure) within the trading timeframe. It only enables entries aligned with the current structure.
4. Trend Confirmation in Higher Time Frame (HTF): Validation via 21/50 EMA crossover on the daily (D1) timeframe. The Expert Advisor (EA) only trades in the direction confirmed by the long-term bias, filtering out counter-trend trades.
5. Directional ADX Filter: Requires a minimum ADX of 20 to confirm sufficient trend momentum. For readings above 35 (strong trend), it adds cross-validation of DI+ vs DI- for greater accuracy.
6. Structural Chart Patterns: Automatic detection of Head and Shoulders (H&S) and Double Top/Double Bottom patterns over the last 50 bars, with parametric tolerance and target calculation based on pattern projection.
7. Support & Resistance Zones (Dynamic S&R): Automatic mapping of up to 10 current support and resistance levels, with a minimum of 2 touches for validation. It incorporates breakout logic and confirmation by closing bar, allowing entries on retests or confirmed breakouts.
8. Classic Price Action: Three high-precision candlestick patterns: Harami (indecision in a key zone), Tweezer (reversal at extremes), and Marubozu (clean impulse with a body ≥ 90%). They act as entry triggers in conjunction with the upper filters.
9. Harmonic Volatility Pattern (HVP): Detects volatility compression phases (squeeze ATR) and confirms entries on the post-squeeze expansion, multiplying the signal's confidence when the gold market releases accumulated energy.
Advanced Quantitative Modules: Fibonacci Extension Targets (127.2% / 141.4% / 161.8%): Automatic projection of exit targets using Fibonacci extensions on the previous swing, maximizing the capture of the actual price movement.
Volume Profile: Builds a dynamic volume profile over the last 100 bars in 20 bins, identifying Points of Control (POCs), High Volume Nodes (HVNs), and Low Volume Nodes (LVNs) as areas of attraction and rejection.
HRP — Hierarchical Risk Parity: A signal weighting algorithm based on correlation and hierarchical risk parity among the three main engines (BiLSTM, Logistic Regression, and S&R Markov proxy). It assigns dynamic weights to each signal source according to its contribution to total risk.
HJB Kelly Sizing (Hamilton-Jacobi-Bellman): Continuous optimal sizing derived from the HJB equation with configurable risk aversion. It calculates the optimal adjusted Kelly fraction, with limits from 1% to 25% of capital, avoiding oversizing under uncertain conditions.
TurboMode — Adaptive Momentum Boost dynamic lot size (x1.5 by default) when exceptional momentum is detected in the last 5 bars, allowing you to take advantage of strong gold movements with greater controlled exposure.
Risk Management
Parameter: Default Settings
Risk Mode: Fixed % of Equity
Risk per Trade: 1% of Equity
Stop Loss: 20 pips
Take Profit: 60 pips (1:3 ratio)
Minimum Required Risk Reduction: 1:1.2
Maximum Daily Loss: 10%
Maximum Open Positions: 5
Maximum Total Volume: 5.0 lots
Maximum Margin Usage: 30%
Minimum Free Margin: 50%
Trailing Stop: Enabled (8 pip trigger, 4 pip step)
Break-Even: Enabled (10 pip trigger, 2 pip profit)
With $500 USD equity and a 1% risk, the maximum risk per trade is $5 USD, with a target profit of $15 USD per trade (1:3 ratio).