Gamestudio Links
Zorro Links
Newest Posts
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Trading Journey
by 7th_zorro. 04/27/24 04:42
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
MT5 bridge not working on MT5 v. 5 build 4160
by EternallyCurious. 04/25/24 20:49
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, TipmyPip), 747 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Zorro.exe -run main.c does not close Zorro after finishing job #473501
07/16/18 10:09
07/16/18 10:09
Joined: Dec 2013
Posts: 14
O
oligodar Offline OP
Newbie
oligodar  Offline OP
Newbie
O

Joined: Dec 2013
Posts: 14
Command "Zorro.exe -run main.c" does not close Zorro after finishing job.

It has the same behavior as -stay switch.

Can anybody help me?

Re: Zorro.exe -run main.c does not close Zorro after finishing job [Re: oligodar] #473505
07/16/18 15:09
07/16/18 15:09
Joined: Feb 2017
Posts: 1,725
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,725
Chicago
This works for me: "zorro -run Workshop1"

What's your Zorro version? Is the strategy in your strategy folder like it's supposed to?

Re: Zorro.exe -run main.c does not close Zorro after finishing job [Re: AndrewAMD] #473506
07/16/18 18:13
07/16/18 18:13
Joined: Dec 2013
Posts: 14
O
oligodar Offline OP
Newbie
oligodar  Offline OP
Newbie
O

Joined: Dec 2013
Posts: 14
Zorro.exe is v1.8.3.2. Yes, main.c is in "./strategy" folder. But zorro.exe is executed from Python. That might be a problem...

Last edited by oligodar; 07/16/18 18:14.
Re: Zorro.exe -run main.c does not close Zorro after finishing job [Re: oligodar] #473508
07/16/18 21:29
07/16/18 21:29
Joined: Feb 2017
Posts: 1,725
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,725
Chicago
Windows batch files work correctly.

Three things:
* Post your python script.
* Python version?
* Windows or Linux/Wine?

Re: Zorro.exe -run main.c does not close Zorro after finishing job [Re: AndrewAMD] #473509
07/17/18 07:26
07/17/18 07:26
Joined: Dec 2013
Posts: 14
O
oligodar Offline OP
Newbie
oligodar  Offline OP
Newbie
O

Joined: Dec 2013
Posts: 14
Yes, windows batch file works correctly.

1. Python script Convert

2. Python version 2.7.13 run from Cygwin64

3. Windows 10x64

Scripts originated: statsmage.com

Caption of main Zorro windows changed from "Zorro .." to "Z Client S ..." Z Client S

Re: Zorro.exe -run main.c does not close Zorro after finishing job [Re: oligodar] #473510
07/17/18 11:59
07/17/18 11:59
Joined: Feb 2017
Posts: 1,725
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,725
Chicago
Using Python 3.6 in Windows (native), with Zorro Beta 1.85.1:
Code:
import os
os.system("C:\ZorroBeta\zorro -run Workshop1")


Zorro ("Z Client") opens, runs, closes. os.system returns 0.

By the way, this command line does not work:

Code:
zorro Workshop1 -run

... but this does:
Code:
zorro -run Workshop1

Perhaps there was a change in the command line rules?

Sure enough, in your script, I see this:

Code:
zorro_call = '{} ConvertData -run -i {} -i {} -a {} -d TCK'.format(

... should be

Code:
zorro_call = '{} -run ConvertData -i {} -i {} -a {} -d TCK'.format(

... and there's a similar line in there in need of correction.

Last edited by AndrewAMD; 07/17/18 12:12.
Re: Zorro.exe -run main.c does not close Zorro after finishing job [Re: AndrewAMD] #473511
07/17/18 12:16
07/17/18 12:16
Joined: Dec 2013
Posts: 14
O
oligodar Offline OP
Newbie
oligodar  Offline OP
Newbie
O

Joined: Dec 2013
Posts: 14
I have changed:

zorro.exe ConvertData -run >> zorro.exe -run ConvertData

and it works!

Thank you a lot AndrewAMD

Last edited by oligodar; 07/17/18 12:48.

Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1