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.

Wiki Example Not Executing As Expected
 Post subject: Wiki Example Not Executing As Expected Post rating: 0   Post Posted: Sun 09 Dec, 2012, 23:13 

User rating: 3
Joined: Thu 17 Nov, 2011, 04:06
Posts: 39
Location: Canada, Ottawa
I have been working with the example in the Wiki located at: https://www.dukascopy.com/wiki/#Place_Bid

When testing on the EUR/USD over the past week (with no modifications to the code), I received the following messages on the historical tester:
Quote:
22:08:11 2012-12-09 22:08:04.378 ORDER_CLOSE_OK - Order closed order: CLOSED BUY 0.01 @ 1.299036
22:08:11 2012-12-07 21:00:00.000 ORDER_CHANGED_OK - Overnight commissions applied order: FILLED BUY 0.01 @ 1.299036
22:08:10 2012-12-06 21:00:00.000 ORDER_CHANGED_OK - Overnight commissions applied order: FILLED BUY 0.01 @ 1.299028
22:08:10 2012-12-06 15:02:03.671 ORDER_FILL_OK - Order filled order: FILLED BUY 0.01 @ 1.29902
22:08:06 2012-12-03 00:00:01.192 ORDER_CHANGED_OK - Order updated order: OPENED PLACE_BID 0.01 @ 1.29905
22:08:06 2012-12-03 00:00:00.647 ORDER_SUBMIT_OK - Order submitted order: OPENED PLACE_BID 0.01 @ 1.29905
22:08:06 Start


The order is submitted on Dec 3, but not filled until Dec 6. The order was set to only be good for 2.5 seconds after being accepted by the server (as per the example). Is this an issue with the historical tester or with the code?

Thanks,

Brad


 
 Post subject: Re: Wiki Example Not Executing As Expected Post rating: 0   Post Posted: Mon 10 Dec, 2012, 09:37 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
The example has been corrected.


 

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