Zorro Commandline

Posted By: TechMuc

Zorro Commandline - 10/23/12 17:57

Does Zorro.exe has command line options? E.g. to test script files directly from commandline?

Thanks,
Timo
Posted By: jcl

Re: Zorro Commandline - 10/24/12 08:29

Yes, but currently only 'unofficially' for training a script. For this just give the script name in the command line. If you need further options, we can add an official command line option set.
Posted By: TechMuc

Re: Zorro Commandline - 10/24/12 08:37

I'm currently adapting my editor to zorro, and i just want to know the possibilities I have of "controlling" the startup of the Zorro Application.
So a rare list of all command line options would be cool - at least if there are some interesting for a coding editor (e.g. check syntax, or similar).

PS: Ah i think i've missunderstood you: You're saying that the only "command line" available is appending a script, aren't you? laugh
Is there a possibility to check the syntax of a zorro script, by command line?
Posted By: jcl

Re: Zorro Commandline - 10/24/12 08:40

Ok, we'll implement a command line similar to A8 in one of the next Zorro updates. The syntax check is the same as in A8, but it does not report back to the editor. The errors only appear in the Zorro window.
Posted By: TechMuc

Re: Zorro Commandline - 10/24/12 08:45

Okay, so you'll just write it to a file, similar to ackerr.txt? that would be cool, thanks a lot.
Posted By: yamez

Re: Zorro Commandline - 01/21/13 23:59

A command line option for starting Zorro in trade mode with selection of account details, strategy, margin and risk would be nice too. Useful for automating start up of Zorro and running as a service, in the event of power outages, VPS reboots, etc.
Posted By: jcl

Re: Zorro Commandline - 01/22/13 11:47

Yes, the commandline control is planned for version 1.06.
Posted By: yamez

Re: Zorro Commandline - 03/31/13 05:16

I've tried the command line option in Zorro 1.06 to start in trade mode, using the examples given. Zorro launches however does not go into trade mode, just sits idle. I'm using Win7 x32 Home Premium SP1 from a command prompt in the Zorro program files folder. Command used "zorro.exe -trade Z2fx". Also, can the risk and margin be set by the command line?
Posted By: jcl

Re: Zorro Commandline - 03/31/13 09:44

I confirm that a command prompt does not work. Test the command line with a shortcut. In the shortcut target, give the full command line, f.i. "C:\program files\Zorro\Zorro.exe" -trade Z2fx. This will be fixed in the next version - it will then also work from a command prompt.

For externally setting strategy parameters such as margin, risk etc. use the method under "Tips & Tricks" for reading parameters from external files. The program that starts Zorro can then also write the parameter values into that file.
© 2024 lite-C Forums