Dukascopy
 
 
Wiki JStore Search Login

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

    Try to find an answer in Wiki before asking a question.
    Submit programming questions in this forum only.
    Off topics are strictly forbidden.

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

market orders execution price
 Post subject: market orders execution price Post rating: 0   New post Posted: Tue 16 Feb, 2010, 09:27 

User rating: 0
Joined: Tue 25 May, 2010, 04:21
Posts: 21
I use JForex and submit market orders (price = 0.0, slippage = -1, volume = 0.01). I understand that in such a case the order might not be executed at the current Tick Ask/Bid values because the market might move between the time the onTick message is sent from the dukascopy servers till the time my order reaches the servers back.

However, I would expect that in such a case 50% of times my order would be executed in a price which is worst than the current tick value and 50% of the times in a price which is better than the current tick value. For some reason, this is not happening. The order is always executed at a price which is either the same or worst than the current Tick Ask/Bid values.

I have even written a short strategy file which I run on a demo account and proves this (attached)

Why is that? What am I doing wrong?


Attachments:
SlippageTestStrategy.java [5.21 KiB]
Downloaded 420 times
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control on their content. Anyone accessing this webpage and downloading or otherwise making use of any document, data or information found on this webpage shall do it on his/her own risks without any recourse against Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from the use and/or reliance on any document, data or information found on this webpage.
 
 Post subject: Re: market orders execution price Post rating: 0   New post Posted: Thu 11 Mar, 2010, 08:22 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Mostly a delay occurs between our servers and our counter parties. The counter parties execute at the price we have requested. In many cases while you get execution at the worse price is not because the price moved to the worse side, but because counter parties could not sell us that amount by requested price. In this case we change the price in the boundaries that you have defined with the slippage value (-1 slippage means a default value 5).


 

Jump to:  

cron
  © 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