Gamestudio Links
Zorro Links
Newest Posts
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
folder management functions
by 7th_zorro. 04/15/24 10:10
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
LPDIRECT3DCUBETEXTUR
E9

by Ayumi. 04/12/24 11:00
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 04/11/24 14:56
SGT_FW
by Aku_Aku. 04/10/24 16:09
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (7th_zorro, Quad), 373 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
11honza11, ccorrea, sakolin, rajesh7827, juergen_wue
19045 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Event based operation possible ? #480936
07/26/20 07:15
07/26/20 07:15
Joined: Jul 2020
Posts: 4
J
jsch Offline OP
Guest
jsch  Offline OP
Guest
J

Joined: Jul 2020
Posts: 4
Is is possible to run Zorro in an event based mode?

So when an event is triggered then Zorro does various programmed checks and the script defines whether to enter a trade or not.

Once the trade is active then the normal time based monitoring and decision process for the open position should be in progress.

Re: Event based operation possible ? [Re: jsch] #480937
07/26/20 07:46
07/26/20 07:46
Joined: Mar 2019
Posts: 357
D
danatrader Offline
Senior Member
danatrader  Offline
Senior Member
D

Joined: Mar 2019
Posts: 357
Basically, your trading rules are events triggering the trade.
So it already does what you want.

To answer the question try to be more specific, what kind of event, e.g. Trump tweets?

Re: Event based operation possible ? [Re: jsch] #480939
07/26/20 09:11
07/26/20 09:11
Joined: Aug 2016
Posts: 61
D
dr_panther Offline
Junior Member
dr_panther  Offline
Junior Member
D

Joined: Aug 2016
Posts: 61
You can tell Zorro about the event using a file, which can be locally or somewhere in the internet. There are HTTP, FTP functions and the exec function. Additionally keep in mind that there is a Python and R interface, you could all kind of things.
You can also communicate with Zorro using the Windows registry.

Re: Event based operation possible ? [Re: jsch] #480948
07/26/20 16:26
07/26/20 16:26
Joined: Jul 2017
Posts: 783
Z
Zheka Offline
User
Zheka  Offline
User
Z

Joined: Jul 2017
Posts: 783

Re: Event based operation possible ? [Re: jsch] #480950
07/26/20 21:01
07/26/20 21:01
Joined: Jul 2020
Posts: 4
J
jsch Offline OP
Guest
jsch  Offline OP
Guest
J

Joined: Jul 2020
Posts: 4
The events would come from a message queue, the sources could be various (e.g. Twitter or Scanners). In the meantime I checked the manuals and I think a have the interaction part solved by writing a node.js application that should even support full history simulation and training.

The one additional thing I am not sure about is the main run scope of Zorro. The events would always contain the symbol to check and trade upon. However - everything I have yet understood looks to me as if Zorro always runs everything in a symbol context.

I will only know the symbol / underlying once the event is received. I will know all asset parameters, but from the manual it looks like assetAdd can only be called once earlier. Any ideas how I would solve this?


Last edited by jsch; 07/26/20 21:02.
Re: Event based operation possible ? [Re: jsch] #480961
07/27/20 15:40
07/27/20 15:40
Joined: Feb 2017
Posts: 1,724
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,724
Chicago
You can send messages to the Zorro window handle from another thread or process to initiate a callback from the Zorro thread.
https://manual.zorro-project.com/hwnd.htm
https://zorro-project.com/manual/en/tick.htm (see callback())


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1