Submits an order to modify this position which is valid for one bar.

Namespace: RightEdge.Common
Assembly: 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
)
Visual Basic
Public Function SubmitOrder ( 
	size As Long,
	transactionType As TransactionType,
	orderType As OrderType,
	price As Double
) As Order
Visual C++
public:
Order^ SubmitOrder(
	long long size, 
	TransactionType transactionType, 
	OrderType orderType, 
	double price
)
F#
member SubmitOrder : 
        size : int64 * 
        transactionType : TransactionType * 
        orderType : OrderType * 
        price : float -> Order 

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.

Return Value

Type: Order
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.

See Also