Discussion of article "How to Prepare a Trading Account for Migration to Virtual Hosting" - page 28

[Deleted]  
Server Muradasilov:
on the 15th of next month.
Thanks, got it.
 

Hello.

Please advise me, I have an MT4 (from Alpari) EA connected. It works on my computer, but it doesn't want to work on a VPS.

I connected the VPS according to the instructions:

https://www.mql5.com/en/articles/994

The server log shows an error that it cannot load the Expert Advisor:

cannot open file 'C:\MetaTraderHosting\instances\12F77A6AFDCC897979340CA1EB0D56BF64\MQL4\Experts\ForexVzlomshikProH1\experts\Forex Vzlomshik Pro.ex4' [3]

But there is no such path and folders on my computer:

MetaTraderHosting\

instances\

12F77A6AFDCC8979340CA1EB0D56BF64

How to connect an Expert Advisor on VPS?

Подготовка торгового счета к миграции на виртуальный хостинг
Подготовка торгового счета к миграции на виртуальный хостинг
  • 2014.10.01
  • MetaQuotes Software Corp.
  • www.mql5.com
Клиентский терминал MetaTrader идеально подходит для автоматизации торговых стратегий. Для разработчиков торговых роботов в нем есть всё ‒ мощный язык программирования MQL4/MQL5 на основе C++, удобная среда разработки MetaEditor, многопоточный тестер стратегий с поддержкой распределенных вычислений в MQL5 Cloud Network. В этой статье вы узнаете, как перенести свой клиентский терминал со всеми разработками в виртуальную среду.
 
PavelKa1:

Hello.


One of the explanations is that DLL calls are not allowed on shared hosting. If an Expert Advisor uses DLL calls, it will not work on shared hosting. For reference - using DLL is a sign of old programming and ignorance in terms of security.
 

How can I find out if it uses DLL or not?

In the settings on my computer, in the settings of the Expert Advisor, DLL is disabled. And the Expert Advisor works. So it doesn't use DLL?

Is there any way to specify the path to the Expert Advisor on the server?

(for some reason the message is written over a line and takes up a lot of space - I don't know how to fix it).

 
PavelKa1:


Recompile the Expert Advisor in a new build (currently the latest MetaTrader 4 has build 950).
 

If I understood correctly, recompilation is needed when the Expert Advisor does not get on the chart and does not work on MT4.

But it works fine on my computer. But it does not work on VPS.

If the format of the EA is not in MQ4, but only EX4, then do not recompile?

 
PavelKa1:

If I understood correctly, recompilation is needed when the Expert Advisor does not get on the chart and does not work on MT4.

But it works fine on my computer. But it does not work on VPS.

If the format of the EA is not in MQ4, but only EX4, can't I recompile it?

Only editable formats (mq5 or mq4) can be compiled. What is the build of the terminal on your home computer? Also check the virtual hosting logs for errors and messages - and both virtual platform logs - Terminal and Expert Advisors).
 


I realised that recompiling will not work, because I have the EA only in EX4 format.
On my home computer build 950.
There are no errors in the log of virtual hosting "Terminal".
In the "Expert" log I wrote one of the errors earlier.
To elaborate, the advisor is multicurrency and at the last moment in the journal "Experts" errors are as follows:
2016.03.22 06:03:47.516 cannot open file 'C:\MetaTraderHosting\instances\12F77A6AFDCC897979340CA1EB0D56BF64\MQL4\Experts\ForexVzlomshikProH1\experts\Forex Vzlomshik Pro.ex4' [3]
2016.03.22 06:03:47.532 cannot open file 'C:\MetaTraderHosting\instances\12F77A6AFDCC897979340CA1EB0D56BF64\MQL4\Experts\ForexVzlomshikProH1\experts\Forex Vzlomshik Pro.ex4' [3]
2016.03.22 06:03:47.548 cannot open file 'C:\MetaTraderHosting\instances\12F77A6AFDCC8979340CA1EB0D56BF64\MQL4\Experts\ForexVzlomshikProH1\experts\Forex Vzlomshik Pro.ex4' [3]
2016.03.22 06:03:47.563 cannot open file 'C:\MetaTraderHosting\instances\12F77A6AFDCC8979340CA1EB0D56BF64\MQL4\Experts\ForexVzlomshikProH1\experts\Forex Vzlomshik Pro.ex4' [3]
2016.03.22 06:03:47.579 cannot open file 'C:C:\MetaTraderHosting\instances\12F77A6AFDCC897979340CA1EB0D56BF64\MQL4\Experts\ForexVzlomshikProH1\experts\Forex Vzlomshik Pro.ex4' [3]
2016.03.22 06:03:47.594 cannot open file 'C:\MetaTraderHosting\instances\12F77A6AFDCC897979340CA1EB0D56BF64\MQL4\Experts\ForexVzlomshikProH1\experts\Forex Vzlomshik Pro.ex4' [3]
2016.03.22 06:03:47.626 cannot open file 'C:\MetaTraderHosting\instances\12F77A6AFDCC897979340CA1EB0D56BF64\MQL4\Experts\ForexVzlomshikProH1\experts\Forex Vzlomshik Pro.ex4' [3]
2016.03.22 06:03:47.641 cannot open file 'C:\MetaTraderHosting\instances\12F77A6AFDCC8979340CA1EB0D56BF64\MQL4\Experts\ForexVzlomshikProH1\experts\Forex Vzlomshik Pro.ex4' [3]
2016.03.22 06:03:47.672 cannot open file 'C:\MetaTraderHosting\instances\12F77A6AFDCC897979340CA1EB0D56BF64\MQL4\Experts\ForexVzlomshikProH1\experts\Forex Vzlomshik Pro.ex4' [3]

 
Could not find about traffic on vps, disc there 30 m.b. terminal logs are actively filled, how on vps to clear the log, is it possible? What happens if there is no memory left on the disc? Is there a traffic limit?
 
Anatolij Anufriev:
Could not find about traffic on vps, disc there 30 m.b. terminal logs are actively filled, how on vps to clear the log, is it possible? What happens if there is no memory left on the disc? Is there a limit on traffic?

On shared hosting, built into the terminal you, in fact, do not have access to information about the disc (about its size). And you can always view the disc usage in the following way: Working with virtual platform. And quite a normal situation is a disc usage around 250 MB:

Disk usage on shared hosting