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?)
Slippage is entered as number of ticks, hence, 1 should be passed. The value should always be positive regardless of the order type.
Grevlanik
Post subject: Re: Slippage
Post rating: 0
Posted: Tue 18 Oct, 2016, 06:37
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