Gamestudio Links
Zorro Links
Newest Posts
New Zorro version 2.30
by jcl. 08/14/20 12:48
Reducing Function Times
by txesmi. 08/14/20 12:13
2 questions
by danatrader. 08/14/20 10:05
NeoDumont's open world treadmill project
by NeoDumont. 08/13/20 23:33
Corvitextu texture browser released...
by NeoDumont. 08/13/20 23:19
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 08/13/20 12:00
AUM Magazine
Latest Screens
Untitled Walking Simulator
The Space Between
Pogostuck: Rage With Your Friends
Worst Case Z
Who's Online Now
9 registered members (txesmi, kvm, 3run, alibaba, danatrader, Superku, AndrewAMD, Dooley, 1 invisible), 482 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Janusz, Sovattha, DonSergio, bigimpactsound, tzw101
18492 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Starting intraday script from Window Batch file #480804
07/14/20 14:40
07/14/20 14:40
Joined: May 2018
Posts: 102
S
SBGuy Offline OP
Member
SBGuy  Offline OP
Member
S

Joined: May 2018
Posts: 102
I'm tracking down a strange crash. I have an intraday BarPeriod=2 script, which runs perfectly fine if I manually double click on Zorro, select the script, and click Trade.

But when I start it from this simple batch file command it crashes after getting the first few quotes from the broker through a localhost webserver broker engine

start "myscript" "C:\Zorro\Zorro.exe" -trade myscript -c myaccount

My EOD day scripts are launched the same way and they work just fine. The difference is that EOD waits to get price quotes toward the EOD and the intraday script gets price quotes as soon as it is started.

Is there some strange windows networking thing that might be causing this when Zorro is started with a "start" batch command?

Thanks!

Re: Starting intraday script from Window Batch file [Re: SBGuy] #480888
07/22/20 08:29
07/22/20 08:29
Joined: Jul 2000
Posts: 27,320
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,320
Frankfurt
We found an issue where it crashed when the asset list was completely missing. Can that be the reason?

Re: Starting intraday script from Window Batch file [Re: SBGuy] #480900
07/22/20 15:08
07/22/20 15:08
Joined: May 2018
Posts: 102
S
SBGuy Offline OP
Member
SBGuy  Offline OP
Member
S

Joined: May 2018
Posts: 102
Ah yes... that fixed it. It also worked with the use of assetAdd instead of assetList().

Thanks jcl!

Last edited by SBGuy; 07/22/20 15:39.

Moderated by  Petra 

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