Build a Script to Automate MT5 Optimization & Forward Validation

Specification

1. Objective
Create an MT5 automation script (or set of scripts) that fully automates my strategy optimization workflow, including:
Batch optimization runs
Automatic filtering of results
Automatic forward testing
Exporting and organizing results into structured files/folders
The goal is to reduce manual work and allow one‑click execution of the entire pipeline.

2. Platform & Environment
MetaTrader 5
Windows 11
EA already exists (I will provide the .mq5 or .ex5 file)
Script must work with MT5 Strategy Tester
No DLLs unless absolutely necessary

3. Required Features
3.1 Optimization Automation
Launch optimization automatically with predefined inputs:
Symbol
Timeframe
Date range
Optimization mode (Genetic / All symbols selected / etc.)
Parameter ranges
Ability to run multiple optimization batches sequentially (different symbols, timeframes, or parameter sets).
3.2 Result Filtering
After each optimization run, the script must automatically filter results based on criteria such as:
Minimum number of trades
Minimum profit factor
Maximum drawdown
Minimum expected payoff
Custom filters (I will specify exact thresholds)
Filtered results must be exported automatically.
3.3 Forward Testing Automation
For each filtered optimization result:
Launch a forward test using a predefined forward period
Collect forward test metrics
Export results automatically
Organize results by:
Symbol
Timeframe
Optimization batch
Parameter set
3.4 File Output & Organization
Export optimization and forward results to CSV or XLSX
Include all key metrics (profit factor, drawdown, trades, etc.)
Create a clean folder structure:
/OptimizationResults
/ForwardResults
/Logs
Include timestamps and parameter sets in filenames

4. User Interface (Simple)
A simple input panel or .ini file where I can define:
Symbols
Timeframes
Optimization ranges
Forward test period
Filtering thresholds
Output folder
No complex GUI required.

5. Logging
Detailed logs of each step
Errors must be clearly reported
Summary log at the end of each batch

6. Deliverables
Fully working .mq5 script(s)
Source code required
Short documentation explaining:
How to run the automation
How to change parameters
Folder structure
Troubleshooting notes

7. Developer Requirements
Experience with MT5 Strategy Tester automation
Strong MQL5 scripting skills
Ability to write clean, modular code
Good communication during development

Responded

1
Developer 1
Rating
(394)
Projects
551
40%
Arbitration
30
57% / 3%
Overdue
57
10%
Working
Published: 11 codes
2
Developer 2
Rating
(75)
Projects
111
50%
Arbitration
26
31% / 50%
Overdue
9
8%
Free
3
Developer 3
Rating
(1)
Projects
2
0%
Arbitration
1
0% / 0%
Overdue
0
Free
Published: 1 article
4
Developer 4
Rating
(2)
Projects
3
33%
Arbitration
1
0% / 100%
Overdue
0
Free
5
Developer 5
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
6
Developer 6
Rating
(3)
Projects
2
50%
Arbitration
1
0% / 100%
Overdue
0
Free
7
Developer 7
Rating
(7)
Projects
5
0%
Arbitration
6
0% / 83%
Overdue
1
20%
Working
8
Developer 8
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
9
Developer 9
Rating
(258)
Projects
264
30%
Arbitration
0
Overdue
3
1%
Free
Published: 2 codes
10
Developer 10
Rating
(40)
Projects
43
58%
Arbitration
1
100% / 0%
Overdue
1
2%
Free
Published: 5 codes
11
Developer 11
Rating
(4)
Projects
3
33%
Arbitration
2
0% / 100%
Overdue
0
Free
12
Developer 12
Rating
(39)
Projects
52
19%
Arbitration
15
27% / 67%
Overdue
8
15%
Free
Published: 1 code
13
Developer 13
Rating
(16)
Projects
23
17%
Arbitration
4
50% / 25%
Overdue
4
17%
Working
14
Developer 14
Rating
(20)
Projects
26
38%
Arbitration
6
33% / 50%
Overdue
0
Free
15
Developer 15
Rating
(3)
Projects
3
33%
Arbitration
0
Overdue
0
Free
16
Developer 16
Rating
(16)
Projects
20
0%
Arbitration
10
0% / 80%
Overdue
6
30%
Free
17
Developer 17
Rating
(2)
Projects
1
0%
Arbitration
1
0% / 100%
Overdue
0
Free
18
Developer 18
Rating
(3)
Projects
3
0%
Arbitration
0
Overdue
0
Free
19
Developer 19
Rating
(3)
Projects
1
100%
Arbitration
3
0% / 100%
Overdue
0
Free
20
Developer 20
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
21
Developer 21
Rating
(33)
Projects
36
33%
Arbitration
5
0% / 80%
Overdue
0
Working
Published: 2 codes
22
Developer 22
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
23
Developer 23
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
24
Developer 24
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
25
Developer 25
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
26
Developer 26
Rating
(74)
Projects
84
64%
Arbitration
5
100% / 0%
Overdue
9
11%
Free
27
Developer 27
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
Similar orders
I want a martingale + moving average cross ea. The second trade must be taken when the step is met and the moving averages are crossing The ea must have a manual step input. A manual multiply input and manual moving average input
Project Overview We have a highly optimized, production-ready custom cTrader cBot built for a fast-paced Renko breakout strategy (specifically trading XAUUSD/Gold). The core system architecture, structural mapping, and breakout logic are flawless. We are seeking an expert C# algorithmic developer for a targeted engagement to refine the execution mechanics and add an advanced trade management module. This is not a
SNIPER X AI 30 - 200 USD
I really need a developer Who can help me to create my SNIPER X AI - Elite AI Trading System Overview SNIPER X AI BOT is an AI-assisted trading system for Forex, Crypto, Stocks, Indices, and Gold. Currency: USD,RAND,KWD, POUND,EURO Core Features AI Scalping, Sniper Entries, Auto Buy/Sell, Smart Risk Management, Telegram Alerts, Mobile Monitoring, VPS Deployment. Supported Platforms MetaTrader 4, MetaTrader 5, Exness
Emmanuel bot 30 USD
No thank you just choose for me I need to be automatically buy and sell and take a profit only that is enough for me thank you so much my name is Emmanuel kabale
Limzy 30+ USD
//+------------------------------------------------------------------+ //| HighPerformanceEA.mq5 | //| Copyright 2026, AI Developer | //| https://www.mql5.com | //+------------------------------------------------------------------+ #property copyright "Copyright 2026" #property link " https://www.mql5.com " #property version "1.00" #property strict //
I need an experienced MQL5 developer to build a professional XAUUSD scalping Expert Advisor. The trading logic is already fully defined and will be shared privately with selected developers. Requirements Fast execution suitable for scalping Dynamic lot sizing Strict risk management Clean and optimized MQL5 code Compatible with MetaTrader 5 Additional Rules No repainting logic No delayed execution Avoid duplicate
Prepare expert for xauusd live chart [ expert is not executing xauusd trades , just printing the logic on the chart ] . Deletion and cleaning code ( subject to if required ) . Integration of candles with present logic, Since expert is coming out from an arbitration subject : Before project start , review the code if it is clean and ready for the developer to continue with previous developer's technical debt -thereby
Hello, I am looking for an experienced developer who can build a professional EA suitable for long-term prop firm account passing and account management. I am NOT interested in risky strategies such as martingale, grid, or aggressive recovery systems. My main priorities are: very low and stable drawdown, strong and consistent risk management, strict news filter, long-term sustainability, realistic and stable monthly
Need a Profitable with a good trading system or strategy. would test the product first Looking for a professional MT5 Expert Advisor based on smart strategies. The EA should include session filters, risk management, trailing stop, multi-pair support, and low drawdown protection. I need a consistent, high-probability automated trading system optimized for long-term profitability and funded account compliance
Junior EA 30+ USD
1. EA for MT5, hedging allowed. 2. Entry: 50 EMA crosses 200 EMA on H1. Buy on bullish cross, sell on bearish. 3. SL: 100 pips, TP: 200 pips. No trailing stop. 4. Lot size: 0.01 fixed. Max 3 trades at once. 5. Trade only 08:00-18:00 GMT. No trades if spread > 20 points. 6. Inputs: EMA periods, SL, TP, lot size, start/end time

Project information

Budget
500+ USD
Deadline
to 30 day(s)