Dukascopy
 
 
Wiki JStore Search Login

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

    Submit JForex API function requests in this forum only.
    Off topics are strictly forbidden.

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

setDefault OrderWaitForUpdateTime(long) to easy code
 Post subject: setDefault OrderWaitForUpdateTime(long) to easy code Post rating: 0   New post Posted: Thu 22 Jan, 2015, 06:44 
User avatar

User rating: 0
Joined: Sat 17 Jan, 2015, 18:46
Posts: 34
Location: China, Shanghai
Maybe the api can add some methods for us to set default value to replace every time we must use .waitForUpdate().
how about these two methods below:
setDefaultOrderWaitForUpdateOn(boolean),
setDefaultOrderWaitForUpdateTime(long) in IEngine.

if we set the default in strategy's onStart(), when a new order(by create, merge, etc) formed, it will waitforupdate each interval by default time before filled state

automatically, replacing waitForUpdate(2000, IOrder.State.OPENED); waitForUpdate(2000, IOrder.State.FILLED).


 
 Post subject: Re: setDefault OrderWaitForUpdateTime(long) to easy code Post rating: 0   New post Posted: Mon 26 Jan, 2015, 08:46 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
We have no intentions to add that kind of functionality.


 

Jump to:  

  © 1998-2024 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