Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 677 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
R or Python bridge, can the spawn process kept alive? #476580
03/11/19 12:07
03/11/19 12:07
Joined: Mar 2019
Posts: 10
CA
N
nandv Offline OP
Newbie
nandv  Offline OP
Newbie
N

Joined: Mar 2019
Posts: 10
CA
My current system is matlab and python code, mainly pattern based analysis where a graph structure is constructed and updated by analyzing each incoming bar.
The quickest way I imagine to move to Zorro is to make a Lite-C driver to call my code, return trading signal(s) and use the Zorro for order managements, etc.
Since my algo needs quite a bit of historical data (in the range of 10K bars), it doesn't make sense to recompute the whole thing for each incoming bar.
So my question is: is it possible for Zorro to start an R(matlab to R is easy..)(or Python) session, and keep it alive (so that states are maintained), and Zorro will call R/Python to incrementally compute on the next incoming bar?

Thanks.

Re: R or Python bridge, can the spawn process kept alive? [Re: nandv] #476582
03/11/19 13:01
03/11/19 13:01
Joined: Jul 2000
Posts: 27,978
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,978
Frankfurt
Yes, the R or Python session stays alive until the end of the Zorro session.

Re: R or Python bridge, can the spawn process kept alive? [Re: jcl] #476585
03/11/19 13:35
03/11/19 13:35
Joined: Mar 2019
Posts: 10
CA
N
nandv Offline OP
Newbie
nandv  Offline OP
Newbie
N

Joined: Mar 2019
Posts: 10
CA
Originally Posted By: jcl
Yes, the R or Python session stays alive until the end of the Zorro session.


Thanks! laugh


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1