Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by Grant. 05/23/26 20:53
Issues resuming trades on Demo account
by Martin_HH. 05/22/26 13:31
XTB
by pr0logic. 05/18/26 12:27
Purchase A8 full licence version
by NeoDumont. 05/13/26 20:17
Black Book, 4th edition
by TipmyPip. 05/11/26 08:40
No errors in the command line
by jcl. 05/08/26 10:59
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
3 registered members (Quad, Grant, AndrewAMD), 3,149 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
jayden, liu, Koti, curry, DeepxKalsi
19220 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: 318
Netherlands
G
Grant Online
Senior Member
Grant  Online
Senior Member
G

Joined: Aug 2017
Posts: 318
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: 318
Netherlands
G
Grant Online
Senior Member
Grant  Online
Senior Member
G

Joined: Aug 2017
Posts: 318
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,100
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,100
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