Project Description:
I need a professional developer to create a custom Expert Advisor (EA) for MetaTrader 4/5 focused on capital protection, risk control, and automated trade management.
The EA must include two main modules:
Position Sizing Based on Account Equity
User sets a max risk per trade (1%–5%).
EA calculates potential loss based on SL and lot size.
Blocks trades exceeding the predefined risk.
Maximum allowed risk: 5%.
Mandatory Stop Loss & Take Profit
SL is required for every trade; no trade executes without it.
TP must be at least 1.1× SL (minimum 1:1.1 risk/reward).
EA rejects trades violating these conditions.
Daily Loss Limit
User sets a daily max loss (up to 5%).
If reached, EA blocks new trades for the rest of the day.
Open trades continue if still valid.
Total Open Trades Risk Limit
User sets a max total risk for all open trades (up to 10%).
EA calculates potential total loss based on SL levels.
Blocks new trades once the total open risk exceeds the limit.
Manual Trade Closure Restriction
Manual close allowed only if trade is in loss.
Profitable trades are managed automatically by the EA.
User can modify SL/TP only within allowed limits.
Automated Partial Close Using Fibonacci Levels
EA draws Fibonacci between entry and TP.
Divides trade into 3 parts (33%-33%-33%).
At:
38.2% level: Close 33%, move SL to BE.
61.8% level: Close 33%, move SL to 38.2%.
100% level: Close remaining 33%.
Flexible & Customizable Settings (Developer Suggestion Required):
Allow custom Fibonacci levels (e.g., 25–50–75–100).
Allow user-defined position splits (e.g., 20–30–50%).
Add an optional Smart Trailing Stop after 38% level for dynamic protection.
EA must work on both MT4 and MT5 (if possible).
Clean and optimized code with full comments.
Clear and user-friendly input settings panel.
Logging for all blocked trades or restricted actions.
Testing and debugging on demo account before final delivery.
Compiled .ex4 / .ex5 file and source code (.mq4 / .mq5).
Documentation (PDF or text) explaining all inputs, logic, and settings.
1–2 revisions after testing (for fine-tuning if needed).
If you have ideas to improve trade management, trailing logic, or risk efficiency, please include them in your proposal.
Note:
Work seamlessly even when the trader opens or manages trades via the mobile MT4/MT5 app, not only from the desktop terminal.
The EA should be flexible, stable, and well-structured, with clear input settings and clean coding practices.
All detailed rules and parameters will be provided privately after project agreement.