Gamestudio Links
Zorro Links
Newest Posts
MT5 bridge not working on MT5 v. 5 build 4160
by EternallyCurious. 04/25/24 20:49
Data from CSV not parsed correctly
by EternallyCurious. 04/25/24 10:20
Trading Journey
by howardR. 04/24/24 20:04
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 715 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 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