SubmitOrderUnmanaged()
<< Click to Display Table of Contents >> SubmitOrderUnmanaged() |
Generates an Unmanaged order.
An Order read-only object that represents the order. Reserved for experienced programmers, additional information can be found within the Unmanaged Approach section.
SubmitOrderUnmanaged(int selectedBarsInProgress, OrderAction orderAction, OrderType orderType, int quantity)
SubmitOrderUnmanaged(int selectedBarsInProgress, OrderAction orderAction, OrderType orderType, int quantity, double limitPrice)
SubmitOrderUnmanaged(int selectedBarsInProgress, OrderAction orderAction, OrderType orderType, int quantity, double limitPrice, double stopPrice)
SubmitOrderUnmanaged(int selectedBarsInProgress, OrderAction orderAction, OrderType orderType, int quantity, double limitPrice, double stopPrice, string oco)
SubmitOrderUnmanaged(int selectedBarsInProgress, OrderAction orderAction, OrderType orderType, int quantity, double limitPrice, double stopPrice, string oco, string signalName)
selectedBarsInProgress |
The index of the Bars object the order is to be submitted against. This determines what instrument the order is submitted for.
Note: See the BarsInProgress property. |
orderAction |
Determines if the order is a buy or sell order
Possible values: OrderAction.BuyToCover OrderAction.Sell OrderAction.SellShort |
orderType |
Determines the type of order submitted
Possible values:
OrderType.Limit OrderType.Market OrderType.StopMarket OrderType.StopLimit |
quantity |
Sets the number of contracts to submit with the order |
limitPrice |
Order limit price. Use "0" should this parameter be irrelevant for the OrderType being submitted. |
stopPrice |
Order stop price. Use "0" should this parameter be irrelevant for the OrderType being submitted. |
oco |
A string representing the OCO ID used to link OCO orders together
Note: OCO strings should not be reused. Use unique strings for each OCO group, and reset after orders in that group are filled/canceled |
signalName |
A string representing the name of the order. Max 50 characters. |
private Order entryOrder = null; |