ericlanvin / mt4tradeduplicator

Automatically exported from code.google.com/p/mt4tradeduplicator
0 stars 0 forks source link

Partial closing not supported properly #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Open position on sender for 0.5 lot
2. Close partial position on sender by 0.2 lot
3. On Receiver it CLOSES 0.5 copied lot and then creates NEW 0.3 lot for
the remainder - It should have CLOSED with 0.2 lot and NOT transmitted NEW
0.2 lot from sender.

I guess you need to look at all positions that have CLOSED on the sender
and for those that close with a PARTIAL lot, send them to the receiver as a
MODIFIED order and then BLOCK sending the remainder of the order from the
SENDER. (Thats how my ECN sender does implements a partial close)

Am looking at logic now

Original issue reported on code.google.com by Ian.P.Jo...@btinternet.com on 22 Jan 2010 at 12:22

GoogleCodeExporter commented 9 years ago
any status update on this issue duncan?  greatly appreciated!

Original comment by tazm...@gmail.com on 19 Mar 2010 at 6:45

GoogleCodeExporter commented 9 years ago
Sorry - you'd think that closing the lots that closed would work, but it 
appears it doesn't.  I love MetaTrader.  I will look further.

Original comment by dwmcqu...@gmail.com on 10 Jun 2010 at 12:46

GoogleCodeExporter commented 9 years ago
When you implement the change, be careful - in general a new posiion is opened 
with a new ticket for the remainder - the old position is annotated by "to 
#nnnn" and the new position annotated by "from #nnn" - don't assume the NEW 
position exists as soon as the old position is closed - in my experience there 
is sometimes a small gap - you might have to keep checking for from/to until 
you marry them up

Original comment by ian.p.jo...@googlemail.com on 10 Jun 2010 at 7:18

GoogleCodeExporter commented 9 years ago
Very good thought.  

Original comment by dwmcqu...@gmail.com on 13 Jun 2010 at 9:11

GoogleCodeExporter commented 9 years ago
Has this issue been resolved?

Original comment by fikimeob...@gmail.com on 17 Sep 2010 at 3:50

GoogleCodeExporter commented 9 years ago
It is fixed in the subversion repository.  A compiled binary is available at 
http://www.tradecopier.org

Original comment by dwmcqu...@gmail.com on 6 Oct 2011 at 2:11