Dukascopy
 
 
Wiki JStore Search Login

DDSJFX-398 Order label information in history
 Post subject: DDSJFX-398 Order label information in history Post rating: 0   New post Posted: Tue 31 Aug, 2010, 12:43 

User rating: 0
Joined: Mon 04 Jan, 2010, 19:56
Posts: 9
I need to assign orders in history to different strategies. I try to do this by writing a unique label either into the order-label or in the order-comment. However, it seems that these information get lost whenever orders are closed. While I can read these information when the corresponding order is open:
for (IOrder order : engine.getOrders(pair[pair_number])) {
if(......) { label=order.getLabel(); comment=order.getComment() }
}

the corresponding strings return "null" if I read orders from history:
for (IOrder order : history.getOrdersHistory(instrument,Start_Time,tick.getTime()))

It seems that also other information get lost when orders go into history (e.g. order.getProfitLossInAccountCurrency). This is somehow annoying. Is there a workaround how I can safely identify orders in history?

Thanks


 
 Post subject: Re: Which order information survive in history? Post rating: 0   New post Posted: Tue 31 Aug, 2010, 14:06 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Hi,
unfortunately labels and some other data (depends from order) are not stored in a history. This is a limitation of current implementation.
The only solution is to create your own history and store it locally.


 
 Post subject: Re: Which order information survive in history? Post rating: 0   New post Posted: Tue 31 Aug, 2010, 22:08 
User avatar

User rating: 3
Joined: Wed 18 May, 2011, 16:25
Posts: 331
Location: SwitzerlandSwitzerland
@Support,

are there any plans to change this in one of the next releases?
(I'm also referring to https://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=9&t=17012)

Kind regards,
RR.


 
 Post subject: Re: DDSJFX-398 Order label information in history Post rating: 0   New post Posted: Tue 04 Oct, 2011, 14:17 
User avatar

User rating: 21
Joined: Thu 19 May, 2011, 20:50
Posts: 413
Location: Germany, Munich
see https://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=16&t=42656
Please implement this history label saver as soon as possible, otherwise it is impossible to analyse labeled history orders. There is then no other way to distinguish them than labeling, e.g. one has different trading strategies on one account.


 

Jump to:  

  © 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