Gamestudio Links
Zorro Links
Newest Posts
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
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
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
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, howardR), 452 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
Starting intraday script from Window Batch file #480804
07/14/20 14:40
07/14/20 14:40
Joined: May 2018
Posts: 134
S
SBGuy Offline OP
Member
SBGuy  Offline OP
Member
S

Joined: May 2018
Posts: 134
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,982
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,982
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: 134
S
SBGuy Offline OP
Member
SBGuy  Offline OP
Member
S

Joined: May 2018
Posts: 134
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