Global initialization failed как исправить mt4

mobidik, Спасибо огромное! С компилировался нормально сейчас, в тестере запустился без ошибок!

  • #4 521

mobidik, Спасибо огромное!
С компилировался нормально сейчас, в тестере запустился без ошибок!

  • #4 522

mobidik, В тестере ошибок нет, но и не открывает сделки, пишит, типа один результат пропушен как не актуальный.
3 раза запускал на оптимизацию.

  • 2017-10-16_22.png

    2017-10-16_22.png

    13,8 КБ · Просмотры: 55

  • #4 523

Поспешил.
Это фунт-дол, а на евро-дол открывает.
Спасибо с большим уважением и почтением!!!!

Последнее редактирование: 15.10.2017

  • #4 524

Прошу помощи. Уберите ограничение у советника:
Expert advisor has expired!

  • eForwardFractals_v3.mq4

    82 КБ · Просмотры: 35

  • #4 525

Прошу помощи. Уберите ограничение у советника:
Expert advisor has expired!

:)

  • eForwardFractals_v3.mq4

    82 КБ · Просмотры: 107

  • #4 526

Прошу помощи. Уберите ограничение у советника:
Expert advisor has expired!

Вывел настройку даты До

  • eForwardFractals_v3.mq4

    82 КБ · Просмотры: 115

  • #4 527

Уважаемые , подлечите копировальщика. Не корректно работает…

  • TradeDuplicator.zip

    370,3 КБ · Просмотры: 49

  • #4 528

У меня тут индикатор с какой то Ошибкой в КОДе… В общем при изменении Параметра «ТЕМаSlow_First Period» индикатор исчезает с Графика Цены — dropmefiles.com/WwWjm

  • OPTIMA_mod.mq4

    5,7 КБ · Просмотры: 40

Последнее редактирование модератором: 18.10.2017

  • #4 529

Найдется у кого из спецов время, что бы посмотреть сову, не компилируется, и выдаёт ошибки, не могу сказать — оригинал или взломанный, я в этом ни в зуб ногой:facepalm:

все прекрасно компилируется в старом билде:not-bad:

  • GoldenProfit_ММ .ex4

    23,6 КБ · Просмотры: 40

  • GoldenProfit_ММ .mq4

    22,2 КБ · Просмотры: 64

  • #4 530

Помогите пожалуйста вот у этого Индикатора ОЖИВИТЬ НАСТРОЙКИ и убрать Стрелочки.
Дело в том что при изменение Параметров в Настройках — индикатор вообще никак не меняется. То ли Настройки не работают, то ли они Статичные и не подлежат каким либо изменениям — я так и не понял…

  • Speedi.mq4

    3,6 КБ · Просмотры: 42

e-go

e-go

Почетный гражданин


  • #4 531

Здравствуйте
Не ставятся в терминал, подправьте пожалуйста

  • rsi of macd double.mq4

    15 КБ · Просмотры: 24

  • rsioma — oma pre filtered.mq4

    23,2 КБ · Просмотры: 25

  • RSI_7TF.1.2.mq4

    35,5 КБ · Просмотры: 28

  • #4 532

Прошу мастеров сделать так чтоб индюк рисовал историю за указанное количество дней (От сегодня назад до, например 10 дней. Значит цифра 10 должна быть выведена в настройки ).

  • hidden_v_trend_channel.mq4

    48 КБ · Просмотры: 58

  • #4 533

Forex EA «Global Initialization Failed»

Dear forum Member
With due respect I would like to inform you that here I have attached an EA that is not work in the mt4 chart.When i have attached mt4 terminal.It doesn’t run.In the mt4 journal shows «Global Initialization Failed». If any of my forum member please fix the EA. I am a new Forex trader. I have not enough Idea about EA programming. So I am waiting your kind response.

Thanks and best wishes

REZA RIZVI

  • #4 534

Здравствуйте,грузит терминал, исправьте пожалуйста.:)

  • Zone.ex4

    61,1 КБ · Просмотры: 27

  • #4 535

«Global Initialization Failed» please fix the EA.

Dear forum Member
With due respect I would like to inform you that here I have attached an EA that is not work in the mt4 chart.When i have attached mt4 terminal.It doesn’t run.In the mt4 journal shows «Global Initialization Failed». If any of my forum member please fix the EA. I am a new Forex trader. I am waiting your kind response.

Thanks and best wishes

REZA RIZVI

  • #4 536

Не работает

Здравствуйте!
Советник не работает в МТ4 от РобоФорекс.

Оригинал взят тут: https://www.mql5.com/ru/code/9927

Помогите заставить его работать!!!
Пожалуйста!

  • Nova.mq4

    1,5 КБ · Просмотры: 41

  • #4 537

Dear forum Member
With due respect I would like to inform you that here I have attached an EA that is not work in the mt4 chart.When i have attached mt4 terminal.It doesn’t run.In the mt4 journal shows «Global Initialization Failed». If any of my forum member please fix the EA. I am a new Forex trader. I am waiting your kind response.

Thanks and best wishes

REZA RIZVI

there is nothing where the EA?:)

  • #4 538

Global Initialization Failed

Это значит что файл был уже исправлен но после обновления терминала на билд 1065 и выше, перестал работать. Нужно немного подправить секцию кода советника. Выкладывайте файл

  • #4 539

Баловство. Выкладываю 3 варианта, наложишь на родной посмотришь разницу.
1 — переходный для наглядности; 2 — вроде то, что ты хотел (на скрине); 3 — вместо high/low везде close.

Мне очень подошел этот индикатор.Спасибо.Ещё интересней было бы если «разрывы» были не на одну свечу а больше.Другое применение.Разрывы это ведь зона флэта и индикатор станет её показывать.Для таких зон индикаторы редкость и их почти нет.Попробуете?

  • #4 540

Юлия, Здравствуйте. Хотел бы предложить услуги по лечению сов, подскажите пожалуйста как это сделать, чтоб не нарушить условия форума, спасибо

Последнее редактирование модератором: 26.10.2017

Страница 10 из 14


  1. glebkhil

    glebkhil

    Проходил мимо
    Пользователь

    Сообщения:
    12
    Симпатии:
    0
    Пол:
    Мужской
    С нами:
    5 лет 6 месяцев 24 дня

    при инициализации ошибка вылазит в журнале «
    2017.07.18 17:23:36.529 Alpinist_1.02_edu EURUSD,M5: global initialization failed» — как решить ее?


  2. well72

    well72

    Трейдер
    Пользователь

    Сообщения:
    364
    Симпатии:
    160
    Пол:
    Мужской
    С нами:
    6 лет 6 месяцев 4 дня

    Купить оригинал. С 1065 билда ломаный софт не работает. Ну или поставить билд до 1065. Но тоже не вариант — с октября метаквоты перестанут поддерживать старые билды


    SEronn и Vanek нравится это.


  3. Vanek

    Vanek

    Трейдер
    Пользователь

    Сообщения:
    70
    Симпатии:
    31
    Пол:
    Мужской
    С нами:
    5 лет 10 месяцев 18 дней

    Максим, а можешь моник обновить? или прекратил торговлю данным советником?


  4. glebkhil

    glebkhil

    Проходил мимо
    Пользователь

    Сообщения:
    12
    Симпатии:
    0
    Пол:
    Мужской
    С нами:
    5 лет 6 месяцев 24 дня

    а скинуть на обменник нужный билд можешь?


  5. tyrist

    tyrist

    Новичок
    Пользователь

    Сообщения:
    76
    Симпатии:
    15
    Пол:
    Мужской
    С нами:
    6 лет 3 месяца 22 дня


  6. glebkhil

    glebkhil

    Проходил мимо
    Пользователь

    Сообщения:
    12
    Симпатии:
    0
    Пол:
    Мужской
    С нами:
    5 лет 6 месяцев 24 дня

    не подключаются те версии к InstaForex-UK.com, а очень жаль


  7. balsas

    balsas

    Проходил мимо
    Пользователь

    Сообщения:
    9
    Симпатии:
    0
    Пол:
    Мужской
    С нами:
    6 лет 5 месяцев 7 дней

    Перезалейте под новый билд пожалуйста. После 1090 не работает…


  8. Prospero

    Prospero

    Трейдер
    Пользователь

    Сообщения:
    65
    Симпатии:
    48
    Пол:
    Мужской
    С нами:
    6 лет 12 дней

    На новых билдах он работать не будет, только на старых, так как это ломанная версия, после 1 октября работать не будет уже ни на какой версии МТ.


  9. Vanek

    Vanek

    Трейдер
    Пользователь

    Сообщения:
    70
    Симпатии:
    31
    Пол:
    Мужской
    С нами:
    5 лет 10 месяцев 18 дней

    а интересно старые ex4 доктор сможет под новые билды подлечить?


  10. Prospero

    Prospero

    Трейдер
    Пользователь

    Сообщения:
    65
    Симпатии:
    48
    Пол:
    Мужской
    С нами:
    6 лет 12 дней

    Время конечно покажет, но думаю, что нет, скорее всего всё будет на уровне общего кода, а не просто изменить какую-то строку в сове. Такое уже было и старые советники без компилятора запустить на новых, на тот момент, билдах было не возможно — не проходил общий код советника.


  11. Prospero

    Prospero

    Трейдер
    Пользователь

    Сообщения:
    65
    Симпатии:
    48
    Пол:
    Мужской
    С нами:
    6 лет 12 дней

    Это, кстати, касается всех ломанных советников и индикаторов. И у меня возникает резонный вопрос, в виду грядущих перемен, на что рассчитывает покупатель и какова вообще целесообразности таких приобретений сейчас?


  12. FXprofit

    FXprofit

    Администратор
    Команда форума
    Администратор

    Сообщения:
    28.318
    Симпатии:
    10.884
    С нами:
    6 лет 6 месяцев 28 дней

    можно, если интересен бот — создавайте складчину- подрихтуем под новый билд


  13. Prospero

    Prospero

    Трейдер
    Пользователь

    Сообщения:
    65
    Симпатии:
    48
    Пол:
    Мужской
    С нами:
    6 лет 12 дней

    Макс, а сейчас все таблетки идут сразу с рихтовкой под новый билд или после 1 октября нужно будет опять собирать складчины на таблетки?


  14. FXprofit

    FXprofit

    Администратор
    Команда форума
    Администратор

    Сообщения:
    28.318
    Симпатии:
    10.884
    С нами:
    6 лет 6 месяцев 28 дней

    Сейчас все будут работать, с 1 отключат поддержку билдов на которых ранее работали до 1020


  15. Vanek

    Vanek

    Трейдер
    Пользователь

    Сообщения:
    70
    Симпатии:
    31
    Пол:
    Мужской
    С нами:
    5 лет 10 месяцев 18 дней

    Если не ошибаюсь, Вы и есть автор этого нашумевшего бота? Мой хороший друг по форексу очень хорошо отзывался о данном советнике. Возможно ли сейчас как-то приобрести данный советник напрямую, без складчин, без предоставления их доктору. Вы наверняка уже дописали советник до идеального, который торгует и стабильно зарабатывает. Может Вы берёте в ду? Или у Вас есть памм счёт?
    Если ничего это не интересно, просто хотелось бы поинтересоваться как Ваши успехи в торговле.


  16. Prospero

    Prospero

    Трейдер
    Пользователь

    Сообщения:
    65
    Симпатии:
    48
    Пол:
    Мужской
    С нами:
    6 лет 12 дней

    Ты и Никсер всё моё желание выйти с продажами бота убиваете на корню:D


  17. Prospero

    Prospero

    Трейдер
    Пользователь

    Сообщения:
    65
    Симпатии:
    48
    Пол:
    Мужской
    С нами:
    6 лет 12 дней

    Спасибо, приятно читать, передавайте привет Вашему другу:)
    Я уже долго думаю и решаюсь относительно начала продаж легального бота, но неуемные доктора постоянно вносят в эти планы свои коррективы:)
    На данный момент версия 1.02 была полностью мной переписана под текущие стандарты, так же был изменён общий алгоритм советника (исправил ошибки в блоках условий приводившие к большим просадкам). Он сейчас торгует на отдельном счёте, проходит тестовый период.
    Новая версия бота уже мультивалютна и работает сразу на 8-ми парах.
    Есть счёт для копирования в 4ю с версией торгующей только одну пару, можете понаблюдать или подключиться на небольшие деньги. За 2 года было несколько провалов до 70%, цифра критическая и я уже исправил эти блоки, но гарантий, что такого больше не повторится, к сожалению, нет. Утешает только то, что в эти моменты на 4ю слились все или практически все боты на мартинах.
    ПАММ думаю создать чуть позже.
    Сейчас работаю над стоповыми ботами, результаты нравятся:)


  18. Vitrion

    Vitrion

    Опытный трейдер
    Пользователь

    Сообщения:
    4.579
    Симпатии:
    4.604
    Пол:
    Мужской
    С нами:
    6 лет 3 месяца 20 дней

    Коллега, не забудьте потом прорекламировать продукт.
    Если TP больше SL и прибыльных сделок более 66%, то грааль.


  19. Vanek

    Vanek

    Трейдер
    Пользователь

    Сообщения:
    70
    Симпатии:
    31
    Пол:
    Мужской
    С нами:
    5 лет 10 месяцев 18 дней

    Спасибо за развёрнутый ответ.
    Сейчас я понимаю, что другу просто повезло получается на нём хорошо заработать, раз такие просадки возможны. Не думаю, что он пользовался купленной версией, также скачал где-то в интернете версию 1.02.
    По поводу докторов. Есть советники, которые не возможно вылечить, не зря докторам отдают сначала на осмотр пациентов. Да и сами доктора на сколько мне известно, говорили, что можно как-то написать код, который невозможно будет вылечить, но вряд ли они поделятся такими знаниями))
    По поводу стопового робота, Вы писали 29 апр 2017:
    «За 5 лет перебрал сотни стратегий и пришёл к выводу, что только мартины (торговля без стопа с добором позиции) способны приносить прибыль, все стоповые стратегии, что мне попадались, нужно было оптимизировать, а такой подход я считаю самообманом.»
    За 3,5 месяца в корне поменяли взгляды? Или нашли что-то интересное в этом направлении?
    И ещё, не могли бы открыть мониторинг нового мультивалютного робота хотя бы на сутки, исключительно ради любопытства?


    Prospero и Vitrion нравится это.


  20. Vanek

    Vanek

    Трейдер
    Пользователь

    Сообщения:
    70
    Симпатии:
    31
    Пол:
    Мужской
    С нами:
    5 лет 10 месяцев 18 дней

Страница 10 из 14


Форум профессиональных трейдеров


Traders Forex Forum - Robot Forex Learning Center

  1. Hi forum Member
    I have collected an EA from other Forum.I have used this EA several month but recently it doesn’t work.When I attach the chart the EA shows «Global Initialization Failed». So how can i Fix the EA.Pls help me.
    I am waiting your kind response.

    Thanks a lot

    REZA KHAN

    Attached Files:

  2. Hello all.
    I have this problem. My naive EA reported the same message. I’m very saddened. I do not know how to solve it. I think this is another insidious and not fair broker’s trick.

    • Agree Agree x 1
  3. Only programmer ea that can fix these problem
    I don’t know how to fix it, I guess if these ea good work and profitable because make you saddened

    • Like Like x 1
  4. This is another way to saying your EA had expired.

    • Agree Agree x 1
  5. Upload a mq4 file. I will fix, no error no warning.

  6. Hello AutoProfit, just a question, because I know you are a very good coder and probably has this information.

    Does this kind of message error also be caused by the incompatibility of the EA with the recent MT4 builds ?


  7. ionone2

    ionone2
    Active Member
    Credit Hunter

    yes Hal, Metaquotes disables old EAs with new MT4 versions (if you revert to the previous MT4 version, EA starts to work again). I already complained to them but they don’t care. Maybe if you ALL go and complain they’ll do something about that

    • Like Like x 1
  8. I am not a programmer.I have bought the EA last year.I have contact seller but they response need to buy new EA.May be mt4 update the EA show error.If any body fix it I wouldb be highly pleased.


  9. akhar

    akhar
    Member
    Credit Hunter

    It’s not the broker, it’s MT4 build +1650, no more old ea’s working with specialy edu ea’s

  10. Thank you for your reply. However, I believe that the cause of this problem is inscribed in the program code expiry date. How can you get MT4 build +1650?
    I have an idea how to remove ‘Global Initialization Failed’ But I have to check this after opening the market !!!!
    Greetings to all

  11. Hello Ionone2. Thank you for you kind response.
    Yes, the guys from Metaquotes, apparently, are achieving their objective of gradually killing the MT4.
    The impact of the various EAs that are not working anymore under the new MT4 builds affected all of us traders since last year.

    Regarding the possibility of reverting to previous MT4 versions, as far as I know, since the beggining of October the MT4 plataforms in almost all the brokers are only supporting the MT4 clients from the build 1065 on. I have tried to downgrade to builds 950, 902 for experiments and only received the message «old version». I am not sure at this moment but even the build 1045 is not working anymore.

    Well, If you have find a way to downgrade the MT4 to previous builds, allowing to all of us a «revival» with our «old loved EAs», please comment with us.
    Regards.


  12. ionone2

    ionone2
    Active Member
    Credit Hunter

    there is no way to revert to older version durably.

    just protest to Metaquotes and maybe they’ll stop

  13. Hi Reza Khan.
    Problem solved !!!
    I have good news for you. Ea Scalper_v.2.1 already works on demo account. I was able to remove the message «Global Initialization Failed». As I posted in post # 10 the issue is about the validity of the EA and not the MT4 build. However, you can fool EA and force him to work further for you. In the next post I will tell you how to do it.
    Regards

    Attached Files:

  14. This is a custom alert message from the coder.
    not a standard error message.

  15. If you look for a good EA or fixing an EA, look for SEF in FB.
    And if you like to learn Trading look for TDI in FB.

  16. Hi Adam53,Thanks a lot.I am higly pleased for fix the EA.I have run the EA mt4 old version.But withinn few minutes mt4 automatically update and EA doesn’t work.
    Finally I want to say theEA smoothy works at old mt4 but not work update mt4.I am waiting your kind response.Thanks and best wishes.

  17. If your broker is still accepting old builds of MT4, in order to avoid the updating of the MT you can insert the parameter /skipupdate in the command line of the MT4.

    Go the the icon of you MT4, open the properties and edit the TARGET inserting the /skipupdate at the end:

    «C:Program Files (x86)FBS Trader 4terminal.exe» /skipupdate

  18. HAL 900.Sir it is not possible for all brkers.The concern Broker every time notify for update Terminal.And sometimes it automatically updated then the EA doesn’t work.

  19. Sir,I am so glad for your kind response.It is a remarkeble matter in my life.I neverforget your kind consideration.Many many thanks for your kind cordial help.May Allah Bless you.Allah Hafez.

  20. Hi, MONIRBD
    I understand that Scalper_v.2.1 is already working. Was my instruction helpful or did you find another way?

Share This Page

I wrote this blog post to teach you what things you should check first when you face any problem with the Expert Advisor, Indicator or script on your MT4 terminal.

To be honest, I am not sure why I did not wrote this blog post earlier. For years people have been contacting me with various problems they have with their Expert Advisors and MetaTrader 4 platform. Obviously, they do have problems with my MT4 apps as well from time to time, but that’s pretty normal because every individual has it’s own knowledge base and there are no one who knows everything.

I’ve been running my software business since 2009 and during those years I have received thousands of email messages with various questions from currency traders. What I have learned during those years is that in most cases there is nothing wrong with the Expert Advisor or even the MetaTrader 4 client terminal. The problem is the lack of knowledge and the shortage of content available online that explains how to solve these problems.

Sure, it is easy to find basic lessons on how to use MT4 platform or even video tutorials on MT4, but as you might already know these lessons cover only the most basic stuff. Of course that is more than enough for anyone to learn and start using MetaTrader 4, but the problem begins when you face some difficulties and something is not working as it should.

I cannot promise that the information I provide in this article will solve all problems you might face with EAs, but I am sure that in most cases you’ll find these simple steps can remove most problems in minutes or even seconds.

Below you’ll find the checklist you should go through before you report any problem you have with MT4 apps. And I do not mean this should be used only on my MT4 apps. This stuff works with any MT4 EA, Indicator or script.

MT4 Apps Troubleshooting Checklist

The list of things that are most likely to fix Expert Advisors problems on MT4 client terminal:

  1. Autotrading” option should be turned on in the top toolbar of the MT4 terminal window.
  2. Allow live trading” option should be selected in the “EA Properties” window. Look for smiley face in the right-top corner of the chart.
  3. Long & Short” positions should be enabled for normal Expert Advisor operation.
  4. For some EA’s the “Allow DLL imports” option should be selected in the “EA Properties” window.
  5. For some EA’s the “Allow import of external experts” option should be selected in the “EA Properties” window.
  6. Check configuration in the “Tools -> Options -> Expert Advisors” window.
  7. Check the “Experts” tab for error messages at the bottom of the MT4 terminal window.
  8. Check the “Journal” tab for error messages at the bottom of the MT4 terminal window.
  9. Check if MT4 terminal is connected to the broker server.
  10. Check if your Internet connection has no problems.
  11. Make sure MT4 app can authorize license key (if applicable).
  12. Restart MT4 client terminal.
  13. Check if your computer has multi-core CPU.
  14. Read instruction manual and double check everything.
  15. Contact technical support.

Now let me give you as much details as I can on each of those checklist items.

1. Is Autotrading enabled?

One of the most common problems when running EAs is that MT4 has “Autotrading” option disabled. Obviously that is for your own safety which protects you from any problems that can arise if you accidentally run EA without even knowing much about it. I mean if you are new to MT4 and just started using it, any EA or script might do damage to your account if you use it incorrectly. This is why Autotrading is disabled by default.

Once you are ready to use Autotrading you can enable this option in the top toolbar of your MT4. Look for a button which reads “Autotrading” (in earlier MT4 versions this button was called “Expert Advisors”).

With this button you can turn Autotrading off or on. By default Autotrading is disabled in MT4 client terminal.

With this button you can turn “Autotrading” off or on. By default Autotrading is disabled in MT4 client terminal.

Green “Autotrading” button indicates that Expert Advisors are enabled on MT4.

Green Autotrading button indicates that Expert Advisors are enabled on MT4.

Red “Autotrading” button indicates that Expert Advisors are disabled on MT4.

Red Autotrading button indicates that Expert Advisords are disabled on MT4.

So if at any time you want to stop all trading robots running on your MT4 you can simply disable “Autotrading” option. However, not all EAs are created equally. Some may still continue to work and perform some of their operations, but you can be sure that under any circumstances no EA will be able to perform any trading operation if you have “Autotrading” disabled.

Also keep in mind that by default MT4 client terminal will disable Autotrading option once you change “Profile” (File -> Profiles) or log into a different account. This is to protect you from an unwanted EA operations once you change accounts.

Imagine if you are logged into account #1 where you have EA running that is suppose to close all trades when equity drops below 1000 USD. What if you switch to account #2 which has equity of 500 USD? EA would immediately close all positions. For this reason MT4 added this security option and all EAs would get disabled if you change accounts.

This MT4 behavior can be changed from the “Tools -> Options -> Expert Advisors” window. We will get back to this a bit later in section 6.

Autotrading is required for Expert Advisors (trading robots) but not MT4 indicators.

2. Is trading allowed for Expert Advisor?

A very common problem is that people do not realize that trading for the EA must be enabled when it is attached to the chart. By default it is disabled for security reasons.

When you attach the EA to the chart you’ll see “Expert Advisor Properties” window like this one below.

For Expert Advisor to work the Allow live trading option should be selected in the EA Properties window.

For Expert Advisor to work the “Allow live trading” option should be selected in the “EA Properties” window.

If this option is not selected the EA will not be able to perform any trading operations. This means this can also be used as an additional tool if you want to disable certain EA from trading. Sometimes I use this if I need temporary solution to stop EA from trading. It will continue to do it’s job like it normally would, but it will show an error when it attempts to open, modify or close a trade. In such case EA would receive an error code of 4109 (ERR_TRADE_NOT_ALLOWED). In human language normally this is translated as “Trade is not allowed“.

3. Is Expert Advisor allowed to trade in both directions?

This one is quite rare, but I’ve seen some cases when people set the EA to trade only in one particular direction and then later they forget about this and complain that their EA takes trades only in one direction.

MT4 EA configured to take Long and Short positions, but this option allows you to set the EA trade only in one particular direction if needed.

MT4 EA configured to take Long and Short positions, but this option allows you to set the EA trade only in one particular direction if needed.

In the example above we see EA is configured to take Long and Short positions (which is default setting), but this option allows you to set the EA trade only in one particular direction. Say if you select “Long only” option then EA will not be allowed to open Short positions. In that case EA would return error code 4111 (ERR_SHORTS_NOT_ALLOWED). In human language this is translated as “Shorts are not allowed“. Alternatively if your EA was set to trade in “Short only” mode then each time it tried to place a Long order you would see error code 4110 (ERR_LONGS_NOT_ALLOWED). In human language that is translated as “Longs are not allowed“.

4. Are DLL libraries enabled?

Many MT4 apps these days are using DLL libraries and usage of them is disabled by default in all MT4 client terminals. This is done for security reasons. You should be careful with MT4 apps that use DLL libraries. You should only use such apps if you obtain them from a trusted software provider.

I know this sounds like a bad thing, but it literally can be, because DLL files can be programmed to have access to all files on your computer. I do not want to scare you off using MT4 apps that use DLL files, just want to let you know how this works.

For example, almost every EA that I’ve created use DLL library file. Obviously I use clean code. The purpose of the DLL is to add a special function to the EA so it could connect to my server for license key authorization. I’ve been working very hard on this to make it as simple as possible and to not annoy customer in any way.

Because my apps use DLL library you cannot run them if you have “Allow DLL imports” option disabled. So if EA you are trying to use does not work, make sure you check if it uses any DLL libraries and if you should enabled this option.

MT4 Expert Advisor allowed to use DLL libraries. Many EAs do not work if this is disabled, but be careful with this and only enable DLLs from the verified publishers.

MT4 Expert Advisor allowed to use DLL libraries. Many EAs do not work if this is disabled, but be careful with this and only enable DLLs from the verified publishers.

If you try to run Expert Advisor which needs to use DLL library, but you have them disabled by unchecking the “Allow DLL imports” option, you would normally see error message like this in the “Experts” tab.

If you have DLL calls disabled then some MT4 Expert Advisors will not be able to run and give this error in the Experts tab.

If you have DLL calls disabled then some MT4 Expert Advisors will not be able to run and give this error in the Experts tab.

In the example above I’ve tried to run Hedge EA trading tool with DLL library calls disabled and this is the error I got: Cannot call ‘hedge_ea_18_personal.dll::auth’, DLL is not allowed.

Another problem I face with a DLL files is that they are usually not trusted by Anti-Virus software. There were some cases when my clean DLL files have been detected as false positive for virus. After I contacted anti-virus company and they’ve checked the code of my DLL, it was added to their white-list, but this situation still created unwanted inconvenience.

For this reason I have taken an extra step and requested to get a signed security certificate which is now attached almost to every single app that I create. This creates a “better relationship” with anti-virus programs, but still do not remove a problem of false positive detection in some cases.

My point with this is that even clean DLL libraries can be detected as viruses (even though it’s false positive), but this does not mean you should not be careful. DLL files can definitely contain viruses or other malware code.

Here’s how auto-installer of my Local Trade Copier app looks like with the signed security certificate issued by COMODO when you run it on the computer. Obviously my DLL library files are signed by the same certificate as well.

Software signed by Comodo security certificate says it comes from Verified publisher Rimantas Petrauskas.

Software signed by Comodo security certificate says it comes from Verified publisher Rimantas Petrauskas.

When such window appears on your computer running my software, you can click “Show details” and you’ll be able to view the certificate and its details. Not many individual programmers are verified. In most cases you only see big software companies have such certificates. Most of the programmers are not verified publishers. I am telling this not to brag, I am saying that you should be careful and watch what software you install on your computer. Also note that such protection appears on Windows computers and only if you have “User Account Control” enabled in the “Control Panel“.

If you are worried that some unknown file on your computer might contain a virus you can check it at VirusTotal – Free Online Virus, Malware and URL Scanner. When you upload a file to this website they will check it with like 50+ anti-virus programs. If you see that almost all of them detect a virus then it is obvious that this particular file is dangerous. If none or just couple of these applications detect your file as suspicious, chances are that it’s a false positive.

5. Is import of external experts enabled?

Okay, so this one is quite rare, but there still might be EAs that require this to be enabled in order to work properly. Personally I do not use this so my apps do not require import of external experts to be enabled.

If you feel your EA may not work because of this you should try running it with the “Allow import of external experts” option selected in the “EA Properties” window.

MT4 Expert Advisor allowed to import external experts. Some EAs do not work if this is disabled.

MT4 Expert Advisor allowed to import external experts. Some EAs do not work if this is disabled.

Also note, that your EA might start and work properly for some time and only later stop working if this option is disabled. Only the creator of your EA might know how this should be set for sure. Also, this might be explained in the instruction manual if you have received one with your EA.

6. Check default Expert Advisors settings

There is a special settings window in the MT4 that you can access from the top menu “Tools -> Options -> Expert Advisors“.

This is where you can set default settings for EA execution.

MT4 allows you to set the default setting for EA execution. This is the first window where I start MT4 configuration after fresh installation.

MT4 allows you to set the default setting for EA execution. This is the first window where I start MT4 configuration after fresh installation.

In the picture above you can see I have “Allow automated trading” and “Allow DLL imports” options selected. This sets my MT4 terminal to have “Allow DLL imports” selected by default when I attach new EA to the chart (as explained above in section 4).

Also this is where you can configure whether MT4 should disable Autotrading once you log into a different account (or change “Profile“) or not. I have mentioned this in section 1.

7. Are there any error messages in the “Experts” tab?

This is where most of the problems might be solved. I mean it. This tab logs every action from every EA that is running on your account. Also, EAs are usually configured to print user-friendly error messages in there as well. Of course not all EAs are created equally, but when I create EAs I always try to print as much information as possible to let the user be aware of what’s going on on his MT4 terminal and what problems EA might be facing at the moment.

A simple example is where EA tries to open a position but it fails. To demonstrate how this looks like I am using my Trader On Chart 1-click trading tool. I have set this app to open 100 lot size position and once I click BUY button the app obviously tries to complete this command. However broker server rejects the trade as there is not enough money in the account and TOC app receives a response from the broker server with the error code 134 (ERR_NOT_ENOUGH_MONEY). This simply means “Not enough money“.

Broker server rejects the trade as there is not enough money in the account and TOC trading app receives a response from the broker server with the error code 134 which means: Not enough money.

Broker server rejects the trade as there is not enough money in the account and TOC trading app receives a response from the broker server with the error code 134 which means “Not enough money”.

Those who check “Experts” tab for error messages might solve their problems faster by themselves. In this particular example it is obvious that we need more money in the account or use a smaller lot size.

Those who do not check “Experts” tab for error messages might not even understand why the trade was not opened. Obviously they would put all the blame on the Expert Advisor. However, in this, like in many other cases, the problem is not in the EA.

Even if your EA gives just an error code with no explanation you can still find out what it means if you look at this list of MQL4 Error codes.

Also, important to mention that all these messages logged in the “Experts” tab are also stored in special log files that can be accessed anytime on your computer. Experts log files are stored in the Data FolderMQL4Logs

You can also access these log files faster by clicking the right mouse button inside the “Experts” tab and choosing “Open“. Here’s another article I wrote about how to read log files and actually understand them.

When you report any problem with the EA to the company, you should include the log files from that folder.

For me it is very important to solve the problems associated with my software, but I need a little bit of help from my customers as well. Ideally, people should check for any potential solution in this guide and the instruction manual first. If that does not help, I usually ask people to send me the following information so I could investigate the case.

  • List of all trade numbers from the MT4 account involved in the incident.
  • Log files from MT4 platform located at Data FolderMQL4Logs (do not confuse them with the Data Folderlogs because these files does not help)
  • Screenshot of the MT4 platform with the EA dashboard visible or the chart where EA is attached.

Data Folder” can be opened from your MT4 platform by going to “File -> Open Data Folder“.

If customer sends me a question “My EA does not work. Why?” I really cannot help much with just this information.

8. Are there any error messages in the “Journal” tab?

The “Journal” tab is not that useful as the “Experts” tab, but in some cases it might give you quite useful and important information. Let’s take the same example we used before. When “Not enough money” error was logged in the “Experts” tab the same was logged in the “Journal” tab as well.

Broker server rejects the trade as there is not enough money in the account and this error is logged in the Journal tab of MT4 terminal.

Broker server rejects the trade as there is not enough money in the account and this error is logged in the Journal tab of MT4 terminal.

However, when you troubleshoot EAs, such information might not be useful because this does not tell us if this request to open a position was sent by an Expert Advisor or by a human (manually).

I would say that the “Journal” tab is more useful when you are looking for messages about the connection problems. MT4 logs them here.

MT4 Journal tab logs connection errors which can help you identify whether your Internet connection is poor or not.

MT4 Journal tab logs connection errors which can help you identify whether your Internet connection is poor or not.

Those who check “Journal” tab for error messages might solve their problems faster by themselves.

Also, important to mention that all these messages logged in the “Journal” tab are also stored in special log files that can be accessed anytime on your computer. Journal log files are stored in the Data Folderlogs

You can also access these log files faster by clicking the right mouse button inside the “Journal” tab and choosing “Open“.

9. Is your MT4 terminal connected to the broker server?

The most simple way to check if your MT4 terminal is connected to the broker server or not is to look at the bottom-right corner of the terminal window. If it reads “No connection“, or “Invalid Account“, or “Account Suspended“, or anything like that, this means you are not connected and trading is not possible.

In the right-bottom corner of the MT4 terminal window you will be notified if there no connection to the broker server.

In the right-bottom corner of the MT4 terminal window you will be notified if there no connection to the broker server.

When MT4 terminal is connected, it will typically display the counter at the bottom-right corner, which indicates how much data were downloaded from the broker server.

MT4 terminal displays the counter which indicates how much data were downloaded from the broker server.

MT4 terminal displays the counter which indicates how much data were downloaded from the broker server.

Here’s another great idea how to check whether your MT4 terminal is connected to the broker server or not. If the clock in the “Market Watch” window is running and price quotes are updating constantly then your terminal is connected to the broker server.

MT4 Market Watch window is updated constantly if there is a connection established to the broker server.

MT4 Market Watch window is updated constantly if there is a connection established to the broker server.

If “Market Watch” window is not updating then your MT4 terminal is not connected to the broker server or it is weekend and the market is closed.

10. Is your Internet connection stable?

Check if your Internet connection has no problems. The most simple way to do this is to open your Internet Browser and visit a few websites on the Internet.

Also, you should close all 3rd party applications that might use high bandwidth of your Internet connection. I have in mind Torrent software and other similar downloader apps 🙂

You can also check with your Internet service provider and ask if everything is okay on their side if you suspect you have a slow Internet connection.

11. Is EA able to authorize its license key?

If your MT4 app needs to authorize with the vendor server, make sure there are no Internet connection problems and you can access vendor’s website. Firewall or Anti-Virus software on your computer might be blocking connection.

For example most of my MT4 apps use license key. Once you purchase a software from me you get a license key that must be used with the software. Obviously this license key must be authorized by establishing a connection to my web-server. If any 3rd party software on your computer blocks this connection the EA will not be able to authorize and run.

Not all MT4 apps work that way, but there are certainly many that do so. If you can access this blog post from the same computer where you have one of my apps giving you trouble with the authorization, this means your connection is good and the problem is somewhere else. Then you should double check if you enter correct license key and if there are no spaces or other characters around it.

If you are using software from someone else you should contact that particular company/author.

12. Have you tried restarting MT4 terminal?

It cannot be more simple than this, yet many people do not think about it. If you tried most or all of the things discussed on this page and you still experience problems a simple MT4 restart might solve the problem.

To restart MT4 you simply need to close the main MT4 terminal window and after 15-30 seconds start MT4 again.

If things look weird with MT4 window or it cannot respond at all, you should check if there are no MT4 process “stuck” in memory. With the latest MT4 version this does not happen much, but still there is a chance.

To check if there is an MT4 process stuck in memory you need to open “Task Manager” window by clicking right-mouse button on the bottom task bar and choosing “Start Task Manager“.

You can start Task Manager from the task bar pop-up menu.

You can start Task Manager from the task bar pop-up menu.

Once “Task Manager” window is loaded you need to switch to the “Processes” tab and see if there are any “terminal.exe” processes on that list. Sorting the list by “Image Name” helps a lot in this situation.

MT4 terminals on the process list in the Windows Task Manager.

MT4 terminals on the process list in the Windows Task Manager.

If you have all MT4 windows closed and you see terminal.exe processes on this list you should end them. To end a process you need to select it and click “End Process” button. When you end all terminal.exe processes you can start your MT4 terminal. You should end processes in such way only if you feel your MT4’s are stuck in memory and do not respond or even do not show main window.

13. Is your MT4 slow because of multi-core CPU?

I have discovered this problem last year. Basically it sounds like this. If you are running MT4 client terminal on a multi-core CPU machine then all MT4 terminals might work very slow. This seems to be the case only on those computers and VPS servers that have multi-core CPU processors. I have already explained how to check and solve this problem in detail in another blog post and people call it the most effective solution to speed up your MetaTrader 4 platform.

14. Have you read instruction manual?

Okay, I admit that this is the most boring thing to do in the world. I’ve never read instruction manual before in my life until I was forced to write one for my MT4 app. Yes, that’s true. I know how boring that is and that most people think it is a waste of time. But believe me, instruction manuals are written for a reason. Actually that’s pretty obvious. If you get an instruction manual of 100 pages do not freak out. It might be that 80% of that document is just pictures and you will read it all in just 10 minutes or so.

Also, if you scan through the table of contents you might see that some sections of the manual is not relevant to you at this moment and you can just read the ones that are important.

And my favorite method of reading instruction manuals is that I read first few pages, which usually contain the most important information, and then I just read the headlines of other pages. If I find that this is relevant for me I will read the entire page.

For example the instruction manual of my MT4 trade mirroring software is quite long, but there are sections that explain things like “How to create an image of your MT4 terminal” which might be not relevant to many people. It won’t do any harm if you skip this, and when you finally need to learn this you’ll know where to find it.

Also, I always use search feature to find things I need. For example you want to find out what UseSmartBreakout option does in my Trendline Trader software. It would be quite boring to read all the instruction manual so you can just use search function (Ctrl+F in Adobe Reader) to find this text and read only what interests you.

15. Do you really need to contact technical support?

When you contact your FX broker you expect them to respond fast. Many brokers even offer live chat support. I’ve been using this a lot lately and I must say it’s awesome. You can open websites from 20 different brokers and copy/paste the same question to all of them almost at the same time. In just a few minutes you’ll have an answer from all of them. So this saves you hours of your time as you do not need to read all of the content on each website.

However, when you contact technical support team of one person, like for example me, then it’s obvious that he will not be able to answer instantly. If all 8 work hours a day that I have would be dedicated to answering questions then yes, I think I would be able to answer emails in minutes and even offer live chat support. However, I also need to improve my software, create new features, fix bugs, analyze tons of log files that I receive from my customers and I have only 8 hours a day for all this.

Yes, I could hire someone to do the support, and I’ve tried that last year. It did not work well because I was reading emails and because of that I was not familiar with the problems my customers have, and in the end I still had to answer many of the technical questions myself as I am the only programmer and creator of my apps.

Of course, if none of the above helps and you cannot find any solution to your problem in the instruction manual, and there is not much help on the vendor’s website, then you should contact support team with whatever questions you have. I cannot speak for others, but I know that I always do my best to answer every single email I receive. Obviously priority goes to those who have purchased my software.

Conclusion

All computer application have problems from time to time and this is inevitable. What’s important here is if you receive help from the software creator or the company that sold you the software. However, keep in mind that many problems come from misunderstanding and if you can spend 5 minutes to solve the problem yourself then do it. From my point of view it is easier to find an answer and solve the problem in minutes by yourself than contacting technical support team and waiting for 12-72 hours until they respond. Obviously not all questions are equal. Some might be answered only by technical support team.

I hope this short guide will help you solve problems when running your Expert Advisor on the MT4 client terminal.

Please share your thoughts in the comments below and let me know if you think anything is missing in this guide.


Rimantas Petrauskas

First I am a father, a husband and then the author of the book “How to Start Your Own Forex Signals Service”. I am also a Forex trader, a programmer, an entrepreneur, and the founder of ea-coder.com Forex blog. I have created two of the most popular trade copiers and other trading tools for MT4 that are already used world wide by hundreds of currency traders.

authorization-getting-started-metatrader-4-help image

WebAuthorization. Authorization is connection of terminal to the server through a login and a password. It allows to manage a trading account. Two accesses to the account are possible in the terminal: a normal password and an …
From metatrader4.com
See details »


GLOBAL INITIALIZATION FAILED!!!!!!! — EXPERT ADVISOR — MQL4 …

global-initialization-failed-expert-advisor-mql4 image

WebMay 2, 2014 The initialization failed because the objects still existed. I was doing error checking on everything but the object creation failure wasn’t being reported. Apparently, it blew and gave me MQL’s error before ever …
From mql5.com
See details »


HOW TO FIX MT4 COMMON ERROR IN 2023? — FOREX EDUCATION

WebMT4 common error represents a connection problem in your Metatrader platform. To overcome this problem, you need to check the internet connection, the antivirus program, …
From forex.in.rs
See details »


*GLOBAL INITIALISATION FAILED* — MAGIC KEYS

WebUse the one relative to your Metatrader version (vc_redist_MT4 or vc_redist_MT5). Restart both Magic Keys and Metatrader afterwards and make sure the EA starts …
From forum.magickeys.trade
See details »


PYTHON — METATRADER ERROR INITIALIZE() FAILED, ERROR CODE = (-10005 …

WebMar 5, 2021 There might be some solutions to your problem: Try initializing a connection to the MT5 terminal using mt5.initialize() then login into the trading account using …
From stackoverflow.com
See details »


MT4 STRATEGY TESTER PROBLEMS — AUTOMATED MT4 INDICATORS

WebNote the date when it stops as that is the maximum period you can test. To add additional history select “Tools” from the MT4 menu, then “Options”, then the “Charts” Tab. Enter …
From automatedmt4indicators.com
See details »


INITIALIZATION ERROR 4 TERMINAL.EXE/ MT4 — MICROSOFT …

WebJun 17, 2016 Created on June 17, 2016 Initialization error 4 terminal.exe/ MT4 I have the same problem. I followed your instructions and nothing change. it seems Metatrader 4 …
From answers.microsoft.com
See details »


SUGGESTION — ‘GLOBAL INITIALIZATION FAILED» FIX THE EA.

WebOct 27, 2017 I was able to remove the message «Global Initialization Failed». As I posted in post # 10 the issue is about the validity of the EA and not the MT4 build. However, you …
From soehoe.id
See details »


PROBLEM WITH EA’S INTEGRATION WITH MT4 PLATFORM — MQL5

WebJan 11, 2022 I’ve got a small problem with my EA. As I try to start it in my MT4 platform, I get an error in expert journal — global initialization failed & invalid EX4 file (7). Would …
From mql5.com
See details »


MT4 STRATEGY TESTER PROBLEMS | FOREX FACTORY

WebAug 18, 2017 Quoting Nicholishen. {quote} Use these files to replace the ones in the ..Metatradertemplates folder. Make sure you give your reports unique names the next …
From forexfactory.com
See details »


HOW TO RESTART A MT4 PROGRAM AUTOMATICALLY? | FOREX FACTORY

WebDec 28, 2010 If MT4 is not connected there are no ticks so a while should be used to check the connection. 4. start MT4 platform with run.bat An example is attached. Attached File. …
From forexfactory.com
See details »


INITIALIZATION OF VARIABLES — VARIABLES — LANGUAGE BASICS

WebAny variable can be initialized during definition. If a variable is not initialized explicitly, the value stored in this variable can be any. Implicit initialization is not used. Global and …
From docs.mql4.com
See details »


SUGGESTION — ‘GLOBAL INITIALIZATION FAILED» FIX THE EA. | PAGE 2 …

WebOct 27, 2017 For all the way to remove the message «Global Initialization Failed» and restore EA to work. This is an effective method, but not for all EAs. There are EA built so …
From soehoe.id
See details »


BEST EA – [COST $199] – FOR FREE — FOREXCRACKED

WebJun 14, 2020 Developer. Best EA is a non-stop trading robot that uses grid trading and hedging strategies. It will trade continuously 24×7. This EA is super easy to learn and …
From forexcracked.com
See details »


EVENT HANDLING FUNCTIONS — FUNCTIONS — LANGUAGE BASICS

WebThe MQL4 language provides processing of some predefined events. Functions for handling these events must be defined in a MQL4 program; function name, return type, …
From docs.mql4.com
See details »


ERROR IN MT4 BACKTESTING (PAGE 1) — HELP AND SUPPORT — FOREX …

WebJun 7, 2017 This show that if no start date is selected the MT Tester loads 101 bars. By setting a start date, the tester can start with a greater number. Here is the expert code: …
From forexsb.com
See details »


Related Search


Понравилась статья? Поделить с друзьями:
  • Golang net error
  • Golang multi error
  • Golang make error
  • Golang log error
  • Golang http tls handshake error from