工作已完成
指定
📌 1. Custom Lot Sequence (Predefined)
The EA must support the following fixed lot size sequence, used sequentially for trades:
⚠️ Bug to Fix
-
There is a bug in the starting lot position count
-
The EA sometimes starts from the wrong index in the sequence
→ This must be fixed so the sequence starts exactly from the intended position
📌 2. Trade Sequence Rules
-
❌ Remove the maximum trade sequence number limit
-
Trades should be able to continue indefinitely through the lot list (or until stopped by logic)
📌 3. Loss Handling Option After N Trades
Add a user option:
-
After N number of trades, user can choose:
-
✅ Hold existing trades
-
❌ Exit trades in loss
-
This behavior must be fully configurable via input parameters.
📌 4. Basket Stop Loss Logic (IMPORTANT)
-
❌ Remove session-based profit and loss limits
-
✅ Add Basket Stop Loss, defined in dollar value
-
Basket SL must:
-
Apply only to currently open trades
-
Ignore closed trades
-
Close all open trades once basket loss reaches the defined dollar amount
-
📌 5. Reset Logic After Basket SL
After Basket Stop Loss is hit:
-
EA should:
-
Close all open trades
-
Wait for a Y-minute cooldown/reset period
-
Restart trading automatically after the reset time
-
Reset duration must be user-configurable.
🔧 Developer Requirements
-
Strong experience with MQL5 / MT5
-
Comfortable with:
-
Trade sequences
-
Basket-level calculations
-
Robust state handling
-
-
Ability to write clean, maintainable code
-
Must test logic properly (edge cases matter)
📎 Notes
-
This is a logic-focused task, not UI-heavy
-
Detailed explanation of current behavior will be provided
-
Clear communication is expected