I have a clear, rule-based trend-following strategy that I currently trade manually in MetaTrader 5. I now want the entire process automated in MQL5 so the Expert Advisor can handle every trade entry, management, and exit without intervention. Platform & core logic • The EA must be coded exclusively for MT5. • Trade triggers rely on specific price-action patterns that I will outline once we start; no indicators are involved. • Time-of-day, session filters, and a simple news filter need to be built in so the system stays flat during high-risk periods. Risk management Stop loss, take-profit, dynamic lot sizing, and a hard drawdown cap are non-negotiable parts of the brief. Each must be parameterised so I can adjust values from the EA’s inputs panel. Code quality Please keep the code modular, well commented, and written to MQL5 best practices. I would like clear function blocks so future tweaks are painless. Testing & optimisation I will forward you historical data sets and a small checklist for first-run validation. After delivery, I may ask a few quick optimisation passes in the MT5 Strategy Tester; no deep data-mining is required, just confirmation the logic works as intended. Deliverables 1. Fully functioning .ex5 file ready for live deployment 2. Complete, human-readable source code (.mq5) 3. Brief user guide covering inputs, defaults, and installation 4. Up to two rounds of bug-fixes or minor tweaks following initial tests Acceptance The EA should compile without warnings, place trades that mirror the manual method over at least 12 months of back-testing, and respect every risk parameter in both Strategy Tester and a live demo account. If you already have live-tested EA experience and can turn clean code around quickly, let’s talk details.