Matrix Scalper Pro
- Experts
-
Joshy Antony
Professional Gold trader and MQL5 developer specializing in automated trading systems for XAUUSD.
Developed Matrix Gold Pro EA — a multi-strategy system with 12 trading strategies, smart risk management, and Telegram alerts. Trading Gold since 2013. - Versione: 2.7
Matrix Scalper Pro is an XAUUSD scalping robot built for the M1 timeframe. It combines a trend-filtered momentum entry with a fully configurable grid recovery engine, a complete set of trading filters, and a live on-chart dashboard.
Every feature in this robot can be switched on or off. Nothing is hard-coded. You decide how conservative or how aggressive it runs.
Trading logic
The entry engine works on closed M1 bars:
- EMA fast / EMA slow alignment establishes the short-term direction
- RSI must cross the trigger level in the direction of that trend
- An M5 EMA trend filter must agree (optional)
- The signal candle must have a real body, measured as a fraction of ATR
- ATR volatility floor and ceiling reject dead and chaotic markets (optional)
- Spread filter blocks entries when the spread is too wide
Grid recovery with scalp re-entry
When enabled, the grid averages into adverse moves at a configurable step and closes the whole basket as a single unit.
- Grid step is fixed in points or automatic (x ATR)
- Lot ladder by multiplier, or supply your own custom ladder
- Maximum grid levels is user-defined
- Minimum account balance required before the grid activates
- Grid scalp: the deepest level is closed when it turns profitable, and the rung is re-entered when price returns. Banked profit counts toward the basket target, so a basket can close green while individual levels are still underwater.
- Basket exits: money target, points beyond the weighted break-even, or a profit trail
Filters
- Session filter — Asian, London and New York, each independently toggled
- Weekly schedule — separate trading hours for each day of the week
- News filter — MT5 economic calendar, by importance and currency, with configurable minutes before and after
- Holiday filter — blocked date list, Friday cutoff, Monday open delay
- Spread filter — maximum spread in points
Risk management
All optional, all independent:
- Stop Loss — off, fixed points, or automatic (x ATR)
- Take Profit — off, fixed points, or automatic (x ATR)
- Trailing Stop — off, fixed points, or automatic (x ATR)
- Break-even — with a cost buffer so it never exits below spread + commission
- Basket maximum loss (% of balance)
- Maximum daily drawdown (% of balance)
- Total equity stop (% below starting balance)
- Daily profit target
- Maximum simultaneous positions and entry cooldown
Initial lot — three modes
- Risk % — lot sized from a reference stop distance so a losing trade costs a set percentage of the balance
- Fixed lot — a constant volume
- xBalance — a given lot per a given amount of balance, scaling with the account
The grid ladder is built from whichever initial lot the selected mode produces, latched at the moment the basket opens.
Dashboard and alerts
The on-chart panel shows spread, ATR, the live signal (and the exact reason a signal was rejected), session and schedule state, news status, grid level, basket lots, weighted break-even, floating P/L, banked scalp profit, basket net, daily P/L, and daily drawdown. PAUSE and CLOSE ALL buttons are built in.
Push notifications to the MetaTrader mobile app on position open, position close, grid level added, basket closed, and any risk limit hit. Terminal alerts and email are also supported.
Requirements
- Symbol: XAUUSD (gold)
- Timeframe: M1
- Account type: HEDGING. The grid opens multiple positions in the same direction. On a netting account these merge into one position and the grid and scalp engine will not work correctly.
- Works on 2-digit and 3-digit gold feeds; the robot detects the digits and scales automatically.
- A low-spread account and a VPS are strongly recommended for M1 scalping.
RISK WARNING — please read before running this robot
This robot includes an optional grid and martingale recovery mode. You must understand what that means before you use it.
A grid averages into losing positions. It does not reduce risk — it converts a small, bounded loss into a larger one that only resolves if price returns. In a ranging market this produces smooth, consistent results. In a sustained trend, or during a news spike, price may not return, and the basket will keep growing.
With the stop loss disabled and the basket loss limit disabled, a losing basket has no exit on the downside except a margin call. These settings exist because experienced users ask for them. They are not safe defaults for an unattended account.
Recommended for anyone who is not actively supervising the robot:
- Stop Loss: Automated (ATR)
- Basket max loss: ON, 3% of balance
- Max daily drawdown: ON, 4%
- Total equity stop: ON
- Grid max levels: 5 or fewer
- Lot multiplier: 1.0 (flat) or no higher than 1.3
- Start on a demo account, then a small live account
Past performance in a backtest does not predict future results. Test this robot in the Strategy Tester using real ticks across several years, including trending periods and news events, before risking real money. Never risk money you cannot afford to lose.
Input parameters
General
- Magic number — position identifier
- Trade comment prefix
- Trade direction — Buy and Sell / Buy only / Sell only
- Max slippage
- Max spread (0 = off)
- Max simultaneous positions
- Cooldown between entries (seconds)
- Debug — log signal diagnostics
Signal engine
- EMA fast / EMA slow
- Use M5 trend filter, M5 trend EMA period
- RSI period, RSI cross-up level (buy), RSI cross-down level (sell)
- ATR period
- Min ATR / Max ATR (0 = off)
- Min signal-candle body (x ATR)
Initial lot
- Lot mode — Risk % / Fixed / xBalance
- Risk % per basket, reference stop (x ATR), reference stop (points)
- Fixed lot size
- xBalance: lots per balance step, balance step
- Min lot floor, max lot cap
Stop Loss / Take Profit
- SL mode — Off / Fixed / Automated (ATR), fixed points, ATR multiplier
- TP mode — Off / Fixed / Automated (ATR), fixed points, ATR multiplier
Trailing stop and break-even
- Trailing mode — Off / Fixed / Automated, start distance, trail distance, step
- Break-even mode — Off / Fixed / Automated, trigger, lock-in above cost
- Commission (points, round turn) — used to keep exits above true cost
- Never trail to a loss
Risk control
- Daily profit target (%) and whether to close on target
- Max daily drawdown (%)
- Total equity stop (%)
- Close open trades when a loss limit hits
Session filter
- Use session filter
- Asian / London / New York — each with start and end hour (server time)
Weekly schedule
- Use schedule
- Monday to Sunday — enable and trading hours per day (HH:MM-HH:MM)
- Close positions at schedule end
News filter
- Use news filter, minimum importance, minutes before, minutes after
- Currencies to watch
- Close positions before news
- (The MT5 calendar is not available in the Strategy Tester, so this filter has no effect in backtests.)
Holiday filter
- Use holiday filter, blocked dates (MM.DD), Friday cutoff hour, Monday open hour
Grid recovery
- Enable grid recovery
- Minimum balance to run the grid
- Grid step mode — Fixed / Automated (ATR), step size
- Max grid levels
- Lot multiplier per level, or a custom lot ladder
- Minimum seconds between grid adds
- Only add a level if the signal still agrees
Grid scalp / re-entry
- Enable grid scalp
- Minimum basket levels before scalping
- Scalp TP mode and size
- Max scalp cycles per basket
- Minimum seconds between scalp closes
- Count banked scalps toward the basket target
Basket exit
- Basket TP in account currency
- Basket TP beyond the weighted break-even (points)
- Trail the basket profit — arm level and giveback %
- Basket max loss (% of balance)
Notifications
- Push to phone / terminal alert / email
- Notify on: open, close, grid add, scalp, basket close, risk limit
- Minimum seconds between pushes
Panel
- Show panel, position, accent colour
Free to download. If you find a bug or want a feature, post in the comments and I will respond.
Matrix Trading Systems
