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.

Slippage
 Post subject: Slippage Post rating: 0   New post Posted: Fri 07 Oct, 2016, 16:46 
User avatar

User rating: 0
Joined: Tue 06 Sep, 2016, 11:04
Posts: 20
Location: United Kingdom,
Is there a way to prevent "positive" slippage (And not just negative)?
Example: I try to buy EURUSD at 1.12, so even if the ask price go down below 1.12(Which is normally an advantage), the order will be rejected.

And another slippage question: Say I want max 0.00001 slippage when attempting a buy of EURUSD, what should I enter inside the engine.submitOrder in the slippage place(1, 0.1 or maybe 0.00001?)

Thanks


 
 Post subject: Re: Slippage Post rating: 0   New post Posted: Mon 10 Oct, 2016, 08:00 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Slippage is entered as number of ticks, hence, 1 should be passed. The value should always be positive regardless of the order type.


 
 Post subject: Re: Slippage Post rating: 0   New post Posted: Tue 18 Oct, 2016, 06:37 
User avatar

User rating: 0
Joined: Wed 05 Mar, 2014, 17:24
Posts: 30
Location: Russian Federation, Tomsk
API Support wrote:
Slippage is entered as number of ticks, hence, 1 should be passed. The value should always be positive regardless of the order type.


The answer is wrong.

The value of slippage means following:

if negative then default value of 5 pips is used
if Double.isNaN(slippage) == true then no slippage is used
otherwise, slippage is set in pips, you should pass 1, not 0.0001

You must enter 0.1 for max 0.00001 slippage.


 

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