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
2 registered members (Quad, aliswee), 835 guests, and 5 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
Page 3 of 4 1 2 3 4
Re: New Zorro version 2.25 [Re: jcl] #479374
03/25/20 12:27
03/25/20 12:27
Joined: Oct 2018
Posts: 82
7
7th_zorro Offline
Junior Member
7th_zorro  Offline
Junior Member
7

Joined: Oct 2018
Posts: 82
There is some missing code int the ZorroFolder/include/r.h file.
Below line of codes need to be added.


int Rstart(const char* source,int debug)
{
if(hR) return hR; // R session already running
#ifdef WIN32
g->RLib = LoadLibrary("mt4R.dll");
PROC(RInit_);
PROC(RIsRunning);
PROC(RIsBusy);
PROC(RExecute);
PROC(RExecuteAsync);
PROC(RAssignString);
PROC(RAssignInteger);
PROC(RAssignDouble);
PROC(RAssignVector);
PROC(RAssignMatrix);
PROC(RGetInteger);
PROC(RGetDouble);
PROC(RGetVector);
PROC(RPrint);
PROC(RLastOutput);
PROC(RDeinit); <========================================= THIS!!
#endif
hR = RInit_(strf("%s --no-save",g->sRTermPath), debug);
if(!hR) {
print(TO_WINDOW,"\nCan't open %s\n ",g->sRTermPath);
return 0;
}
if(!RIsRunning(hR)) {
print(TO_WINDOW,"\nCan't run R!\n ");
return 0;
}
Rx("rm(list = ls());",0); // clear the workspace
if(source) if(*source)
Rx(strf("source('%sStrategy/%s')",slash(ZorroFolder),source),2);
return hR;
}

Re: New Zorro version 2.25 [Re: jcl] #479380
03/25/20 16:46
03/25/20 16:46
Joined: Jul 2000
Posts: 27,977
Frankfurt
jcl Offline OP

Chief Engineer
jcl  Offline OP

Chief Engineer

Joined: Jul 2000
Posts: 27,977
Frankfurt
Thanks, we'll add it in a future version. But RDeinit is normally not used in the script, because R is anyway deinitialized after the script run.

Re: New Zorro version 2.25 [Re: jcl] #479393
03/26/20 15:17
03/26/20 15:17
Joined: Oct 2018
Posts: 82
7
7th_zorro Offline
Junior Member
7th_zorro  Offline
Junior Member
7

Joined: Oct 2018
Posts: 82
Thank you jcl. I use visual c++ 2017. When I try to test the sample "RTest.c", There is some exception error when closing. Please check that (running code in visual c++).

Re: New Zorro version 2.25 [Re: jcl] #479394
03/26/20 16:45
03/26/20 16:45
Joined: Jul 2000
Posts: 27,977
Frankfurt
jcl Offline OP

Chief Engineer
jcl  Offline OP

Chief Engineer

Joined: Jul 2000
Posts: 27,977
Frankfurt
Check if you converted it correctly. Compare your code with the VC++ version of RTest in the MyStrategy.cpp example.

Re: New Zorro version 2.25 [Re: jcl] #479396
03/26/20 18:07
03/26/20 18:07
Joined: Oct 2018
Posts: 82
7
7th_zorro Offline
Junior Member
7th_zorro  Offline
Junior Member
7

Joined: Oct 2018
Posts: 82
I tried but the exception position is somewhere inside of zorro systems. So I can't proceed further.

Re: New Zorro version 2.25 [Re: jcl] #479399
03/26/20 21:43
03/26/20 21:43
Joined: Jul 2000
Posts: 27,977
Frankfurt
jcl Offline OP

Chief Engineer
jcl  Offline OP

Chief Engineer

Joined: Jul 2000
Posts: 27,977
Frankfurt
It is unlikely that you get an exception and all other people with the same code get none. Compare your code with the included cpp and check also your VC++ setup. Follow the instructions in the manual. Maybe the struct alignment is wrong or something like that.

Re: New Zorro version 2.25 [Re: jcl] #479482
04/02/20 11:13
04/02/20 11:13
Joined: May 2018
Posts: 21
Y
YG8 Offline
Newbie
YG8  Offline
Newbie
Y

Joined: May 2018
Posts: 21
When will this version become the official one?

Re: New Zorro version 2.25 [Re: jcl] #479489
04/02/20 12:42
04/02/20 12:42
Joined: Jul 2000
Posts: 27,977
Frankfurt
jcl Offline OP

Chief Engineer
jcl  Offline OP

Chief Engineer

Joined: Jul 2000
Posts: 27,977
Frankfurt

Re: New Zorro version 2.25 [Re: jcl] #479865
05/01/20 20:50
05/01/20 20:50
Joined: May 2015
Posts: 390
Czech Republic
G
Grat Offline
Senior Member
Grat  Offline
Senior Member
G

Joined: May 2015
Posts: 390
Czech Republic
Hi,

I have a ZORRO S 2.25.7


One instance running normal - in the arbitrage. MT4 and Bitfinex

But If I trying run other instance, is a very slow. I trying in the second IndicatorTest.c

May be is problem with DLL?

Thanks Milan

Attached Files Snímek obrazovky 2020-05-01 v 22.45.45.png
Re: New Zorro version 2.25 [Re: jcl] #479868
05/02/20 07:19
05/02/20 07:19
Joined: Mar 2019
Posts: 357
D
danatrader Offline
Senior Member
danatrader  Offline
Senior Member
D

Joined: Mar 2019
Posts: 357
To be honest, with 2.25 I encounter a lot of situations that haven't been there before.

Instance just closing, partly reproducable, e.g. run simulation 1, open result chart, run simulation 2 and move zoom in and out the result while simulation 2 is drawing / updating the previous result.

Memory fragmented or similar message soemtimes shows up, it can be due to my s**** computer, so I can't really tell.

Page 3 of 4 1 2 3 4

Moderated by  Petra 

Gamestudio download | chip programmers | 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