This tutorial covers indicator installation for MetaTrader 4 and 5. Since MT4 Build 600, there is no difference in the way it is done in the two versions of the platform.
يغطي هذا البرنامج التعليمي تثبيت المؤشرات لميتاتريدر 4 و5. منذ MT4 Build 600، لا يوجد فرق في الطريقة التي يتم بها ذلك في نسختي المنصة.
The reflects the most current and easiest way to install new indicators in MetaTrader — both MT4 and MT5.
يعكس هذا أحدث وأسهل طريقة لتثبيت مؤشرات جديدة في MetaTrader — كل من MT4 وMT5.
There are many free MetaTrader indicators available online, but traders often encounter problems when attaching these indicators to a chart or compiling them. This simple tutorial was created for those who want to learn how to install custom MetaTrader indicators. The process is quite similar to installing a new expert advisor, but there are some differences.
هناك العديد من مؤشرات MetaTrader المجانية المتاحة عبر الإنترنت، ولكن غالبًا ما يواجه المتداولون مشكلات عند ربط هذه المؤشرات بالرسم البياني أو تجميعها. تم إنشاء هذا البرنامج التعليمي البسيط لأولئك الذين يرغبون في تعلم كيفية تثبيت مؤشرات MetaTrader المخصصة. تشبه العملية تمامًا تثبيت مستشار خبير جديد، ولكن هناك بعض الاختلافات.
1. Download custom MT4/MT5 indicator and save it anywhere on your PC.
1. قم بتنزيل مؤشر MT4/MT5 المخصص واحفظه في أي مكان على جهاز الكمبيوتر الخاص بك.
2. Launch your trading platform.
2. قم بتشغيل منصة التداول الخاصة بك.
3. Open the platform's data folder via menu File->Open Data Folder:
3. افتح مجلد بيانات النظام الأساسي عبر القائمة ملف->فتح مجلد البيانات:
Alternatively, you can navigate to the folder using Windows Explorer:
C:UsersAppDataRoamingMetaQuotesTerminal
وبدلاً من ذلك، يمكنك الانتقال إلى المجلد باستخدام مستكشف Windows:
C:UsersAppDataRoamingMetaQuotesTerminal
4. Open MQL4 folder (or MQL5 if you are installing an MT5 indicator):
4. افتح مجلد MQL4 (أو MQL5 إذا كنت تقوم بتثبيت مؤشر MT5):
5. Open Indicators folder:
5. افتح مجلد المؤشرات:
6. Paste your indicator file here:
6. الصق ملف المؤشر الخاص بك هنا:
7. If it is an already compiled file (.ex4 or .ex5), then fine. All you need to do is return to your MetaTrader, right-click on Indicators in the Navigator panel, and click Refresh. The new indicator will appear in the same Navigator panel:
7. إذا كان ملفًا مترجمًا بالفعل (.ex4 أو .ex5)، فلا بأس. كل ما عليك فعله هو العودة إلى MetaTrader الخاص بك، والنقر بزر الماوس الأيمن على المؤشرات في لوحة Navigator، ثم النقر فوق Refresh. سيظهر المؤشر الجديد في نفس لوحة Navigator:
8. If it is not a compiled file but a source file (.mq4 or .mq5), then you need to double-click its icon — it will open in MetaEditor (it is included in the MetaTrader package). Now, either press F7 or click the Compile button:
8. إذا لم يكن ملفًا مجمعًا ولكنه ملف مصدر (.mq4 أو .mq5)، فأنت بحاجة إلى النقر نقرًا مزدوجًا فوق الرمز الخاص به — سيتم فتحه في MetaEditor (وهو مضمن في حزمة MetaTrader). الآن، اضغط على F7 أو انقر فوق الزر Compile:
Normally, there shouldn't be any errors during the compilation process. However, if some errors appear in the Toolbox panel, you can either try fixing them or contact the indicator's developer to help with the issue. Usually, it takes some MQL knowledge and coding skills to fix such errors. No errors output looks like this:
عادة، لا ينبغي أن يكون هناك أي أخطاء أثناء عملية التجميع. ومع ذلك، إذا ظهرت بعض الأخطاء في لوحة Toolbox، فيمكنك إما محاولة إصلاحها أو الاتصال بمطور المؤشر للمساعدة في حل المشكلة. عادة، يتطلب الأمر بعض المعرفة بـ MQL ومهارات البرمجة لإصلاح مثل هذه الأخطاء. لا يبدو إخراج الأخطاء كما يلي:
Compilation errors look like this:
تبدو أخطاء التجميع كما يلي:
9. After you compile or copy an executable MetaTrader file (.ex4 or .ex5), you can start using the indicator in your platform. All you have to do is attach it to the chart:
9. بعد تجميع أو نسخ ملف MetaTrader القابل للتنفيذ (.ex4 أو .ex5)، يمكنك البدء في استخدام المؤشر في النظام الأساسي الخاص بك. كل ما عليك فعله هو إرفاقه بالمخطط:
If you know what you are doing, you might also want to change some of the indicator's input parameters:
إذا كنت تعرف ما تفعله، فقد ترغب أيضًا في تغيير بعض معلمات إدخال المؤشر:
When I try to compile an indicator, it says that the compiler could not be opened. What to do?
Most likely, your MetaTrader installation is corrupted and you need to re-install the platform to fix this error.
How long does it take for a compiler to compile an .ex4/.ex5 file out of a .mq4/.mq5 file?
For .mq4 to .ex4 compilation, the process usually takes less than a second. For .mq5 to .ex5 compilation, the process is usually somewhat longer and may take up to 30-40 seconds for particularly large indicators.
How do I install a custom indicator on my iPad/iPhone/Android or other mobile device?
MetaTrader mobile apps do not support custom indicators, so you won't be able to install them there.
When I try to compile an indicator, I get an "EX4 write error" message. Any suggestions on how to fix that?
Please make sure that your MQL4 folder is writable for the SYSTEM user.
How do I install an .ex4 or .mq4 indicator on my MetaTrader 5?
Unfortunately, it isn't possible to install .ex4/.mq4 indicators (MetaTrader 4 indicators) on MetaTrader 5. The same is true for installing .ex5/.mq5 (MT5) indicators on MetaTrader 4.