Gamestudio Links
Zorro Links
Newest Posts
MT5 bridge not working on MT5 v. 5 build 4160
by EternallyCurious. 04/25/24 20:49
Data from CSV not parsed correctly
by EternallyCurious. 04/25/24 10:20
Trading Journey
by howardR. 04/24/24 20:04
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (EternallyCurious, AndrewAMD, TipmyPip, Quad), 889 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 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,982
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

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