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

Enable order.SetComment() for Filled orders
http://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=83&t=57612
Page 1 of 1

Author:  gipadm [ Mon 01 Mar, 2021, 09:47 ]
Post subject:  Enable order.SetComment() for Filled orders

I am struggling with the limitation in order.setComment() which allows comment modification for pending orders only.

I have to log my filled order comments to file, and then match them to the historical strategy report table based on the order label. Why does it have to be so hard?

Please make the order.SetComment() method applicable to orders of state IOrder.State.OPENED and IOrder.State.FILLED - just like order.setStopLossPrice(), order.setTakeProfitPrice(), etc.

Author:  G4815 [ Sun 14 Mar, 2021, 02:04 ]
Post subject:  Re: Enable order.SetComment() for Filled orders

Yes I support that as well. This became doable with JForex but not via scripting.
This will allow to store modifiable data within a position and not rely on external files, useful in many cases.

Author:  vadim_berezhnoj [ Mon 26 Apr, 2021, 13:42 ]
Post subject:  Re: Enable order.SetComment() for Filled orders

Greetings.

Orders are to the place to store data, especially log of filled order.
It can be marked by label or comment, and then wright any date by that index in table or file.

Regards.

Author:  gipadm [ Thu 27 May, 2021, 14:52 ]
Post subject:  Re: Enable order.SetComment() for Filled orders

Hi Vadim,

I don't understand. Could you please explain again?

  Page 1 of 1