Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 04/03/26 16:57
TMFs on options in live trading
by Spirit. 03/26/26 19:52
TDAmeritrade plugin with new Schwab accountt?
by AndrewAMD. 03/24/26 17:11
Black Book, 4th edition
by jcl. 03/17/26 09:28
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
3 registered members (TipmyPip, Grant, 1 invisible), 3,268 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
mredit, vestriaa, Lukudo, mldenoiser, the1
19204 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,090
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,090
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