Login Page - Create Account

Support Board


Date/Time: Fri, 27 Dec 2024 18:35:24 +0000



Post From: Opening Stock Option position from a Stock Chart

[2016-02-03 03:06:18]
User713273 - Posts: 409
What we recommend doing is disabling Global Settings >> General Trade Settings >> Use Server-Side OCO and Bracket Orders.

If that solves the problem, then we never recommend using that option with Interactive Brokers.

This has been disabled as of this morning and we still had issues.

The strike price for the option symbol is 95 so you need a new Symbol Pattern in the Global Symbol settings for that. The difference is is that where the strike price is you need to use ## instead of ###.

Yes, within symbol settings both patterns are assembled utilizing the pattern matching function.

Parent order and OCO brackets are opened up initially and as per trailing only the OCO stop order is being modified. We have shared the source code related to child orders previously, we will do it again to confirm we are using the correct format.

s_SCNewOrder NewOrder;

NewOrder.OrderQuantity = optionPos->Qty;
NewOrder.OrderType = SCT_ORDERTYPE_MARKET;
NewOrder.TimeInForce = SCT_TIF_GTC;

NewOrder.OCOGroup1Quantity = NewOrder.OrderQuantity;
NewOrder.Symbol = optionPos->OptionName;
NewOrder.TradeAccount = sc.SelectedTradeAccount;
NewOrder.Target1Price = (double)optionPos->OptionEntryPrice * (1 + PermData->OrderData[TargetPercent] / 100);
NewOrder.Stop1Price = (double)optionPos->OptionEntryPrice * (1 - PermData->OrderData[StopPercent] / 100);

At this point what else would be "in the way" of making this functional?