لغة MetaQuotes 5 (MQL5) هي لغة المدمج في لاستراتيجيات التداول البرمجة. تم تطوير هذه اللغة من قبل شركة MetaQuotes للبرامج على أساس خبرتهم الطويلة في إنشاء منصات التداول عبر الإنترنت. باستخدام هذه اللغة، يمكنك إنشاء الخاصة بك المستشارين الخبراء الخاصة التي تجعل إدارة التداول الآلي وهي مناسبة تماما لتنفيذ استراتيجيات التداول الخاصة بك. الى جانب ذلك، باستخدام MQL5 يمكنك إنشاء المؤشرات الخاصة بك التقنية (مؤشرات العرف)، ومخطوطات ومكتبات.
MQL5 يحتوي على عدد كبير من الوظائف اللازمة لتحليل ونقلت الحالية وصلت في وقت سابق، ووقد بنيت في المؤشرات والوظائف الأساسية لإدارة مواقع التجارة والسيطرة عليهم. يتم استخدام MetaEditor 5 (محرر النص) الذي يسلط الضوء على تأويلات مختلفة للغة MQL5 لكتابة رمز البرنامج. يساعد المستخدمين على توجيه نفسها في النص نظام خبير بسهولة تامة.
دليل موجز يحتوي على وظائف، والعمليات، والكلمات المحجوزة، والمنشآت لغة أخرى مقسمة إلى فئات، ويسمح العثور على وصف كل عنصر يستخدم للغة.
البرامج المكتوبة في لغة MetaQuotes 5 لها ميزات وأغراض مختلفة:
مستشار خبير هو نظام التداول الميكانيكي ربطها إلى تخطيط معين. مستشار الخبراء يبدأ تشغيل عندما حدث يحدث ذلك يمكن التعامل معها من قبل ذلك أحداث التهيئة وdeinitialization، الحدث إيصال القراد الجديد، حدث مؤقت، وعمق السوق المتغيرة الحدث، الحدث التخطيط وأحداث مخصصة.
مستشار الخبراء على حد سواء يمكن أبلغكم عن إمكانية بالتجارة والتجارة تلقائيا على حساب إرسال أوامر مباشرة إلى ملقم التجارة. يتم تخزين المستشارين الخبراء في terminal_directory \ MQL5 \ الخبراء.
المؤشر العرف هو مؤشر فني مكتوبة بشكل مستقل بالإضافة إلى تلك متكاملة بالفعل في محطة العميل. مثل مؤشرات مدمجة، وأنها لا يمكن أن التجارة تلقائيا ويقصد لتنفيذ وظائف تحليلية فقط.
يتم تخزين مؤشرات مخصصة في terminal_directory \ MQL5 \ مؤشرات
السيناريو هو برنامج يهدف لتنفيذ واحد من بعض الإجراءات. على عكس المستشارين الخبراء، ومخطوطات لا معالجة أية إجراءات، إلا لهذا الحدث بداية (وهذا يتطلب وظيفة معالج OnStart في برنامج نصي). يتم تخزين البرامج النصية في terminal_directory \ MQL5 \ مخطوطات
المكتبة هي مجموعة من الوظائف المخصصة المخصصة لتخزين وتوزيع الكتل استخداما من البرامج المخصصة. المكتبات لا يمكن بدء تنفيذ بأنفسهم.
يتم تخزين مكتبات في terminal_directory \ MQL5 \ المكتبات
تشمل الملف هو النص الأصلي للكتل الأكثر استخداما من البرامج المخصصة. يمكن تضمين هذه الملفات إلى النصوص مصدر المستشارين الخبراء، ومخطوطات، مؤشرات العرف، والمكتبات في مرحلة تجميع. استخدام الملفات الموجودة هو أكثر من الأفضل استخدام المكتبات بسبب الأعباء الإضافية التي تحدث في استدعاء وظائف المكتبة.
تشمل يمكن تخزين الملفات في نفس الدليل كملف مصدر - في هذه الحالة تتضمن # يستخدم التوجيه مع علامات اقتباس مزدوجة. مكان آخر لتخزين الملفات وتشمل terminal_directory \ MQL5 \ تشمل، في هذه الحالة يتم استخدام التوجيه # تتضمن مع أقواس زاوية.