Submits an order to modify this position.
Namespace:
RightEdge.CommonAssembly: Common (in Common.dll) Version: 2010.1.0.0 (2010.1.0.0)
Syntax
| C# |
|---|
public Order SubmitOrder( long size, TransactionType transactionType, OrderType orderType, double price, int barsValid ) |
| Visual Basic (Declaration) |
|---|
Public Function SubmitOrder ( _ size As Long, _ transactionType As TransactionType, _ orderType As OrderType, _ price As Double, _ barsValid As Integer _ ) As Order |
| Visual C++ |
|---|
public: Order^ SubmitOrder( long long size, TransactionType transactionType, OrderType orderType, double price, int barsValid ) |
Parameters
- size
- Type: System..::.Int64
The size of the order to submit.
- transactionType
- Type: RightEdge.Common..::.TransactionType
The transaction type (buy, sell, short, or cover) for the order.
- orderType
- Type: RightEdge.Common..::.OrderType
The order type.
- price
- Type: System..::.Double
The stop or limit price for the order, if applicable.
- barsValid
- Type: System..::.Int32
The number of bars before the order should be cancelled. If this is negative, the order will not be automatically cancelled.
Return Value
An Order object representing the order that was submitted.
Remarks
If there is an error which prevents the order from being submitted, then the Error property of the
returned object will contain the error message. If the order was successfully submitted, the Error property
will be null.