Dukascopy
 
 
Wiki JStore Search Login

goodtilltime does not work in demo account
 Post subject: goodtilltime does not work in demo account Post rating: 0   New post Posted: Tue 15 Oct, 2013, 04:26 
User avatar

User rating: 0
Joined: Sat 28 Sep, 2013, 05:54
Posts: 13
Location: ChinaChina
Hi,

I run a strategy with my demo account. Strategy will generate BUYSTOP and SELLSTOP orders which will be expired in 65 minutes. Here is the method for BUYSTOP order:
orderl=engine.submitOrder(getLabel(IEngine.OrderCommand.BUYSTOP),
Myinstrument,IEngine.OrderCommand.BUYSTOP,
amount,
buystop,3,
stoploss,
Profit,
tick.getTime()+3900000,
"BUYSTOP");
Picture of TAB orders shows order is created successfully. The original "goodtilltime" is "2013-10-15 02:20:05":
Image

My strategy will change the orders' "goodtilltime" hourly with method order.setGoodTillTime(BarCurBidHourly.getTime()+3900000).
Picture2 shows the goodtilltime is changed successfully. Now the "goodtilltime" is "2013-10-15 03:00:05"

Image

But strange is both orders(BUYSTOP and SELLSTOP) were canceled by server at 2013-10-15 02:20:05. Here is message from server:
Image
Is this a server bug?


Attachments:
order_cancel.jpg [192.86 KiB]
Downloaded 646 times
order_modifiedl_goodtilltime.jpg [71.8 KiB]
Downloaded 669 times
order_orginal_goodtilltime.jpg [72 KiB]
Downloaded 631 times
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control on their content. Anyone accessing this webpage and downloading or otherwise making use of any document, data or information found on this webpage shall do it on his/her own risks without any recourse against Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from the use and/or reliance on any document, data or information found on this webpage.
 
 Post subject: Re: goodtilltime does not work in demo account Post rating: 0   New post Posted: Wed 16 Oct, 2013, 13:17 
User avatar

User rating: 0
Joined: Sat 28 Sep, 2013, 05:54
Posts: 13
Location: ChinaChina
why no response on this topic? Am I post a wrong forum?


 
 Post subject: Re: goodtilltime does not work in demo account Post rating: 0   New post Posted: Thu 17 Oct, 2013, 09:35 
User avatar

User rating: 164
Joined: Mon 08 Oct, 2012, 10:35
Posts: 676
Location: NetherlandsNetherlands
You are posting in the right topic.
Just Support needs some time to investigate...


 
 Post subject: Re: goodtilltime does not work in demo account Post rating: 0   New post Posted: Tue 22 Oct, 2013, 12:04 
User avatar

User rating: 0
Joined: Sat 28 Sep, 2013, 05:54
Posts: 13
Location: ChinaChina
Have the support team confirmed this bug?


 
 Post subject: Re: goodtilltime does not work in demo account Post rating: 0   New post Posted: Tue 22 Oct, 2013, 12:44 
User avatar

User rating: 0
Joined: Mon 28 May, 2012, 00:19
Posts: 9
Location: ColombiaColombia
You are right, it only works with PLACE_BID and PLACE_OFFER.


 
 Post subject: Re: goodtilltime does not work in demo account Post rating: 0   New post Posted: Wed 23 Oct, 2013, 13:24 
User avatar

User rating: 0
Joined: Sat 28 Sep, 2013, 05:54
Posts: 13
Location: ChinaChina
According to API descriptions, it shall be valid for LIMIT orders too. When this bug can be fixed? This feature will be very important for me.

Thanks!



void setGoodTillTime(long goodTillTime)
throws JFException
Sets "good till time" for BIDs, OFFERs and LIMIT orders
Applicable to orders of state IOrder.State.OPENED. May not be called on the same order more than once per second.

Parameters:
goodTillTime - time when BID, OFFER or LIMIT orders should be canceled
Throws:
JFException - when order is simple market order


 
 Post subject: Re: goodtilltime does not work in demo account Post rating: 0   New post Posted: Fri 25 Oct, 2013, 15:37 
JForex Master
User avatar

User rating:
Joined: Wed 16 Sep, 2009, 18:23
Posts: 1054
Location: Geneva, Switzerland
Will be fixed. Thank you for your feedback


 
 Post subject: Re: goodtilltime does not work in demo account Post rating: 0   New post Posted: Mon 04 Nov, 2013, 12:09 
User avatar

User rating: 0
Joined: Sat 28 Sep, 2013, 05:54
Posts: 13
Location: ChinaChina
Do u have any fix plan or schedule? Actually, this shall be a very basic feature. I was introduced Jforex already runs for several years, Why still have so basic bug?


 
 Post subject: Re: goodtilltime does not work in demo account Post rating: 0   New post Posted: Mon 04 Nov, 2013, 13:09 
JForex Master
User avatar

User rating:
Joined: Wed 16 Sep, 2009, 18:23
Posts: 1054
Location: Geneva, Switzerland
Problem rectified on DEMO. Will be on LIVE soon as well.


 

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