Machinegun Breakout Scalper
- Experts
-
Yassir Lamrichi
With over 13 years of trading experience, I am a CFA charterholder and seasoned data scientist specializing in the architecting of sophisticated, data-driven trading strategies and systematic investment frameworks. My expertise lies in leveraging advanced machine learning, deep learning, and - Version: 9.1
- Updated: 12 September 2026
- Activations: 5
Machinegun Breakout Scalper is an automated trading system designed specifically for the XAUUSD (Gold) symbol. It operates as a short-term breakout scalping system using dynamic price channels to identify potential market entries. The internal logic is built for rapid execution, monitoring tick velocity and short-term volatility to capitalize on rapid price movements.
This system applies strict risk management. It does not use grid, martingale, cost-averaging, or multiple-order recovery hedging techniques. Every single position is protected by a hard Stop Loss and Take Profit from the moment of entry.
The architecture consists of four independent internal sub-engines, allowing the system to monitor tight momentum, wide breakouts, and swing levels simultaneously.
This Expert Advisor is a high-frequency scalper and is extremely sensitive to tick data, spread, and execution speed. It was developed and optimized specifically using IC Markets data feeds. To achieve execution and performance that closely aligns with the provided backtest results, it is necessary to use IC Markets. Using a different broker with varying data feeds, wider spreads, or higher latency will negatively impact the system's intended logic.
Main System Features
-
Designed for XAUUSD.
-
Applies strict Stop Loss and Take Profit to all trades.
-
No grid, no martingale, and no high-risk recovery methods.
-
Utilizes an adaptive trailing stop mechanism based on current market spread and Average True Range (ATR).
-
Evaluates market conditions using Average Directional Index (ADX) and Tick Volume moving averages before allowing entries.
Execution Controls
-
Spread Filter: Restricts trading when broker spreads exceed a predefined maximum.
-
Time Filter: Allows the user to define specific operating hours to target optimal market liquidity.
-
Slippage Compensator: Monitors price gaps at the moment of execution to avoid filling orders at unfavorable distances.
-
Z-Score Sizing: An optional dynamic volume adjustment feature that can reduce the lot size to the broker minimum based on historical trade streak sequences.
Input Parameter Configuration
The parameters are divided into logical categories for straightforward setup.
Risk Management:
-
Lot Mode: Choose between Fixed Lot, Risk Percent, or Risk Per Balance.
-
Fixed Lot: The base volume used if the fixed mode is selected.
-
Risk Percent: The percentage of the account balance to risk per trade.
-
Balance Reference: The step allocation used for the Risk Per Balance calculation.
System Filters:
-
Max Spread Points: The maximum allowed spread to authorize a trade entry.
-
Use Time Filter: Enable or disable specific daily operating hours.
-
Kill Zone Start/End: Specify the daily start and end hours for trading operations.
-
Volume Multiplier: Adjusts the required tick volume baseline for trade entries.
Advanced Options:
-
Use Z-Score Sizing: Enables the internal logic to monitor trade sequences for volume reduction.
-
Expected Win/Loss Streak: The threshold settings that trigger the Z-Score volume reduction.
-
Force Min Lot On Danger: Forces the EA to use a 0.01 lot size during identified streak zones.
-
Friday Purge: Automatically cancels pending virtual setups on Friday evenings to avoid holding risk over the weekend.
Operating Recommendations
-
Symbol: XAUUSD
-
Timeframe: The EA calculates its own internal timeframes, but attaching it to the M1 chart is recommended for execution.
-
Execution Environment: A stable VPS environment with low latency to the broker server is recommended due to the short-term trailing stop mechanics.

