Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (howardR, 7th_zorro), 893 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 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