Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/20/24 20:05
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (Grant, dr_panther, AndrewAMD), 1,379 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Close all when profit is reached #473961
09/03/18 06:32
09/03/18 06:32
Joined: Feb 2018
Posts: 236
Italy
tradingest Offline OP
Member
tradingest  Offline OP
Member

Joined: Feb 2018
Posts: 236
Italy
Hi all,

If I want close all trades opened with sum of profit reach is 100 €. Is it possible?

How can I do it?

Thanks

Re: Close all when profit is reached [Re: tradingest] #473964
09/03/18 17:22
09/03/18 17:22
Joined: Feb 2018
Posts: 236
Italy
tradingest Offline OP
Member
tradingest  Offline OP
Member

Joined: Feb 2018
Posts: 236
Italy
Someone can you help me?

Re: Close all when profit is reached [Re: tradingest] #473965
09/03/18 19:04
09/03/18 19:04
Joined: Feb 2017
Posts: 1,731
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,731
Chicago

Re: Close all when profit is reached [Re: AndrewAMD] #473966
09/03/18 20:24
09/03/18 20:24
Joined: Feb 2018
Posts: 236
Italy
tradingest Offline OP
Member
tradingest  Offline OP
Member

Joined: Feb 2018
Posts: 236
Italy
Thanks,

But you can write me the correct function word whether possible?

Re: Close all when profit is reached [Re: tradingest] #473967
09/03/18 20:40
09/03/18 20:40
Joined: Feb 2017
Posts: 1,731
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,731
Chicago
Too busy, sorry. whistle

Re: Close all when profit is reached [Re: AndrewAMD] #473996
09/06/18 19:24
09/06/18 19:24
Joined: Feb 2018
Posts: 236
Italy
tradingest Offline OP
Member
tradingest  Offline OP
Member

Joined: Feb 2018
Posts: 236
Italy
Hi Andrew,

my code is:

Code:
if(ProfitOpen = 100)
	for(open_trades)
	{
	  What is the function to close all trade, long and short opened?	
	}



can you help me?

Many thanks in advance

Re: Close all when profit is reached [Re: tradingest] #473998
09/06/18 19:31
09/06/18 19:31
Joined: Feb 2017
Posts: 1,731
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,731
Chicago
exitTrade(ThisTrade);


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