Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (7th_zorro, TipmyPip, RealSerious3D), 892 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 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 Online OP
Member
SBGuy  Online 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,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
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 Online OP
Member
SBGuy  Online 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