Dukascopy
 
 
Wiki JStore Search Login

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

    Submit JForex API bug reports in this forum only.
    Submit Converter issues in Converter Issues.
    Off topics are strictly forbidden.

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

onMessage called more times for the same order STATE in Historical Tester run
 Post subject: onMessage called more times for the same order STATE in Historical Tester run Post rating: 0   New post Posted: Thu 09 Mar, 2017, 15:24 
User avatar

User rating: 0
Joined: Wed 08 Mar, 2017, 12:06
Posts: 2
Location: SwitzerlandSwitzerland
Hi,
running a really simple test strategy using the historical tester, the onMessage method is called more times for the same order and the same state, for example for the same order the FILLED state is called 2 times.
In my test I've opened 181 orders but got 186 filled and 182 closed orders.

How is it possible?
Thanks


 
 Post subject: Re: onMessage called more times for the same order STATE in Historical Tester run Post rating: 0   New post Posted: Wed 22 Mar, 2017, 15:47 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Order state changes can be seen here:
https://www.dukascopy.com/wiki/en/devel ... s-diagramm
Orders can be filled in several iterations in case of partial fill. The order will receive ORDER_FILL_OK, and ORDER_CHANGED_OK messages. Historical tester does simulate this.


 

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