Fixed Zorro Strategy folder

Posted By: ricky_k

Fixed Zorro Strategy folder - 08/26/18 19:07

As I understand - Zorro users can currently specify a fixed History folder by using an amended Zorro.ini file (ZorroFix.ini) which preserves settings when new Zorro versions (or multiple instances of the same version) are installed on the same machine concurrently.
Instructions here: http://zorro-trader.com/manual/en/ini.htm

I'm wondering if the same can be done or is able to be done for the Strategy folder?

I have a fair amount of files built up in one Strategy folder and (for me at least) it's getting tedious to copy all files to relevant locations on installing a new update of Zorro (or manually navigating to different folders - especially when I'm trying to run Zorro via command line more often now)

If a feature like this is still some ways off in terms of implementation - does anyone have any other alternatives (work arounds) for having all Zorro instances installed on a machine point to the same Strategy folder?

Thanks
Posted By: MatPed

Re: Fixed Zorro Strategy folder - 08/26/18 21:17

Hi,
I have requested this feature in the past. Unfortunately has not been implemented (yest, I hope).
At the moment I use a dummy script in the strategy folder importing most of the other function from other files located elsewhere. Is not elegant, but it works.

HtH
Posted By: ricky_k

Re: Fixed Zorro Strategy folder - 08/27/18 07:46

Thanks MatPed,

I've begun to experiment with this and it's a workable solution for now. I'm doing something like this in a separate file:

Code:
#include "alternate/path/to/strategy/file.c"
#include "alternate/path/to/strategy/file2.c"
#include "alternate/path/to/strategy/file3.c"
#include "alternate/path/to/strategy/file4.c"



then running from the appropriate Zorro instance Strategy folder as needed (after commenting out some lines as required)

Is this similar to something you're doing?
Posted By: MatPed

Re: Fixed Zorro Strategy folder - 08/27/18 08:50

yes, exactly
Posted By: AndrewAMD

Re: Fixed Zorro Strategy folder - 08/27/18 14:23

I just create a symbolic link to my fixed folders. I simply put them in the place of the actual folders (Strategy, History), and it works without any fuss.

Using mklink:
Code:
cd c:\Zorro
move .\Strategy .\Strategy_old
move .\History .\History_old
mklink /d .\Strategy c:\ZorroFoldersFixed\Strategy
mklink /d .\History c:\ZorroFoldersFixed\History

Posted By: ricky_k

Re: Fixed Zorro Strategy folder - 08/28/18 08:25

Andrew,

Thanks for the suggestion - that works really well too.

Can't believe I've been using pointers but never came across links (symbolic or otherwise) - Looks like I'm going to be using them way more now!
Posted By: MatPed

Re: Fixed Zorro Strategy folder - 08/28/18 10:34

Thank You Andrew!
© 2024 lite-C Forums