Back to blog
Algo7 min read

EV Grid Manager: MT5 Panel for Grid & Martingale Trading with Auto-Close

The new EV Trading Labs EA calculates your weighted break-even across your entire grid, draws the max drawdown level in real time, and closes automatically when price crosses it.

What is EV Grid Manager?

EV Grid Manager is a MetaTrader 5 Expert Advisor built specifically for grid and martingale-style trading management. Its core purpose is not to open trades automatically — it acts as a control panel and risk manager over positions you've already opened.

The EA calculates your weighted break-even across all open positions on a symbol in real time, draws three key lines on the chart, and can close the entire grid automatically when price crosses your max drawdown level or take profit target.

The problem it solves

Managing a grid manually is constant work: recalculating break-even as you add positions, watching the drawdown, deciding when to close. One moment of distraction and you can lose far more than planned.

EV Grid Manager automates exactly that monitoring. You define maximum risk as a percentage of your account and the EA calculates the exact price where you'd hit that drawdown, draws it on the chart, and acts when needed.

Key features

Weighted Break-Even line

The blue line shows at all times the volume-weighted average price of all your long and short positions combined. It updates on every tick. If you have 3 buys and 1 sell, the BE reflects the real net position — not a simple average.

Max Drawdown line

Set InpMaxDDPct (default 5%) and the EA automatically calculates the price at which your floating loss would reach that percentage of your balance. The red dashed line is drawn on the chart and turns amber when price gets within the final 20% of the distance — a visual warning before the close triggers.

Auto-close on price crossing

Both the DD level and TP work via price crossing, not absolute level. This prevents false closes when loading the EA with existing positions: it only fires if price crosses the level during the active session.

// Internal crossing logic
bool ddHit = isNetLong
  ? (prevBid > ddPrice && bid <= ddPrice)   // long: price falls through DD
  : (prevBid < ddPrice && ask >= ddPrice);  // short: price rises through DD

Take Profit as % of account

Instead of entering a price manually, the +1% / +2% / +5% buttons calculate the exact price at which your floating P&L would reach that percentage of balance, accounting for the net lots on the symbol. Works correctly on all instruments: XAUUSD, indices, forex.

The calculation uses SYMBOL_TRADE_TICK_VALUE / SYMBOL_TRADE_TICK_SIZE for the per-point value, avoiding the 10× errors that appear when hardcoding pip size for metals and derivatives.

Trading panel

Integrated in the same panel you'll find partial close controls (25% / 50% / All / Net) and quick trade entry with lot editing and BUY/SELL buttons. Everything in one interface without opening additional windows.

Compatible with all symbols

The EA auto-detects the chart symbol. No special configuration needed for XAUUSD, NQ, EURUSD or any other instrument. The monetary value per point calculation is universal.

No DRM, no activation

EV Grid Manager is delivered as a compiled EVGRID.ex5 file. No license system, no online activation, no account number required. Place it in MT5's Experts folder and attach it to a chart.

Price and access

Available for a one-time payment of $99 USD with no subscription. After purchase you receive the file by email and it becomes available in your downloads area. No paid updates, no renewals.

See the product page with full specs and purchase button at EV Grid Manager.

#EA#MT5#grid#martingala#gestión de riesgo#XAUUSD

Manage your risk with precision. Automated portfolios and tools for MT5.

Explore products →
Join Discord