--- In twsapi@y..., "marinindextrader" <marinindextrader@y...> wrote:
But the questions remains...How do you flag an OCA group when
sending
to/through the TWS?
There is no param that defines the group. Only on the reqOpenOrder
is
their any refrence in my documentation as to OCA?
public class Order {
..
..
// extended order fields
public String tif;
public String ocaGroup;
public String account;
}
If multiple orders are submitted each containing the same
string "trade1", or "12dfe" or whatever, then the first order to fill
will automaically cancel all the others. You can place both a profit
taking order and a stop loss order and execution of the first will
automatically cancel the other.