Dukascopy
 
 
Wiki JStore Search Login

FIXED JFOREX-1078 : IOrder.getFillTime() returns 0
 Post subject: FIXED JFOREX-1078 : IOrder.getFillTime() returns 0 Post rating: 0   New post Posted: Wed 26 Aug, 2009, 06:04 

User rating: 0
Joined: Wed 26 Aug, 2009, 05:28
Posts: 3
Hi,

When I list open orders after restarting the terminal, neither getFillTime or getCreationTime are set. Both are 0. I assume this is a bug?


 
 Post subject: Re: IOrder.getFillTime() returns 0 Post rating: 0   New post Posted: Wed 26 Aug, 2009, 12:51 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Yes, it is. It will be fixed asap.


 
 Post subject: Re: IOrder.getFillTime() returns 0 Post rating: 0   New post Posted: Wed 26 Aug, 2009, 12:55 

User rating: 0
Joined: Wed 26 Aug, 2009, 05:28
Posts: 3
Support wrote:
Yes, it is. It will be fixed asap.


Cool - I look forward to the fix update.

Thanks


 
 Post subject: Re: FIXED JFOREX-1078 : IOrder.getFillTime() returns 0 Post rating: 0   New post Posted: Fri 16 Mar, 2012, 11:46 

User rating: -
Having strange problem that order.getFillTime() returns some time which is nothing to do with the actual time orders were filled. Here is a list of orders showing their
Label (generated at submit order and based on current time at the time of submissions)
ID
FillTime (as returned by getFillTime() )

Label ID FillTime
gbus120312154609, 34718376, 120315212604
gbus120312154008, 34718198, 120315212604
gbus120312160412, 34719118, 120315212605
gbus120316010216, 34893553, 120316010940
gbus120315160417, 34883440, 120315212604
gbus120312154309, 34718294, 120315212604
eugb120316095201, 34904742, 120316100236
eugb120316100302, 34905153, 120316100327
gbus120313133501, 34779134, 120315212604
gbus120313132415, 34777671, 120315212605
gbus120316101402, 34905495, 120316101447
gbus120315154400, 34881398, 120315212604
gbus120312160713, 34719300, 120315212604
gbus120315140352, 34875782, 120315212604
gbus120313131346, 34777259, 120315212604
gbus120315160601, 34883480, 120315212604
gbus120312153102, 34717935, 120315212604
gbus120312170102, 34722120, 120315212604
gbus120315013614, 34848437, 120315212604
gbus120315143105, 34877133, 120315212604
gbus120316011325, 34893619, 120316011524
gbus120315142005, 34876436, 120315212604
gbus120315150422, 34880038, 120315212604
gbus120312160112, 34719009, 120315212604
gbus120312154910, 34718451, 120315212604
gbus120315092155, 34860599, 120315212604
gbus120312155951, 34718914, 120315212604
gbus120315140904, 34876037, 120315212604
gbus120315161725, 34883794, 120315212604
gbus120313131028, 34777142, 120315212604
gbus120316102800, 34907492, 120316102801

as you can see FillTime on many orders is the same, which makes no sense and at least 3 days different from the label which is also not correct as those orders would have been filled roughly neat the time as shown on labels.
Any ideas why this might be happening?


 
 Post subject: Re: FIXED JFOREX-1078 : IOrder.getFillTime() returns 0 Post rating: 0   New post Posted: Fri 16 Mar, 2012, 16:58 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Are these historical or active orders? Could you please provide code snippet which you use to print the orders?


 
 Post subject: Re: FIXED JFOREX-1078 : IOrder.getFillTime() returns 0 Post rating: 0   New post Posted: Fri 16 Mar, 2012, 18:47 

User rating: -
These are active orders and I can see them in JForex -> Positions tab.

Orders submitted using the following code

gsLastSellOrder = getLabel(instrument)+sdf.format(tick.getTime()).toString();                   
engine.submitOrder(gsLastSellOrder, instrument, IEngine.OrderCommand.PLACE_OFFER, Lots, tick.getAsk()+profit, Slip, 0, roundToDecimals(tick.getAsk()+profit-nDelta,5), glLastSellOrderExpiry);


I tried to add simple code to close down positions older than T ms based on FillTime but it wouldn't do anything, so I added a line to print out a list of SELL orders to see what's wrong:


         for (IOrder order : engine.getOrders(instrument)) {
                if (order.getState() == IOrder.State.FILLED) {
                    //check all submitted and filled market orders older than lTDur and close them
                    switch (order.getOrderCommand()) {
                       case BUY:
                   
                       break;
                       
                       case SELL:
                          console.getOut().print( order.getLabel() + ", " + order.getId() + ", " + sdf.format(order.getFillTime()) + "\n" );
                    
                       break;
                    }
                }
            }


 

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