Support Board
Date/Time: Fri, 27 Dec 2024 17:58:40 +0000
Post From: Opening Stock Option position from a Stock Chart
[2016-02-01 20:36:18] |
User99735 - Posts: 234 |
Hi, a) Have upgraded to build 1362 and ran some tests b) The earlier reported error of 'Missing tick size' is not coming now c) However the OCO bracket orders opened with the following code 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); Is this supported or not. With this the bracket orders are getting closed after some time with source as "no order update from server" d) As mentioned earlier we are using TWS as our broker and for feed also. Could not find any specific settings to be done in TWS, to send back updates to SC. Please advice. Regards Vivek |