Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/19/24 18:45
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (7th_zorro, AndrewAMD, TedMar), 837 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Zorro and hibernation mode #425478
07/06/13 08:19
07/06/13 08:19
Joined: Oct 2012
Posts: 48
C
Chaosfreak Offline OP
Newbie
Chaosfreak  Offline OP
Newbie
C

Joined: Oct 2012
Posts: 48
Hi,

i'm running Zorro on a separate mini-pc which I shutdown on weekends. By now I stopped Zorro and shutted down the pc. Would it be ok to shutdown the pc in hibernation mode and reactivate it sunday evening or do you think there are any problems with this? Thanks.

Re: Zorro and hibernation mode [Re: Chaosfreak] #425534
07/08/13 06:53
07/08/13 06:53
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
I would not shut down a trading PC.

Theoretically there should be no problems with hibernation when the markets are definitely closed. But it can happen that a PC does not properly wake up and has to be restarted, which also means a Zorro restart. Any Zorro restart at weekend can reduce the performance in the following week, for various reasons.

So let the PC run, even if it costs a few cents more on the electricity bill.

Re: Zorro and hibernation mode [Re: jcl] #425554
07/08/13 13:13
07/08/13 13:13
Joined: Jun 2013
Posts: 1,609
D
DdlV Offline
Serious User
DdlV  Offline
Serious User
D

Joined: Jun 2013
Posts: 1,609
So, there's no way to install any upgrades (Windows, Zorro, antivirus, whatever) without reducing performance thereafter?

Re: Zorro and hibernation mode [Re: jcl] #425555
07/08/13 13:16
07/08/13 13:16

A
acidburn
Unregistered
acidburn
Unregistered
A



Originally Posted By: jcl
Any Zorro restart at weekend can reduce the performance in the following week, for various reasons.


This contradicts previous information we had on Z strategies, and doesn't seem robust enough. Don't you think that documenting "various reasons" would be a good idea?

I mean even FXCM shuts down it's servers on weekend, and if we can't do the same we can't even make a proper backup?! frown

So far we only know that phantom trade logic is reset on every restart (can live with that). What else is impacted by weekend restart?

Re: Zorro and hibernation mode [Re: ] #425565
07/08/13 14:19
07/08/13 14:19
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
The composition of the initial bar. You start normally not at a bar boundary, but in the middle of a bar. Thus the bar will partially consist of historic prices from the server, partially of new prices received later. There can be a gap between the latest historic prices and the current price, especially when you start trading while the server is offline or not up to date, as on weekends. This gap makes the bar different to the same bar when Zorro were not restarted.

Aside from that, if your script does not use phantom trades or store other trade relevant information in internal variables, you can normally restart Zorro without affecting the performance.

The initial bar problem is less relevant with the MT4 interface because the MT4 server is normally always online. But there's another problem: MT4 stores not enough price data for long lookback periods such as used by the Z systems. We have not found a noticeable performance difference, but it is possible, as the MT4 history size is slightly below the recommended periods for the used filters.

Re: Zorro and hibernation mode [Re: jcl] #425584
07/08/13 19:05
07/08/13 19:05

A
acidburn
Unregistered
acidburn
Unregistered
A



Originally Posted By: jcl
The composition of the initial bar. You start normally not at a bar boundary, but in the middle of a bar. Thus the bar will partially consist of historic prices from the server, partially of new prices received later. There can be a gap between the latest historic prices and the current price, especially when you start trading while the server is offline or not up to date, as on weekends. This gap makes the bar different to the same bar when Zorro were not restarted.


OK, this is not that bad. Now finally I understand fully why you were always against restarting, even if it looks benign to the uninitiated (if done over weekend). cool The above paragraph should find its way into the documentation, IMHO.

So, only one bar is affected. The same one that in many cases also includes big weekend gap. Ugly. It would be great if the last bar from previous week ended there, and new week opened with a new bar. But, I'm sure that is easy to imagine, but much more complex to properly implement, thanks to various timeframes, baroffsets, timezones, DST and whatnot. frown Actually, for a long time I wanted to crosscheck my tick data with fxcm data from zorro, to validate both of them, but I know it will take hours because some of that stuff can really get complicated.

Back to our restart issue, just to make sure I got everything right. If weekends are bad because of data gaps and server outages, would than actually make more sense to do quick restarts on the weekdays, when the market is calm? Of course I understand the danger of missing some price data, especially if the strategy was about to open/close a position. But, at least the historic data should be available from the servers, without any gaps.

Also, I noticed that fxcm servers are completely unavailable on Saturdays, but come back on Sundays (market still closed, of course). Is there any difference if (re)starting Zorro on Saturday or Sunday? Maybe it would be best, even in this case, to start late Sunday, after the market opens, but before Zorro resumes trading? Please give advice. Thanks.

Re: Zorro and hibernation mode [Re: ] #425603
07/09/13 10:07
07/09/13 10:07
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
We found that FXCM servers, although online on Sundays, were sometimes no up to date, so some price data was missing. This seemed not to have happened anymore recently, but FXCM does not guarantee the consistency of their price servers during weekends and holidays.

So my answer is: It's theoretically possible that restarting at weekends does not affect performance, but it's not guaranteed.

To tell the truth, for our own trading we've never experimented with restarts so far. In fact none of us even ever got the idea to intentionally stop and restart a live trading software. We have some Zorros here running for more than a year, still in version 0.9. So all what I told here is rather theoretical, we have no practical experience of restarting effects and side effects.

Re: Zorro and hibernation mode [Re: jcl] #425606
07/09/13 10:11
07/09/13 10:11

A
acidburn
Unregistered
acidburn
Unregistered
A



Thanks jcl for the nice explanation.

Re: Zorro and hibernation mode [Re: ] #425828
07/11/13 12:44
07/11/13 12:44
Joined: Jun 2013
Posts: 1,609
D
DdlV Offline
Serious User
DdlV  Offline
Serious User
D

Joined: Jun 2013
Posts: 1,609
Thanks also, jcl. However, I'm still a unclear as to the bottom line. It seems clear enough that if there's no reason to, don't stop Zorro. However, what if there is a (at least potential) reason? For example, my machine says it has "important" Windows updates to do. (Could be antivirus or whatever else...) Is there a recommended procedure?

a) Ignore Microsoft & don't do them ever. laugh
b) Do them over the weekend after Zorro's logged out.
c) Do them over some night when trading's quiet.
d) Do them whenever's most convenient for you.
e) Other?

Thanks.

Re: Zorro and hibernation mode [Re: DdlV] #425832
07/11/13 13:29
07/11/13 13:29
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
As long as you do not use your trading PC for downloading games or browsing the Internet, disable all Windows updates. You only need three things on that PC: Zorro, the broker platform, and a remote control tool such as Teamviewer. No antivirus and no updates. Configure it just like a VPS.

Page 1 of 2 1 2

Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1