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.

The price not reach my settting, but the order is filled
 Post subject: The price not reach my settting, but the order is filled Post rating: 0   New post Posted: Tue 17 Feb, 2015, 18:36 
User avatar

User rating: 0
Joined: Sat 17 Jan, 2015, 18:46
Posts: 34
Location: China, Shanghai
time at 22:59:50, askBar.close price is 1.2345.
engine.submitOrder("testbuy", instrument, OrderCommand.BUY, 1, askBar.getClose() + 7 * instrument.getPipValue()))

then time to 23:00:00, order has been filled with price 1.2345. the price didn't reach the 1.2352.
If I use OrderCommand.BUYSTOP, it works ok. why?
Image


 
 Post subject: Re: The price not reach my settting, but the order is filled Post rating: 0   New post Posted: Thu 19 Feb, 2015, 11:29 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
If price parameter is specified BUY request will place an order at any price that is equal or more profitable than the value of price parameter.
BUYSTOP on the other hand will place an order only when the price reaches the specified level.


 

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