Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
5 registered members (AbrahamR, wdlmaster, 7th_zorro, dr_panther, 1 invisible), 764 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 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,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
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