Dukascopy Support Board http://www.dukascopy.com/swiss/english/forex/jforex/forum/ |
|
Strange openPrice value for order http://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=16&t=57742 |
Page 1 of 1 |
Author: | pminc74 [ Mon 08 Nov, 2021, 18:40 ] |
Post subject: | Strange openPrice value for order |
Hi, I'm tracking messages on orders and I get weird output. I've got LONG position on EUR/USD at price 1.15903 17:16:50 ## order: 210295905 EUR/USD LONG FILLED (1000.0) OPEN: 1.15903 SL: 1.15832 TP: 1.15975 Next, on the platform, I'm changing the TP for the position to 1.15964. I get: 17:17:10 ### ID: 210295905 msgType: ORDER_CHANGED_OK msgReasons: [ORDER_CHANGED_TP, ORDER_CHANGED_PRICE] state: FILLED 17:17:10 ## order: 210295905 EUR/USD LONG FILLED (1000.0) OPEN: 1.1592 SL: 1.15832 TP: 1.15964 (why the open price changed???) 17:17:10 ### ID: 210295905 msgType: ORDER_CHANGED_OK msgReasons: [ORDER_CHANGED_PRICE] state: FILLED 17:17:10 ## order: 210295905 EUR/USD LONG FILLED (1000.0) OPEN: 1.15903 SL: 1.15832 TP: 1.15964 (open price returned to valid value) Again, I'm changing TP to 1.15982. I get: 17:19:53 ### ID: 210295905 msgType: ORDER_CHANGED_OK msgReasons: [ORDER_CHANGED_TP, ORDER_CHANGED_PRICE] state: FILLED 17:19:53 ## order: 210295905 EUR/USD LONG FILLED (1000.0) OPEN: 1.15906 SL: 1.15832 TP: 1.15982 (the open price changed) 17:19:53 ### ID: 210295905 msgType: ORDER_CHANGED_OK msgReasons: [ORDER_CHANGED_PRICE] state: FILLED 17:19:53 ## order: 210295905 EUR/USD LONG FILLED (1000.0) OPEN: 1.15903 SL: 1.15832 TP: 1.15982 (open price returned to valid value). Is that correct behaviour? How to filter messages properly to skip this invalid ones? |
Author: | pminc74 [ Tue 09 Nov, 2021, 11:50 ] |
Post subject: | Re: Strange openPrice value for order |
I suppose this is side effect which has something to do with commission, nevertheless it is weird and it makes some problems in my code (calculating current exposure). |
Author: | vadim_berezhnoj [ Wed 01 Dec, 2021, 16:32 ] |
Post subject: | Re: Strange openPrice value for order |
Greetings. For proper issue investigation please send the details, orders date and account ID to [email protected] Regards. |
Page 1 of 1 |