Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (AndrewAMD), 14,661 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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 | 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