Discussion of article "Why Virtual Hosting On The MetaTrader 4 And MetaTrader 5 Is Better Than Usual VPS" - page 48

 
tembulat55:
The tenth point is the beginning of the night, everything works on my computer, but not on the hosting.
 
tembulat55:
The tenth point of the beginning of the night, on my computer everything works, but on the hosting does not work

If TimeLocal is used in the EA, it may be different on the server.

If you work with TimeCurrent or TimeGMT, there will be no difference.

 
Andrey Khatimlianskii:

If TimeLocal is used in the Expert Advisor, it may be different on the server.

If you work with TimeCurrent or TimeGMT, there will be no difference.

How do I know what time is used in the Expert Advisor?
 
tembulat55:
How can I find out what time is used in the Expert Advisor?
To do this, you need to see the editable mq5 code. If there is no code - then contact the person who made this EA.
 

As far as I understand the EA can create files on virtual hosting, for example in the MQL/Files folder.

The question is: when I synchronise the EA again and delete it, will the files created by the EA be deleted? If not, how can I delete them?

 
tembulat55:
How do I know what time is used in an Expert Advisor?

By looking at the code.

Or indirectly - by logs (if it writes something in them) or actions (if you know exactly how one of the functions tied to time works, just enable it on the VPS and see when it works).

 
Александр:

As far as I understand the EA can create files on virtual hosting, for example in the MQL/Files folder.

The question is: when I synchronise the EA again and delete it, will the files created by the EA be deleted? If not, how do I delete them?

Are you sure it creates files? It didn't seem to work for me, I had to give up files.

You can always delete files using FileDelete()

 
Andrey Khatimlianskii:

Are you sure it does? It didn't seem to work for me, I had to give up on files.

You can always delete FileDelete()

A little earlier someone from MQ wrote that it can create on virtual hosting, but during synchronisation files are not transferred to the hosting.

I wanted to understand what happens to the existing files during the next synchronisation.

 
Александр:

A little earlier someone from MQ wrote that it can be created on shared hosting, but during synchronisation the files are not transferred to the hosting.

I wanted to understand what happens to the existing files during the next synchronisation.

Experts and indicators are overwritten during synchronisation. I suspect that all files on the built-in shared hosting are deleted.

But this can always be checked:

  • first synchronise Expert Advisor #1, which does only one action - creates the file "test_deleting.txt".
  • then we perform another synchronisation, but only with Expert Advisor #2, which does only one action - checks for the presence of the file "test_deleting.txt" and reports the result of the search.

 

To transfer existing files from MQL5\Files to hosting, use the #property tester_file construct

There is no reverse transfer of files from hosting to the client terminal.

During a simple start-stop of the hosting terminal, files are not destroyed.

During migration (even if repeated) the folder of the hosting terminal is created anew each time, i.e. no previous files are saved