Job finished
Specification
Description (وصف المشروع):
Hello developers,
I have an existing MetaTrader 4 Expert Advisor ( source file is available and cleanly written in English). The EA already opens pending orders and handles trade management. I would like to request a minor enhancement to the EA’s logic: .mq4
✅ Required Modification:
-
Fibonacci-Based Multiplication:
-
After the first trade is triggered (buy or sell), the EA should open additional trades in the same direction using lot sizes based on Fibonacci sequence:
vbnetLots: 0.01, 0.01, 0.02, 0.03, 0.05, ... Distance: calculated cumulatively or fixed based on previous entry (we can discuss) -
You can use external variables for configuration:
-
Enable_Multiplication = true/false
-
Multiplication_Mode = Fibonacci
-
Max_Multiplication_Levels = 5 (for example)
-
-
-
Profit-Based Exit:
-
Once the total profit of all open trades (original + multiplied positions) reaches +20 pips (in total), the EA should:
-
Close all open positions
-
Reset and restart the logic (open fresh pending orders again)
I've improved the dashboard, noting that I've already prepared many of them with different colors for the result of the balance to match the profit and loss. I want it to look like the attached image. I'll just add the number of open buy and sell orders and the number of each.
Add protection to the expert and link it to the account number and expiration date.
-
-
📁 What I Provide:
-
Full source code file (clean and fully in English) .mq4
-
Documentation PDF explaining all external parameters and logic
-
Simple to test — no indicators required
🎯 Goal:
Create a clean and robust implementation for Fibonacci-based scaling and total profit exit logic.
💡 Notes:
-
No need for GUI/panel at this stage.
-
Keep code modular and readable — I may expand it later.
-
Only reliable, experienced developers please.
Let me know your experience with similar grid or martingale systems. Looking forward to working together!
📝 العنوان :
تعديل بسيط على إكسبرت MT4 لإضافة مضاعفات بنظام فيبوناتشي مع إغلاق على ربح
📄 الوصف:
مرحبًا بالمبرمجين،
لدي إكسبرت (EA) ميتاتريدر 4 بلغة MQL4، الكود نظيف ومكتوب بالكامل بالإنجليزية. أحتاج إلى تعديل بسيط لإضافة منطق المضاعفات مع إغلاق جماعي للصفقات عند تحقيق ربح معين.
✅ المطلوب تحديدًا:
-
مضاعفات حسب تسلسل فيبوناتشي:
-
بعد تفعيل الصفقة الأساسية (شراء أو بيع)، يقوم الإكسبرت بفتح صفقات إضافية بنفس الاتجاه بناءً على لوتات مضاعفة وفق تسلسل فيبوناتشي:
makefileنسخ تحريراللوتات: 0.01، 0.01، 0.02، 0.03، 0.05، ... المسافات بين الصفقات: إما ثابتة أو تراكمية (حسب الاتفاق) -
يمكن التحكم بالمضاعفات من الإعدادات عبر متغيرات خارجية مثل:
-
Enable_Multiplication = true/false
-
Multiplication_Mode = Fibonacci
-
Max_Multiplication_Levels = 5
-
-
-
الإغلاق على ربح إجمالي:
-
بمجرد أن تصل جميع الصفقات المفتوحة (الرئيسية + المضاعفات) إلى ربح قدره +20 نقطة (بالمجمل)، يقوم الإكسبرت بـ:
-
إغلاق جميع الصفقات المفتوحة
-
إعادة ضبط المنطق والبدء من جديد بأوامر معلقة جديدة
تحسين لوحة المعلومات علما انني قمت بتجهيز كثير منها مع اختلاف الوان النتيجة للرصيد بما يتاسب مع الربح والخسارة اريدها مثل الصورة المرفقه
وإضافة فقط عدد الاوامر المفتوحة بيع وشراء وعدد كل منهما
إضافة حماية للخبير وربطه برقم الحساب
وايضا تاريخ صلاحية
-
-
📁 ما سأوفره لك:
-
ملف الإكسبرت .mq4 كامل ومفتوح المصدر (منظم ومكتوب بالإنجليزية)
-
ملف PDF توثيقي يشرح جميع الإعدادات
-
سهل الاختبار – لا يعتمد على أي مؤشرات
🎯 الهدف:
تنفيذ منطق المضاعفة بطريقة آمنة ومنظمة، مع الخروج الذكي عند تحقق هدف الربح.
💡 ملاحظات إضافية:
-
لا حاجة لواجهة رسومية حالياً.
-
أرجو أن يكون الكود قابل للتوسيع لاحقًا.
-
أفضّل التعامل مع مبرمج محترف لديه خبرة في أنظمة الشبكات أو المضاعفات.