Gamestudio Links
Zorro Links
Newest Posts
How to install R ?
by Clifford_B. 10/16/19 18:05
Indices & metals easier to trade than FX???
by StefanCGN. 10/15/19 16:19
Can't plot daily high & low
by Zheka. 10/14/19 18:39
TWS "Market closed" fix
by jcl. 10/14/19 15:09
2xCapital slider to increase size
by jcl. 10/14/19 14:03
Imgui Lite-c Development
by txesmi. 10/13/19 09:40
AUM Magazine
Latest Screens
The Space Between
Pogostuck: Rage With Your Friends
Worst Case Z
AckCon'18 - Lotter vs the World 2 - Preview Release
Who's Online Now
10 registered members (Phrendo, AndrewAMD, Clifford_B, 3run, Dooley, sdh309795gaas, Superku, Shutch, kvm, 1 invisible), 625 guests, and 31 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Clifford_B, Paulius, Junker, FrankW, TedMar
18307 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 3 of 3 1 2 3
Re: Zorro on Linux [Re: kankan] #476894
04/18/19 14:02
04/18/19 14:02
Joined: Jul 2000
Posts: 27,029
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,029
Frankfurt
Interesting, this looks as if Wine would handle the Windows COleDateTime class in a slightly different way. If that's the only issue with Wine, we could theoretically replace it with an own class.

Can someone post their Wine settings, [Re: dr_panther] #476911
04/22/19 15:49
04/22/19 15:49
Joined: Apr 2019
Posts: 7
Washington
M
michaelj Offline
Newbie
michaelj  Offline
Newbie
M

Joined: Apr 2019
Posts: 7
Washington
I am not new to Linux, I just don't know how to setup Zorro on linux.

Re: Can someone post their Wine settings, [Re: michaelj] #477001
05/01/19 17:41
05/01/19 17:41
Joined: Apr 2019
Posts: 20
K
kankan Offline
Newbie
kankan  Offline
Newbie
K

Joined: Apr 2019
Posts: 20
Quote:
Here's a way to test if the reason of the difference are issues of Wine with the COLEDateTime class:

Run a backtest under Windows and Wine and compare the timestamps in the log. Then modify the TickFix setting on the Wine Zorro version, add or subtract a few seconds, and run the test again. If you get a setting that produces the same results as under Windows, please let me know. I can then forward this to the developers for implementing an own time class and making Zorro Wine-compatible.


OK, I tried this and it produced completely different log files, with different prices, different results. I am not sure TickFix makes sense here.

Maybe I didn't explain the Windows-Wine differences clearly before. A vast majority of the log lines are exactly the same (the prices and the times). The problem is only around the weekends it seems. As you can see in the log I posted earlier, Wine has:
- an extra line on Saturday at midnight (a gap of 5hrs since the last candle?!?)
- a missing Monday 00:00 line
- different prices for Monday 01:00 and Sunday 23:00

Here is an example again:
Wine:
[110: Fri 12-01-06 19:00] 1.2722/1.27261.2718/1.2722 <-- same as Windows
[111: Sat 12-01-07 00:00] 1.2722/1.27311.2717/1.2720 <-- Saturday midnight... 5Hr gap
[112: Sun 12-01-08 23:00] 1.2720/1.27201.2692/1.2694 <-- different prices
[113: Mon 12-01-09 01:00] 1.2694/1.26941.2666/1.2689 <-- missing Monday 00:00

Windows:
[110: Fri 12-01-06 19:00] 1.2722/1.27261.2718/1.2722
[111: Sun 12-01-08 23:00] 1.2722/1.27311.2692/1.2694
[112: Mon 12-01-09 00:00] 1.2694/1.26941.2666/1.2680
[113: Mon 12-01-09 01:00] 1.2680/1.26941.2678/1.2689

Then all exactly the same until the next weekend... which shows the same type of differences.


Then, once the trades start coming in, it seems to think that midnight is one hour later than it is and it prints the trading summary at 01:00 instead of midnight. Obviously, the trading results differ due to the different prices/times.

Wine
[1002: Wed 12-02-29 23:00] 15.65 +1.88 4/3 (1.33253)
[1003: Thu 12-03-01 00:00] 15.65 +1.94 4/3 (1.33247)
[1004: Thu 12-03-01 01:00] 15.65 +0.66 4/3 (1.33375) <-- at 01:00
Thursday 12-03-01 Loss -12.07 ----
Current DD: 13.93$ (47.2%)
[1005: Thu 12-03-01 02:00] 15.65 +0.57 4/3 (1.33384)

Windows
[1002: Wed 12-02-29 23:00] 12.60 +1.88 4/4 (1.33253)
[1003: Thu 12-03-01 00:00] 12.60 +1.94 4/4 (1.33247) <-- at midnight
Thursday 12-03-01 Loss -11.41 ----
Last DD: 47.67$ (100.0%) in 2 days (7 days ago)
[1004: Thu 12-03-01 01:00] 12.60 +0.66 4/4 (1.33375)


So to me it's too suspicious that it's exactly off by 1 hour...
I tried playing with time zones, weekend start/end but without any success in matching Windows and Wine results. I am also new to Zorro so not sure I was doing things correctly.

I have attached samples of the logs.

Attached Files
Workshop4_test_wine.txt (12 downloads)
Re: Can someone post their Wine settings, [Re: kankan] #477007
05/02/19 06:24
05/02/19 06:24
Joined: Jul 2000
Posts: 27,029
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,029
Frankfurt
Then it's probably not a rounding difference, but some error in a Wine time function. Ok, we'll look into this and check if we can implement a workaround.

Re: Can someone post their Wine settings, [Re: jcl] #477010
05/02/19 10:19
05/02/19 10:19
Joined: Apr 2019
Posts: 20
K
kankan Offline
Newbie
kankan  Offline
Newbie
K

Joined: Apr 2019
Posts: 20
Do you suspect a certain function or a class that could be the culprit? Because if indeed it is a bug in Wine, perhaps other projects that were ported to Wine had encountered this issue and maybe there is already a workaround or a fixed dll or something like that.

Re: Can someone post their Wine settings, [Re: kankan] #477011
05/02/19 10:51
05/02/19 10:51
Joined: Jul 2000
Posts: 27,029
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,029
Frankfurt
Yes, I suspect a Wine bug with an COleDateTime class member. We'll inform Wine.

Re: Wine settings - wine-staging 4.13-1 seems to work [Re: jcl] #478010
08/25/19 09:44
08/25/19 09:44
Joined: Aug 2019
Posts: 2
A
aud Offline
Guest
aud  Offline
Guest
A

Joined: Aug 2019
Posts: 2
Hello,

with the configuration

community/wine-mono 4.9.2-1
multilib/wine-staging 4.13-1
multilib/wine_gecko 2.47-2
community/winetricks 20190615-1 -> install corefonts

Zorro 2.15 seems to work in a 32-bit environment. Wine is running on arch linux 5.2.8.

I ran workshop 6 including training on wine and compared it to a windows machine and got identical results. Similarly workshop 4 ran through.

Furthermore I installed R i386 3.6.1 - modified the path to R (RTermPath) in the zorro.ini file and the script RTest ran through. A connection to an fxcm demo account could be estabished as well. Help could be displayed also.

The only thing which does not perfectly work yet is that after running the RTest scipt, parts of the menu becomes invisible and the menu buttons become visible again if one moves over them with the mouse. The message window seems to move over the menu buttons. A restart and a single run works. It does not happen running the workshop scripts.

Hence, the previously described errors seem to be resolved in the configuration as described above and a smaller problem with the menu buttons running R seem to be present.

Any thoughts or comments on that test?

Re: Wine settings - wine-staging 4.13-1 seems to work [Re: dr_panther] #478013
08/25/19 12:54
08/25/19 12:54
Joined: Jul 2000
Posts: 27,029
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,029
Frankfurt
Thanks, good to know.

Re: Zorro on Linux [Re: dr_panther] #478069
09/01/19 20:12
09/01/19 20:12
Joined: May 2015
Posts: 163
Czech Republic
Grat Offline
Member
Grat  Offline
Member

Joined: May 2015
Posts: 163
Czech Republic
I have also problem with msg window over button area.

After star Zorro under linux - without problem. But if switch the other desktop and return back:

[Linked Image]

Attached Files
Screenshot_71.png (229 downloads)
Last edited by Grat; 09/01/19 20:13.
Re: Zorro on Linux [Re: dr_panther] #478072
09/03/19 08:15
09/03/19 08:15
Joined: Aug 2019
Posts: 2
A
aud Offline
Guest
aud  Offline
Guest
A

Joined: Aug 2019
Posts: 2
Hello,

I could reproduce that error. The msg window over button problem appears if zorro is minimized and then brought back again. A workaround is to change the winecfg settings to graphics -> emulate virtual screen. Then zorro runs in a virtual screen and one can minimize the virtual screen and bring it up with the original layout. Minimizing zorro within the virtual screen fails though.

Page 3 of 3 1 2 3

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1