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

Make it possible to change multiple parameters of a conditional order at once
http://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=83&t=52269
Page 1 of 1

Author:  FXjuxe [ Mon 09 Feb, 2015, 20:01 ]
Post subject:  Make it possible to change multiple parameters of a conditional order at once

Hello Support,

suppose you want to change multiple paramters of a conditional order, say the label and the open price.
Currently you either have to use order.updatewait(...) or synchronize on message reception.
This complicates matters and is not necessary in my opinion.
A simple data structure with all changed order values would do and would avoid network traffic and synchronization.
It would also be a "one-shot" try or failure, since after successful changing the label, the open price change might fail, and we have to do some kind of rollback mechanism.
So, my proposal is something like: order.bulkUpdate(UpdateParams)

Thanks for comments on this.

  Page 1 of 1