|
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 |
leevo
|
Post subject: setDefault OrderWaitForUpdateTime(long) to easy code |
Post rating: 0
|
Posted: Thu 22 Jan, 2015, 06:44
|
|
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).
|
|
|
|
|
API Support
|
Post subject: Re: setDefault OrderWaitForUpdateTime(long) to easy code |
Post rating: 0
|
Posted: Mon 26 Jan, 2015, 08:46
|
|
User rating: ∞
Joined: Fri 31 Aug, 2007, 09:17 Posts: 6139
|
We have no intentions to add that kind of functionality.
|
|
|
|
|
|
Pages: [
1
]
|
|
|
|
|