Dukascopy Support Board
http://www.dukascopy.com/swiss/english/forex/jforex/forum/

Implementing setLabel(String) for IOrder?
http://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=96&t=48554
Page 1 of 1

Author:  hyperscalper [ Wed 19 Dec, 2012, 22:36 ]
Post subject:  Implementing setLabel(String) for IOrder?

I was wondering why there is no IOrder.setLabel(String)

Is there a way to achieve this for an existing order? Is there a reason why the label field is immutable in this way?

IOrder mergeOrders(String label,
                   Collection<IOrder> orders)
                   throws JFException


I know that this might be possible through the above merge, where the orders collection contains the single order which is to be given the new label. (I haven't attempted this.) Not sure whether a merge operation is possible with only a single order, but that could achieve a change of the label field to a new label String value. Would that be a way to achieve the effect? (Doesn't matter to me if the orderID changes.)

My Strategy might want to take control of an existing order, and change its label field to an alternate label.

Is this possible, or can it be achieved with a single order through some operation, such as the IEngine merge function?

If there is no real reason why IOrder.setLabel(String) couldn't exist, could you please implement it?

Thanks for considering this request.
HyperScalper

Author:  API Support [ Tue 12 Feb, 2013, 09:57 ]
Post subject:  Re: Implementing setLabel(String) for IOrder?

Is implemented in a new API branch.

Author:  forexegyptian [ Tue 08 Oct, 2013, 22:10 ]
Post subject:  Re: Implementing setLabel(String) for IOrder?

can i ask what is different between Label and Comment ? in Iorder

Author:  tcsabina [ Tue 08 Oct, 2013, 22:36 ]
Post subject:  Re: Implementing setLabel(String) for IOrder?

Label is what you see on the chart and what is shown in the report.
As far as I know Comment is only accessible by the API, and not used anywhere else. You can use it for your own purpose.

Author:  forexegyptian [ Wed 09 Oct, 2013, 02:58 ]
Post subject:  Re: Implementing setLabel(String) for IOrder?

tcsabina wrote:
Label is what you see on the chart and what is shown in the report.
As far as I know Comment is only accessible by the API, and not used anywhere else. You can use it for your own purpose.


Thanks you

  Page 1 of 1