Zorro on Linux

Posted By: dr_panther

Zorro on Linux - 10/11/17 15:59

This thread is dedicated to Zoro on Linux.

I successfully install Zorro 1.66 on Ubuntu 18.3 using Wine and Playonlinux, no special settings or whatever needed.
After adding shortcuts to Zorro.exe and Notepad++, most things works as expected.


In the very early state I see the following shortcomings so far:

*) The Help does not work, I use the on-line manual

I would be glad if people could share their experience and help to overcome the shortcomings together.

cheers
Posted By: stephane97490

Re: Zorro on Linux - 10/11/17 16:12

I seems to be a good news, i'll try to install zorro on linux too
Posted By: stephane97490

Re: Zorro on Linux - 10/11/17 16:50

the "help" works for me !!
Posted By: gtell

Re: Zorro on Linux - 10/21/17 06:55

Thanks for sharing this good news.
What about interaction with R?
Posted By: nanotir

Re: Zorro on Linux - 10/21/17 09:08

what about R, multicore, trade mode?
Those do not work with ubuntu 16.10 and zorro 1.60
Posted By: fran

Re: Zorro on Linux - 10/24/17 09:05

To see the help files (.chm) install this:
sudo apt-get install xchm
Now you can open the help from Linux.
Posted By: Sphin

Re: Zorro on Linux - 10/28/17 22:05

Okay, it's a bit experimentary but at least it works and is surely the cheapest way of an always-up bot. laugh



Zorro on a Raspberry Pi 3 Model B with ExaGear Desktop emulating x86 arch for wine.
Posted By: Sphin

Re: Zorro on Linux - 10/31/17 17:19

2 questions:

Has someone made already experiences with the trade mode under wine like Nanitek asked? How long did you trade live and was it without problems?

Does someone know if Zorro uses .NET framework directly or is it for a component e.g. npp?

Thanks, Sphin
Posted By: johnsmith1608

Re: Zorro on Linux - 01/01/18 00:02

A little extra on this topic to get the program running under linux

firstly I am running opensuse tumbleweed with the system version of wine and playonlinux

to get the software working I had to install wine-gecko to render the charts properly

I also used wine settings to ensure the fonts were displayed larger and then they are less jagged on my screen

I also set up a playonlinux shortcut to display the help using the wine internal help viewer hh.exe as it did not automatically display help from the menus/buttons. I have also installed kchmviewer so I can read the help from linux when off line

hth

johnsmith1608
Posted By: alb

Re: Zorro on Linux - 02/21/18 19:47

hi, I'm a Linux user too and I run zorro in wineHQ. Apparently it works but caution because I had run the same optimization with the same data (zorro S 1.74.8 script workshop 6 StartDate 2012 EndDate 2016) in a linux box and in a Windows pc but the results was completly different. So I stoped to trust in data produced by zorro under wineHQ.

my conf is ubuntu 16.04, playonlinux, arch 32bit, wine ver 1.9.24, zorro 1.74.8

finally I removed zorro from winehq

Posted By: Markuz

Re: Zorro on Linux - 09/16/18 15:25

I installed Zorro 1.83.2 on Linux using wine (32 bit). I also installed wine-gecko and jre (using the workaround mentioned at winehq and adding a symlink to jvm.dll in the Zorro installation directory). The documentation is rendered correctly. However, the charts are missing fonts (legends, axes numbers, etc).

I know that Zorro is not supported under Linux but do you have an idea how to fix this problem?
Posted By: DdlV

Re: Zorro on Linux - 09/16/18 16:07

Hi Markuz. Install corefonts. I did it via winetricks via q4wine...

HTH.
Posted By: Markuz

Re: Zorro on Linux - 09/16/18 16:33

Thank you very much. This solved my problem.
Posted By: JamesHH

Re: Zorro on Linux - 10/10/18 19:18

Originally Posted By: fran
To see the help files (.chm) install this:
sudo apt-get install xchm
Now you can open the help from Linux.


I have xchm, but when I click on Help I just get a blank white window. Is there something else I should be doing?
Posted By: TipmyPip

Re: Zorro on Linux - 10/13/18 08:50

Have Zorro Trader planform on Compiled for Linux.
Posted By: JamesHH

Re: Zorro on Linux - 01/28/19 02:24

I don't think you should have remove Zorro from wineHQ, just because you "stopped trust in data produced by zorro under wineHQ". Unless you were the one who made the wineHQ entry in the first place?

I mean it doesn't sound like you carefully analyzed the discrepancy, to pinpoint a failure under Wine.
Posted By: laz

Re: Zorro on Linux - 01/28/19 17:37

I also think this, first you have to make sure that everything is really the same, input data (history files, asset settings) and so on... There is no reason (which i know) why it should produce complete different results - when all the data is the same.

1+1=2 no matter if it is linux or windows... Depending on what algos you use you can get small differences (caused by randomness) but it should not produce very different results (good system (win) turns into a bad system (linux)).

Zorro runs fine here on Fedora 28 / Wine.
Posted By: kankan

Re: Zorro on Linux - 04/18/19 08:34

I have seen differences between runs as well (Wine on MacOS).
What I've noticed is that the historical data is somehow being read differently, even though the whole History folder is an exact copy of each other.

For example, under Wine, it reports:
Test period 2012-01-18..2017-12-29 (35984 bars)

Under Windows:
Test period 2012-01-18..2017-12-29 (35990 bars) <--- notice more bars here for the same period

The version of Zorro has been freshly downloaded in both cases, 2.03.
I'm a beginner with Zorro and have no idea where to even start looking for fixing this...
Posted By: jcl

Re: Zorro on Linux - 04/18/19 08:44

Different output results are caused by different input data. I think it is unlikely that they are caused by Linux. But whatever the reason is, you can normally quickly find it by comparing both logs. A comparing tool like BeyondCompare is very useful here.
Posted By: kankan

Re: Zorro on Linux - 04/18/19 08:58

I have compared them and it looks to be time related... somehow data in Wine is being shifted by 1 hour it seems, but not always, only around the weekends.
It almost seems like a Timezone issue even though both machines are set to the same GMT+1. The tested data was EURUSD, downloaded from zorro website, script was Workshop_4.

There are things like this all over the test.log
Wine:
[110: Fri 12-01-06 19:00] 1.2722/1.27261.2718/1.2722
[111: Sat 12-01-07 00:00] 1.2722/1.27311.2717/1.2720 <-- Saturday midnight?
[112: Sun 12-01-08 23:00] 1.2720/1.27201.2692/1.2694
[113: Mon 12-01-09 01:00] 1.2694/1.26941.2666/1.2689

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
Posted By: jcl

Re: Zorro on Linux - 04/18/19 14:02

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.
Posted By: michaelj

Can someone post their Wine settings, - 04/22/19 15:49

I am not new to Linux, I just don't know how to setup Zorro on linux.
Posted By: kankan

Re: Can someone post their Wine settings, - 05/01/19 17:41

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 File
Workshop4_test_windows.txt  (115 downloads)
Attached File
Workshop4_test_wine.txt  (119 downloads)
Posted By: jcl

Re: Can someone post their Wine settings, - 05/02/19 06:24

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.
Posted By: kankan

Re: Can someone post their Wine settings, - 05/02/19 10:19

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.
Posted By: jcl

Re: Can someone post their Wine settings, - 05/02/19 10:51

Yes, I suspect a Wine bug with an COleDateTime class member. We'll inform Wine.
Posted By: aud

Re: Wine settings - wine-staging 4.13-1 seems to work - 08/25/19 09:44

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?
Posted By: jcl

Re: Wine settings - wine-staging 4.13-1 seems to work - 08/25/19 12:54

Thanks, good to know.
Posted By: Grat

Re: Zorro on Linux - 09/01/19 20:12

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 picture Screenshot_71.png
Posted By: aud

Re: Zorro on Linux - 09/03/19 08:15

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.
Posted By: andydoc

Re: Zorro on Linux - 12/01/20 15:06

I just installed WINE and then Zorro. Will report as I go but got a (non-fatal) install error for Zorro:
0073:err:module:import_dll Library ForexConnect.dll (which is needed by L"C:\\users\\andydoc1\\Zorro\\Plugin\\FXCM.dll") not found
andydoc1@research-1:~/Downloads$ 0073:fixme:msvcrt:__clean_type_info_names_internal (0x3b73d4) stub
0073:fixme:msvcrt:__clean_type_info_names_internal (0x35e424) stub

I don't currently use FXCM but might do in future. Any ideas?
© 2024 lite-C Forums