Starting intraday script from Window Batch file

Posted By: SBGuy

Starting intraday script from Window Batch file - 07/14/20 14:40

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!
Posted By: jcl

Re: Starting intraday script from Window Batch file - 07/22/20 08:29

We found an issue where it crashed when the asset list was completely missing. Can that be the reason?
Posted By: SBGuy

Re: Starting intraday script from Window Batch file - 07/22/20 15:08

Ah yes... that fixed it. It also worked with the use of assetAdd instead of assetList().

Thanks jcl!
© 2024 lite-C Forums