Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
3 registered members (AndrewAMD, juanex, Grant), 1,018 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Trade management script #446056
10/03/14 10:03
10/03/14 10:03
Joined: Apr 2014
Posts: 10
J
Jauhar Offline OP
Newbie
Jauhar  Offline OP
Newbie
J

Joined: Apr 2014
Posts: 10
I am thinking of writing a trade management script that will be running in parallel to other systems (say Z12) on the same account. The script will close all open trades if the total floating profit of the account exceeds certain limit (say 10% of balance). Also close all trades of a particular Asset, if the floating profit of that Asset exceeds certain limit (say 5%), or close individual trade if that trades' profit exceeds certain limit (say 2.5%). But I am not sure if the script can have access to trades opened by other systems (written in Zorro). Any idea?

Re: Trade management script [Re: Jauhar] #446335
10/11/14 08:48
10/11/14 08:48
Joined: Apr 2014
Posts: 10
J
Jauhar Offline OP
Newbie
Jauhar  Offline OP
Newbie
J

Joined: Apr 2014
Posts: 10
For the above, I tried to use 'for (open_trades){...}' to get all open trades opened in the account, but it does not access trades opened by other Zorro instances in the same account. Is there any way to access all open Zorro trades in an account? Thanks.

Re: Trade management script [Re: Jauhar] #446373
10/13/14 00:03
10/13/14 00:03
Joined: Sep 2013
Posts: 504
California
G
GPEngine Offline
User
GPEngine  Offline
User
G

Joined: Sep 2013
Posts: 504
California
you could write a script that merges .trd files

Re: Trade management script [Re: GPEngine] #446374
10/13/14 06:47
10/13/14 06:47
Joined: Apr 2014
Posts: 10
J
Jauhar Offline OP
Newbie
Jauhar  Offline OP
Newbie
J

Joined: Apr 2014
Posts: 10
Thanks GPEngine for the reply. I will give it a try.


Moderated by  Petra 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1