Independent MultiPending Order Inputs RU
- Experts
- Rocio Uriburu
- Version: 1.0
- Activations: 10
| Explore all my products for MetaTrader 4 and MetaTrader 5: https://www.mql5.com/es/users/urocio/seller |
|---|
¡Create your own trading strategies with full flexibility!
This Expert Advisor is designed to support multiple trading approaches, including scalping, grid systems, hedging, martingale, anti-martingale, news trading, pending orders management, arbitrage, trend-following, breakout strategies, and price action trading. It can be applied across different markets such as forex (EURUSD, GBPUSD, USDJPY), cryptocurrencies (BTC, Bitcoin), indices (NAS100, US30, USA500, Dow Jones), and metals like gold (XAUUSD).
The EA is compatible with a wide range of technical indicators and trading concepts, including support and resistance, EMA (moving average), RSI, MACD, Bollinger Bands, ATR, Stochastic, and ADX, allowing traders to build and customize their own strategies based on their preferred tools and trading style.
If you have any questions about how this EA works or how to use it effectively, feel free to contact me — I’m happy to help.
I’m also open to suggestions and custom requests for developing new Expert Advisors for MQL5.
______________________________________________________________________________________
Independent Multi-Order Custom Inputs EA
Overview
Independent Multi-Order Custom Inputs EA is a professional Expert Advisor designed to manage up to 12 fully independent pending orders, each with customizable parameters.
This EA allows traders to build complex multi-level strategies with precise control over entry price, lot size, take profit, stop loss, and retry logic.
It is optimized for MQL5 Market compliance, ensuring safe execution, correct margin validation, and reliable order handling.
Main Features
-
Up to 12 independent pending orders
-
Custom distance for each order (positive or negative)
-
Supports Buy Limit, Buy Stop, Sell Limit, Sell Stop
-
Automatic margin validation before execution
-
Built-in equity protection system
-
Optional EA restart after closing cycle
-
Breakeven functionality
-
Retry system after Stop Loss
-
Compatible with Netting accounts
How the EA Works
Initialization
When the EA is attached to a chart:
-
It captures the base price:
-
Market price (default), or
-
Fixed custom price
-
-
Loads all enabled orders (1–12)
-
Places pending orders at defined distances from the base price
Trading Logic
-
Each order is independent
-
Orders are placed as:
-
Buy Stop / Buy Limit (above/below price)
-
Sell Stop / Sell Limit
-
-
Distance is calculated using:
-
Pips
-
Points
-
or Ticks
-
Order Execution
-
When price reaches a pending order:
-
A position is opened
-
TP and SL are automatically set
-
Reopen Logic
-
If Take Profit is hit:
→ The order is restarted from scratch -
If Stop Loss is hit:
→ The order is reopened (if MaxRetries > 0)
EA Close Logic
The EA monitors total account equity:
-
Close all trades if:
-
Profit target reached (CloseEquityProfitUSD)
-
Loss limit reached (CloseEquityLossUSD)
-
-
After closing:
-
EA can restart automatically (optional)
-
Supported Markets
The EA works on:
-
Forex (EURUSD, GBPUSD, etc.)
-
Gold (XAUUSD)
-
Indices
-
Any symbol supported by the broker
Recommended:
-
Low spread accounts
-
Stable execution brokers
Input Parameters
Global Settings
| Input | Description |
|---|---|
| MagicBase | Unique identifier for EA orders |
| DistMode | Distance unit (Pips / Points / Ticks) |
| BasePrMode | Base price mode (Market or Fixed) |
| BaseFixedPrice | Custom base price (if enabled) |
| Slippage | Allowed slippage |
| BreakevenPips | Distance to move SL to breakeven |
EA Close Settings
| Input | Description |
|---|---|
| CloseEquityProfitUSD | Close all trades when profit reached |
| CloseEquityLossUSD | Close all trades when loss reached |
| RestartAfterClose | Restart EA after closing |
Order Settings (1 to 12)
Each order has the same structure:
| Input | Description |
|---|---|
| Enable | Activate the order |
| Type | Buy or Sell |
| Distance | Distance from base price |
| Lot | Lot size |
| TP | Take Profit |
| SL | Stop Loss |
| MaxRetriesPerPrice | Number of retries after SL |
Risk Management
-
Automatic margin check before placing orders
-
Prevents:
-
Not enough money errors
-
Invalid order execution
-
-
Lot size is normalized to broker limits
Recommended Settings
For safer testing:
-
Enable only 1–2 orders
-
Use small lot size (0.01 or lower)
-
Set reasonable TP/SL
-
Avoid too many simultaneous orders on small accounts
Notes
-
All logs are in English (MQL5 Market compliant)
-
The EA does NOT guarantee profits
-
Proper risk management is required
Conclusion
This EA is ideal for traders who want:
-
Full control over pending orders
-
Flexible multi-level strategies
-
Reliable and compliant execution
A powerful tool for structured trading systems with advanced control.
