Gamestudio Links
Zorro Links
Newest Posts
Zorro version 3.0 prerelease!
by jcl. 02/12/26 14:05
MarginCost discrepancy?
by jcl. 02/12/26 14:02
Hedge on FXCM, 4 or 5?
by qin. 02/11/26 14:12
CMC MT4 CFD vs FX Active - what's better?
by mayarik. 02/11/26 11:00
print a "still alive" log
by qin. 02/10/26 12:16
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (TipmyPip), 7,787 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
ApprenticeInMuc, PatrickH90, USER0328, Sfrdragon, mayarik
19198 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Rstart function can't call subfolder r file #487647
06/27/23 05:25
06/27/23 05:25
Joined: Oct 2018
Posts: 98
7
7th_zorro Offline OP
Junior Member
7th_zorro  Offline OP
Junior Member
7

Joined: Oct 2018
Posts: 98
When using Rstart function, how to indicate r file located in subfolder?
When c and r file located in zorro strategy folder, it is ok.
But Rstart function report error when c and r file located in zorro strategy/mycode folder.

Re: Rstart function can't call subfolder r file [Re: 7th_zorro] #487658
07/03/23 20:15
07/03/23 20:15
Joined: Aug 2017
Posts: 311
Netherlands
G
Grant Offline
Senior Member
Grant  Offline
Senior Member
G

Joined: Aug 2017
Posts: 311
Netherlands
You need to adjust the 'StrategyFolder' path in zorro.ini

https://zorro-project.com/manual/en/ini.htm

Re: Rstart function can't call subfolder r file [Re: Grant] #487659
07/04/23 03:00
07/04/23 03:00
Joined: Oct 2018
Posts: 98
7
7th_zorro Offline OP
Junior Member
7th_zorro  Offline OP
Junior Member
7

Joined: Oct 2018
Posts: 98
I tried to do what you said, but it didn't work properly.
Changing the folder in the UI Dropdown menu and changing the ini file value showed the same results.
I think there was an internal problem calling the r function.

Re: Rstart function can't call subfolder r file [Re: 7th_zorro] #487660
07/04/23 06:54
07/04/23 06:54
Joined: Aug 2017
Posts: 311
Netherlands
G
Grant Offline
Senior Member
Grant  Offline
Senior Member
G

Joined: Aug 2017
Posts: 311
Netherlands
Not sure what exactly went wrong. I would suggest to use the default settings.

Re: Rstart function can't call subfolder r file [Re: 7th_zorro] #487661
07/04/23 13:03
07/04/23 13:03
Joined: Oct 2018
Posts: 98
7
7th_zorro Offline OP
Junior Member
7th_zorro  Offline OP
Junior Member
7

Joined: Oct 2018
Posts: 98
I found a problem.

Rstart("test.r", 2); // error
Rstart("MyCode\\test.r", 2); // error
Rstart("MyCode/test.r", 2); // OK

Re: Rstart function can't call subfolder r file [Re: 7th_zorro] #487668
07/13/23 07:39
07/13/23 07:39
Joined: Jul 2000
Posts: 28,072
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,072
Frankfurt
Originally Posted by The mighty manual
When passing file names to R, use forward slashes for directories, f.i. "C:/Project/Trading/R/Data.csv". You can use the slash helper function in r.h for converting backslashes to forward slashes (f.i. slash(ZorroFolder)).


Moderated by  Petra 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1