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
3 registered members (NewbieZorro, TipmyPip, 1 invisible), 19,045 guests, and 8 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
How to close some defined orders #463778
12/26/16 19:27
12/26/16 19:27
Joined: Dec 2016
Posts: 13
Italy
Andrea66 Offline OP
Newbie
Andrea66  Offline OP
Newbie

Joined: Dec 2016
Posts: 13
Italy
Dear all,

I would close only the first 3 orders of the following sequence:

Name Type Asset ID Lots Open Close Entry Exit
BBS Long EUR/USD 31001 1 2014-03-18 08:00 2014-12-19 19:00 1.3916 1.2233
BBS Long USD/JPY 31002 1 2014-03-18 08:00 2014-12-19 19:00 101.63 119.51
BBS Short EUR/JPY 31003 1 2014-03-18 08:00 2014-12-19 19:00 141.43 146.20
SSB Short EUR/USD 31004 1 2014-03-18 08:00 2014-12-19 19:00 1.3916 1.2234
SSB Short USD/JPY 31005 1 2014-03-18 08:00 2014-12-19 19:00 101.63 119.51
SSB Long EUR/JPY 31006 1 2014-03-18 08:00 2014-12-19 19:00 141.43 146.19


I would also close a specific order like the 31002.

Could you please help me.

Re: How to close some defined orders [Re: Andrea66] #463874
01/02/17 13:45
01/02/17 13:45
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
Go through all trades in a for(open_trades) loop, and compare the TradeID variable.


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1