Login info through strategy script?

Posted By: tomaslolo

Login info through strategy script? - 06/01/20 13:24

Good morning / Guten Tag! I have several Zorro instances on a VPS trading with Oanda (real).

I configured Zorro to survive for server reboots, via .bat file as specified in the manual Zorro in the cloud https://www.zorro-trader.com/manual/en/vps.htm

My problem is that when rebooting all strategies run on the same account instead of keeping their "original" account. I mean, when you trade with Oanda you can add different subaccounts so yo can trade on them any strategy, on any pair, leverage, currency, etc... ant that account number is the Login "name" in Zorro control panel.

Can I set for each strategy an account number so when Zorro launches they trade on it?

Any other way?


Thank you!

Vielen Dank!

Gracias!
Posted By: AndrewAMD

Re: Login info through strategy script? - 06/01/20 13:29

Since you're batching, you can set the account at the command line:
Quote
-c accountname
Selects the account with the given name from a user defined account list.
https://zorro-project.com/manual/en/command.htm
© 2024 lite-C Forums