There is no MT4 server involved (FXCM via API) and there is no weekend setting in the script. The whole (and IMO very simple) script is depicted in a former entry within this thread.