Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (VoroneTZ, monk12, Quad), 829 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Fixed Zorro Strategy folder #473903
08/26/18 19:07
08/26/18 19:07
Joined: Nov 2015
Posts: 8
R
ricky_k Offline OP
Newbie
ricky_k  Offline OP
Newbie
R

Joined: Nov 2015
Posts: 8
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

Re: Fixed Zorro Strategy folder [Re: ricky_k] #473904
08/26/18 21:17
08/26/18 21:17
Joined: Feb 2015
Posts: 652
Milano, Italy
M
MatPed Offline
User
MatPed  Offline
User
M

Joined: Feb 2015
Posts: 652
Milano, Italy
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

Re: Fixed Zorro Strategy folder [Re: MatPed] #473909
08/27/18 07:46
08/27/18 07:46
Joined: Nov 2015
Posts: 8
R
ricky_k Offline OP
Newbie
ricky_k  Offline OP
Newbie
R

Joined: Nov 2015
Posts: 8
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?

Re: Fixed Zorro Strategy folder [Re: ricky_k] #473910
08/27/18 08:50
08/27/18 08:50
Joined: Feb 2015
Posts: 652
Milano, Italy
M
MatPed Offline
User
MatPed  Offline
User
M

Joined: Feb 2015
Posts: 652
Milano, Italy
yes, exactly

Re: Fixed Zorro Strategy folder [Re: MatPed] #473914
08/27/18 14:23
08/27/18 14:23
Joined: Feb 2017
Posts: 1,718
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,718
Chicago
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


Re: Fixed Zorro Strategy folder [Re: AndrewAMD] #473922
08/28/18 08:25
08/28/18 08:25
Joined: Nov 2015
Posts: 8
R
ricky_k Offline OP
Newbie
ricky_k  Offline OP
Newbie
R

Joined: Nov 2015
Posts: 8
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!

Re: Fixed Zorro Strategy folder [Re: ricky_k] #473923
08/28/18 10:34
08/28/18 10:34
Joined: Feb 2015
Posts: 652
Milano, Italy
M
MatPed Offline
User
MatPed  Offline
User
M

Joined: Feb 2015
Posts: 652
Milano, Italy
Thank You Andrew!


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1