Is Automating Zorro With A Script Possible?

Posted By: Alphatecht

Is Automating Zorro With A Script Possible? - 07/21/17 14:40

Hi. I am new to Zorro and very impressed when I learned how capable is the tool.

I have a question about automation.

In Zorro, testing/training a strategy can be done by writing a strategy script and clicking the Test or Train button.

Assume that I need to test many models (say 100) where I already generate a strategy script for each one seperately.

Is it possible to write a script in which I can **call** Zorro to run a backtest (without clikcing the Test button in main GUI)?

If yes, then I can write a script with a for loop, and at each iteration of the loop I can call Zorro to backtest my strategy and I can save the results to a file.
Posted By: MatPed

Re: Is Automating Zorro With A Script Possible? - 07/21/17 15:33

Ciao, not sure to have fully understood your question. You can pack 100 strategy in one script and train/test all together
See workshop 6 (If I remember correctly) in the manual.

Ciao
Posted By: Dalla

Re: Is Automating Zorro With A Script Possible? - 07/21/17 16:21

You can use the command line to train/test your strategies, however it requires Zorro S I think
http://zorro-project.com/manual/en/command.htm
Posted By: Alphatecht

Re: Is Automating Zorro With A Script Possible? - 07/22/17 17:42

Calling Zorro from command line is the one that I was looking for

Thanks a lot
Posted By: BobbyT

Re: Is Automating Zorro With A Script Possible? - 07/23/17 07:16

You can only set the asset flag when calling scripts through the command line while using Zorro F.

If you wish to send variables and whatnot via command line you want Zorro S.

Check out 'command' in the manual

Cheers,
BobbyT
© 2024 lite-C Forums