Do VPS providers stop the mt4/mt5 virtual client during the weekend and start it fresh when market opens on Sunday/Monday

 

Hi,

I was wondering if VPS providers stop the server on weekends for backup and start server fresh with same ea .

The reason I am asking it is because some of my data like stop loss are stored in text files.

I saw someone post on the forum that we don't set visual access to the vps client on windows server.

What if we want to make any changes or give some input to the ea the first time it loads. Then the ea can run for ever but first time it need input

Is it not better to rent a simple windows cloud server form google, aws or azure and physically run a mmt4 client on it and have visual access it it.


Thanks

Vishal Ved

 
vedvishal100:

I was wondering if VPS providers stop the server on weekends for backup and start server fresh with same ea .

The reason I am asking it is because some of my data like stop loss are stored in text files.

Is it not better to rent a simple windows cloud server form google, aws or azure and physically run a mmt4 client on it and have visual access it it.
  1. Maybe, maybe not. You shouldn't care.

    EAs must be coded to recover. If the power fails, OS crashes, terminal or chart is accidentally closed, on the next tick, any static/global ticket variables will have been lost. You will have an open order but don't know it, so the EA will never try to close it, trail SL, etc. How are you going to recover? Use a OrderSelect / Position select loop to recover, or persistent storage (GV+flush or files) of ticket numbers required.

    On a network disconnection you might get ERR_NO_RESULT or ERR_TRADE_TIMEOUT. There is nothing to be done, but log the error, return and wait for a reconnection and a new tick. Then reevaluate.

  2. If the file was there when it stopped it should be there when it restarts.
  3. Right click → Synchronize, vs Selecting a Windows VPS, transferring the EA, making sure it starts on server reboot, and starting the EA. Which is simpler to you?