Gamestudio Links
Zorro Links
Newest Posts
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
2 registered members (AndrewAMD, Ayumi), 1,405 guests, and 4 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
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: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
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