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.

Time bug
 Post subject: Time bug Post rating: 0   Post Posted: Sun 22 Apr, 2012, 10:17 

User rating: 0
Joined: Mon 09 Apr, 2012, 23:30
Posts: 14
Attached screendump shows the code to view an orders time stamp aswell as the result.
I'm sure we're not in 1970 birth-of-unix time anymore ;)


Attachments:
Time bug.png [200.78 KiB]
Downloaded 431 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: Time bug Post rating: 0   Post Posted: Tue 24 Apr, 2012, 09:58 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Order needs to be created on server before it receives creation time.
Try adding the following line after the order is submitted:
order.waitForUpdate(2000);


 
 Post subject: Re: Time bug Post rating: 0   Post Posted: Wed 25 Apr, 2012, 18:27 

User rating: 0
Joined: Mon 09 Apr, 2012, 23:30
Posts: 14
In historical test mode aswell?


 
 Post subject: Re: Time bug Post rating: 0   Post Posted: Fri 27 Apr, 2012, 14:45 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
yes, since back-testing aims to emulate the live trading as close as possible, see more on managing order state and updates:
https://www.dukascopy.com/wiki/#Manage_Order_State


 

Jump to:  

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