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.

how to use slippage in buystop order
 Post subject: how to use slippage in buystop order Post rating: 0   New post Posted: Sun 22 Feb, 2015, 16:56 
User avatar

User rating: 0
Joined: Sat 17 Jan, 2015, 18:46
Posts: 34
Location: China, Shanghai
Image

I set the buy price at 558, 5 slippage, I think if price between 558 and 608, it will confirm the order.
but It confirm at first price higher than 558, 698 is more than 608, why?


 
 Post subject: Re: how to use slippage in buystop order Post rating: 0   New post Posted: Mon 23 Feb, 2015, 11:20 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Please provide code example to reproduce this.


 
 Post subject: Re: how to use slippage in buystop order Post rating: 0   New post Posted: Mon 23 Feb, 2015, 17:33 
User avatar

User rating: 0
Joined: Sat 17 Jan, 2015, 18:46
Posts: 34
Location: China, Shanghai
engine.submitOrder("order", instrument, OrderCommand.BUYSTOP, 0.1, askBar.getClose() + 5 * instrument.getPipValue(), 5);

the last parameter 5 is slippage, will it does not work ?


 

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