I need a clean, single-purpose Expert Advisor for MetaTrader 4 (MT4, MQL4 only) that monitors total account equity and closes all trades based on simple percentage rules. I want to be able to modify the values of the three parameters on the fly after trading has started.
The full project budget of $350 is already in my MQL5 account and will be placed into secure escrow immediately upon selecting the right developer.
REQUIREMENTS:
1. THREE INPUT PARAMETERS ONLY:
- ActivationProfitPercent (example: 5 for 5%)
- TrailingStopPercent (example: 2 for 2%)
- EmergencyStopLossPercent (example: 20 for 20%, default = 0)
2. LOGIC:
A. Emergency Stop Loss (if enabled):
- If EmergencyStopLossPercent > 0
- Monitor equity from starting balance
- If equity drops by EmergencyStopLossPercent% from starting balance → Close all trades
B. Activation & Trailing Stop:
- Monitor total account equity
- When equity reaches (StartingBalance + ActivationProfitPercent%) → start trailing
- Trail TrailingStopPercent% below the highest equity after activation
- If trailing stop triggers → Close all trades
C. Close All Trades Means:
- Close EVERY open trade in the account (any symbol, any magic number, any comment)
- Delete all pending orders
- No filters, no exceptions
3. NO UNNECESSARY FEATURES:
- No trade filters (by magic number, symbol, comment, etc.)
- No disable/enable switches
- No alerts, emails, logging panels, or buttons
- No charts, GUI, or settings beyond the three input parameters
- Keep it minimal, robust, and lightweight
DELIVERABLES MUST INCLUDE:
- Working .ex4 file for MT4
- FULL MQL4 SOURCE CODE (.mq4 file)
- Brief documentation of the three parameters
- Full ownership and modification rights upon payment
BUDGET & TIMELINE:
- Budget: $250–350 USD (negotiable)
- Period: 10–14 days
- Platform: MetaTrader 4 only (MQL4, not MT5)
Please bid only if you can deliver a clean, well-tested EA with exactly the logic described above. The tentative EA must include only the three parameters listed, any extra features are grounds for rejection. Allow me two weeks to test it out.
-
Full, uncompiled .mq5 source code is required upon delivery. Payment is contingent on my successful compilation of this source.
-
The EA is strictly forbidden from using the following functions: WinExec() , ShellExecute() , FileOpen() for operations outside the Terminal data folder, and any unapproved network functions ( WebRequest ).
-
The EA must only read/write to its designated data folder within the MetaTrader directory.
-
The work will be conducted through MQL5 Escrow. Code that is obfuscated or contains unauthorized operations will result in project cancellation.
Similar orders
Hello Traders, Have a trading strategy or idea you want to automate? I specialize exclusively in MQL5 development, helping traders turn their concepts into professional trading solutions. Custom Expert Advisors — automate your strategy and reduce manual execution Custom Indicators — transform your market ideas into powerful trading tools Fix & Debug — identify errors and get your existing code working properly
please share: Strategy description — entry/exit rules, indicators used, timeframe(s), and instrument(s) (a written explanation, screenshots, or an existing indicator/EA to reference all work) Risk management rules — position sizing method (fixed lot / % risk), stop loss / take profit logic, max drawdown or daily loss limits, and whether martingale/grid/hedging is involved Broker & account details — broker name
I need a unique grid trading system for XAUUSD that combines entry, controlled two-sided grid expansion, DCA (Dollar Cost Averaging) basket profit control, hedging. Unlike traditional grid EAs that only trade against price, this unique grid system should dynamically build positions in both directions based on market movement, allowing flexible adaptation to changing conditions ie the grid needs to dynamically move
I need an experienced MQL5 developer to create a fully automated MT5 Expert Advisor called Ayoub Gold EA , focused exclusively on XAUUSD (Gold) . Main requirements: Platform: MT5 / MQL5. Fully automated BUY and SELL trading on XAUUSD. Must support broker suffixes such as XAUUSD, XAUUSD.f and XAUUSDm. Trading strategy based mainly on Range Breakout with trend confirmation. EMA, ADX and ATR filters. London/New York
I need a custom MetaTrader 5 indicator designed specifically for XAUUSD gold trading. The indicator should identify potential buy and sell opportunities, display clear entry and exit signals on the chart, provide alerts, and help identify market trends and possible reversals
Looking for an experienced Sierra Chart ACSIL/C++ developer to customize an existing footprint chart. I need 3 things: 7-Day ATR – calculate and display a configurable 7-day ATR. Custom Footprint – modify my existing footprint chart to match my preferred layout/data display. Automatic LVN – detect and plot Low Volume Nodes automatically based on volume distribution. I already have a working footprint chart, so no
//———————————————————————————————————————————————————————————————————— struct S_MCAV { double matureSum; double totalSum; double value; void Init () { matureSum = 0.0; totalSum = 0.0; value = 0.5; } void AddContext (int ctx) { totalSum += 1.0; if (ctx == 1) matureSum += 1.0; } void ApplyDecay (double rate) { matureSum *= rate; totalSum *= rate; } void Update () {
1. Title Development of a Custom MQL5 Expert Advisor for XAUUSD (MetaTrader 5) 2. Requirements Specification Overview: I am looking for an experienced MQL5 developer to build a robust, fully custom Expert Advisor (EA) for MetaTrader 5 tailored for trading Gold (XAUUSD). Core Specifications & Features: Asset & Timeframe: Designed specifically for XAUUSD. Timeframe should be selectable directly from the EA inputs
Cerco uno sviluppatore MQL5 esperto per sviluppare da zero un Expert Advisor completamente nuovo per XAUUSD su MT5. Non desidero un semplice Expert Advisor basato su indicatori fissi. Desidero un sistema di trading dinamico e adattivo, in grado di adattare il proprio comportamento alle mutevoli condizioni di mercato di XAUUSD. Lo sviluppatore dovrebbe essere libero di combinare qualsiasi tecnica ritenuta opportuna
I am looking for a Senior MQL5 Developer to create a new MetaTrader 5 Expert Advisor from scratch. I will provide a complete Requirements Specification containing objective entry, exit and risk-management rules. This is not a request to copy or decompile an existing product. Project requirements: Clean and modular MQL5 source code. Exact implementation of the supplied strategy. One signal evaluation per configured