Dukascopy
 
 
Wiki JStore Search Login

Attention! Read the forum rules carefully before posting a topic.

    Submit JForex API bug reports in this forum only.
    Submit Converter issues in Converter Issues.
    Off topics are strictly forbidden.

Any topics which do not satisfy these rules will be deleted.

Bug with partially filled order
 Post subject: Bug with partially filled order Post rating: 0   New post Posted: Wed 05 Nov, 2014, 09:56 

User rating: 0
Joined: Wed 05 Nov, 2014, 09:12
Posts: 3
Dear Support Desk,

Yesterday I've noticed critical bug when order is partially filled for LIVE account. Take Profit and Stop Loss positions size for partially opened order are changed to wrong value, amount is increased! Probably this problem is with new API 2.10.1 or server side.

Here is log:

API 2.10.1
Quote:
Order PLACE BID 25000 EUR/USD @ 1.25441 EXPIRES:GTC is sent at 2014-11-04 22:00:02.248 GMT by the strategy "Nibble2011Ducas": from the local computer
Order ACCEPTED: #160074341 STOP LOSS SELL 0.025 mil. EUR/USD @ MKT IF BID <= 1.25254 - Position #40450009
Order ACCEPTED: #160074342 TAKE PROFIT SELL 0.025 mil. EUR/USD @ LIMIT 1.25456 IF BID => 1.25456 - Position #40450009
BID ACCEPTED: #160074340 PLACE BID 0.025 mil. EUR/USD @ 1.25441 EXPIRES: GTC - Position #40450009

Order FILLED at 1.25438 (#160074488 Parent Order #160074340 PLACE BID 0.025 mil. EUR/USD @ 1.25438 EXPIRES: GTC) - Position #40450009
BID ACCEPTED: #160074504 PLACE BID 0.025 mil. EUR/USD @ 1.25428 EXPIRES: GTC - Position #40450009

Position 40450009 STOP LOSS #160074341 amount changed from 0.025 mil. to 0.035 mil. EUR
Position 40450009 TAKE PROFIT #160074342 amount changed from 0.025 mil. to 0.035 mil. EUR
Order FILLED at 1.25428 (#160074537 Parent Order #160074504 PLACE BID 0.01 mil. EUR/USD @ 1.25428 EXPIRES: GTC) - Position #40450009

Position 40450009 STOP LOSS #160074341 amount changed from 0.035 mil. to 0.036 mil. EUR
Position 40450009 TAKE PROFIT #160074342 amount changed from 0.035 mil. to 0.036 mil. EUR
Order FILLED at 1.25428 (#160074584 Parent Order #160074504 PLACE BID 0.001 mil. EUR/USD @ 1.25428 EXPIRES: GTC) - Position #40450009

Above we have: for every partial fill Dukas is increasing amount of TP and SL positions. The order have size 0,025 but its TP and SL have 0,036! TP and SL should have amount of filled size (0,011 = 0,01 + 0,011). Also very strange is fill #160074488 - it was never marked as fully filled. Maybe it's a bug with filling and modification of order at the same time.

Here is log from API 2.9.10 (from 21.10.2014)
Quote:
Order PLACE BID 258000 EUR/USD @ 1.27151 EXPIRES:GTC is sent at 2014-10-21 20:00:00.635 GMT by the strategy "Nibble2011Ducas": from the local computer
Order ACCEPTED: #157137237 STOP LOSS SELL 0.258 mil. EUR/USD @ MKT IF BID <= 1.26976 - Position #39451237
Order ACCEPTED: #157137238 TAKE PROFIT SELL 0.258 mil. EUR/USD @ LIMIT 1.272 IF BID => 1.272 - Position #39451237
BID ACCEPTED: #157137236 PLACE BID 0.258 mil. EUR/USD @ 1.27151 EXPIRES: GTC - Position #39451237

BID ACCEPTED: #157137520 PLACE BID 0.258 mil. EUR/USD @ 1.27164 EXPIRES: GTC - Position #39451237

Position 39451237 STOP LOSS #157137237 amount changed from 0.258 mil. to 0.054 mil. EUR
Position 39451237 TAKE PROFIT #157137238 amount changed from 0.258 mil. to 0.054 mil. EUR
Order FILLED at 1.27164 (#157137571 Parent Order #157137520 PLACE BID 0.054 mil. EUR/USD @ 1.27164 EXPIRES: GTC) - Position #39451237


Thank you.


 
 Post subject: Re: Bug with partially filled order Post rating: 0   New post Posted: Fri 07 Nov, 2014, 10:55 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Hello!

Please, provide the strategy that caused the problem. If you don't want to post it here, making it public, you can send the strategy to [email protected]


 

Jump to:  

  © 1998-2025 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com