Smart Hybrid Grid Trading System MT5
- Experts
-
Muhammad Abdulrahman Omar Naima Allah Al-rais
I am an automated trading systems developer with experience in the Forex market since 2004, supported by a strong background in technical analysis and its practical applications. - Version: 1.6
- Activations: 5
Bar-Based Hybrid Grid | Cycle Control | Sequential Pending Orders
Available as Two Separate Versions: MT4 & MT5
Smart Hybrid Grid Trading System is a disciplined, bar-based hybrid grid Expert Advisor designed around cycle logic, fixed anchors, and controlled order execution.
The system builds its grid only from the previous candle, sends orders sequentially (maximum one pending order per tick), and keeps the grid locked for the entire cycle — with no live re-anchoring and no grid rebuilding while price is moving.
This product is available as two separate editions:
-
MetaTrader 4 (MT4)
-
MetaTrader 5 (MT5)
Each version is published in its own platform section.
The same trading philosophy and behavior apply to both versions.
🔹 Core Concept (High-Level Overview)
-
Bar-Based Logic: All cycle preparation is derived from the previous candle only.
-
Hybrid Grid Structure: Uses pending orders placed symmetrically around fixed anchor prices.
-
Cycle Locking: Once a cycle starts, grid parameters remain unchanged until the cycle ends.
-
Sequential Execution: Orders are placed gradually, one pending order per tick, reducing execution pressure.
-
Controlled Recovery: If the terminal restarts, recovery logic runs only once during initialization, never continuously during live trading.
🔹 Main Features
1️⃣ Hybrid Pending-Order Grid
-
Supports Limit-based or Stop-based pending orders.
-
Grid spacing is calculated once per cycle and remains fixed.
-
Prevents chaotic re-building during volatile price movement.
2️⃣ Optional Money Management
-
Fixed Lot Mode when Money Management is disabled.
-
Risk-Based Auto Lot when enabled (RiskPercent).
-
Base lot is locked per cycle for consistency.
3️⃣ Lot Progression Modes
Choose one mode per setup:
-
Fixed
-
Arithmetic progression
-
Geometric progression
✅ Includes a hard MaxLotCap that limits lot size on all levels and all modes, regardless of progression.
4️⃣ Basket-Style Profit Target
-
When total cycle profit reaches TargetProfitUSD:
-
all market positions of the cycle are closed
-
all pending orders of the cycle are deleted
-
the system resets and waits for the next valid cycle
-
5️⃣ Trading Time Filter
-
Trade only during defined hours.
-
Supports overnight trading sessions.
6️⃣ Execution & Broker Safety
-
Built-in safety buffers to respect:
-
StopLevel
-
FreezeLevel
-
-
Designed to reduce common pending-order errors (e.g. invalid price / error 130).
-
Automatic retry only for known temporary execution issues.
7️⃣ Transparent Monitoring
-
Periodic status logging via timer.
-
Full visibility of:
-
cycle state
-
grid progress
-
open/pending orders
-
current cycle profit
-
🔹 MT4 Version (MetaTrader 4)
Execution Model
-
MT4 operates using a hedging-style order system by default.
-
Multiple independent BUY and SELL orders can coexist naturally.
-
This execution model aligns perfectly with the hybrid grid and cycle design.
✅ Recommended account type for MT4:
Hedging accounts (standard MT4 behavior)
🔹 MT5 Version (MetaTrader 5)
Execution Model
MetaTrader 5 supports two account systems:
-
Hedging
-
Netting
The Smart Hybrid Grid Trading System is fully compatible with MT5, but:
⚠️ Important Netting Notice (MT5):
On Netting accounts, MT5 may merge multiple trades on the same symbol into a single net position.
While the EA’s internal cycle logic and risk rules remain disciplined, the platform’s netting mechanism can alter how positions are displayed and consolidated.
✅ Recommended account type for MT5:
Hedging accounts — best match for grid-based, multi-order cycle management.
🔹 Inputs Overview
-
Cycle & grid configuration
-
Pending order type (Limits / Stops)
-
Time window filters
-
Money Management parameters
-
Lot progression settings
-
Maximum lot cap
-
Slippage & execution safety buffers
-
Diagnostic and status intervals
(All parameters are clearly documented inside the EA inputs.)
🔹 Best Practices
-
Run one EA instance per symbol.
-
Use stable trading conditions and reasonable spreads.
-
VPS is recommended for uninterrupted operation.
-
Always test settings on a demo account before live use.
🔹 FAQ
Does the EA rebuild the grid while price moves?
No. Once a cycle starts, the grid is locked until the cycle ends.
How fast are orders placed?
Orders are sent one pending order per tick to ensure controlled execution.
What happens after terminal restart?
The EA performs a one-time recovery on initialization only, then resumes normal behavior.
Is MT5 Netting supported?
MT5 can run on Netting accounts, but Hedging is strongly recommended for correct grid visualization and behavior.
⚠️ Risk Disclaimer
Trading involves risk. No trading system can guarantee profits. Always test on a demo account and apply responsible risk management.

