Gamestudio Links
Zorro Links
Newest Posts
SGT_FW
by Aku_Aku. 11/30/26 08:19
Removing outliers from files
by JeyKey II. 11/29/26 10:01
Experiences with cTrader
by JeyKey II. 11/27/26 09:04
make a complaint
by EW_bytes. 11/26/26 23:00
FXCM => AVA Trade Plugin???
by Martin_HH. 11/25/26 21:59
No connection to MT4
by Martin_HH. 11/23/26 06:38
MinMax function on History t6 file
by LucasJoshua. 11/21/26 14:28
What are you working on?
by rayp. 11/20/26 18:10
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (Quad), 6,025 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
EvanTJ, rht, MaliceTheMaker, Haitao_Ren, JimSimons
19250 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,149
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

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