Gamestudio Links
Zorro Links
Newest Posts
Z9 getting Error 058
by k_ivan. 04/20/26 15:57
Stooq now requires an API key
by jcl. 04/13/26 09:42
Strange "Alien" Skull created with >Knubber<
by NeoDumont. 04/10/26 18:58
400 free seamless texture pack downl. here !
by NeoDumont. 04/08/26 19:55
ZorroGPT
by TipmyPip. 04/08/26 17:08
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 3,544 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
juergenwue, VladMak, Geir, ondrej, mredit
19208 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